コード例 #1
0
ファイル: core.php プロジェクト: softw/OcrendBB
  EL NÚCLEO DE LA APLICACIÓN!
*/
session_start();
#Constantes de conexión
define('DB_HOST', 'localhost');
define('DB_USER', 'root');
define('DB_PASS', '');
define('DB_NAME', 'ocrendbb');
#Constantes de la APP
define('HTML_DIR', 'html/');
define('APP_TITLE', 'OcrendBB');
define('APP_COPY', 'Copyright © ' . date('Y', time()) . ' Ocrend Software.');
define('APP_URL', 'http://localhost/GitHub/OcrendBB/');
#Constantes de PHPMailer
define('PHPMAILER_HOST', 'p3plcpnl0173.prod.phx3.secureserver.net');
define('PHPMAILER_USER', '*****@*****.**');
define('PHPMAILER_PASS', 'Prinick2016');
define('PHPMAILER_PORT', 465);
#Estructura
require 'vendor/autoload.php';
require 'core/models/class.Conexion.php';
require 'core/bin/functions/Encrypt.php';
require 'core/bin/functions/Users.php';
require 'core/bin/functions/Categorias.php';
require 'core/bin/functions/Foros.php';
require 'core/bin/functions/EmailTemplate.php';
require 'core/bin/functions/LostpassTemplate.php';
require 'core/bin/functions/UrlAmigable.php';
$_users = Users();
$_categorias = Categorias();
$_foros = Foros();
コード例 #2
0
ファイル: CategoriaAdmin.php プロジェクト: keua/DeGuate
                                        <td align="center">
                                            <form action="./INCLUDES/Categorias.php?act=2" method="POST">

                                                <input type="hidden" name="id" value="<?php 
        echo $categorias[$index]->intId;
        ?>
 ">

                                                <input type="submit" value="eliminar" name="eliminar" class="btn btn-danger">
                                            </form>
                                        </td>
                                    </tr>
                                <?php 
    }
    ?>
                            </tbody>
                        </table>
                    </div><!-- /.box-body -->
                </div><!-- /.box -->
            </div><!-- /.col -->
        </div><!-- /.row -->
    </section><!-- /.content -->
    <?php 
}
if (isset($_SESSION['user'])) {
    head();
    Categorias($actividad);
    footer();
} else {
    header("Location:http://localhost:8000/Login.php");
}
コード例 #3
0
ファイル: blog.php プロジェクト: mvnp/purophp
			<article>
				<h2 class="Oswald fs-24 fw400 azul mt0"><?php 
    echo $posts['titulo'];
    ?>
</h2>
				<h3 class="Cycle fs-16 fw400"><?php 
    echo BDtoBR($posts['datacad']);
    ?>
 por <b><?php 
    echo $posts['autor'];
    ?>
</b><?php 
    if ($posts['categoria'] != null) {
        ?>
 | <b><?php 
        echo Categorias($posts['categoria']);
        ?>
</b><?php 
    }
    ?>
</h3>
				<?php 
    if ($posts['imagem'] != null) {
        ?>
					<a href="blog/<?php 
        echo $posts['url_amigavel'];
        ?>
" name="imagem_destacada">
						<img src="admin/images/<?php 
        echo $posts['imagem'];
        ?>