Created
February 7, 2013 20:20
-
-
Save pafnuty/4733845 to your computer and use it in GitHub Desktop.
blockpro_ajax
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
============================================================================= | |
BlockPro 3 - Модуль для вывода блоков с новостями на страницах сайта DLE (тестировался на 9.7 и 9.8) | |
============================================================================= | |
Автор модуля: ПафНутиЙ | |
URL: http://blockpro.ru/ | |
ICQ: 817233 | |
email: [email protected] | |
============================================================================= | |
Файл: ajax.block.pro.php - вывод аякс-блоков | |
----------------------------------------------------------------------------- | |
Версия: 1.0.0.0 (08.02.2013) | |
============================================================================= | |
*/ | |
@error_reporting ( E_ALL ^ E_WARNING ^ E_NOTICE ); | |
@ini_set ( 'display_errors', true ); | |
@ini_set ( 'html_errors', false ); | |
@ini_set ( 'error_reporting', E_ALL ^ E_WARNING ^ E_NOTICE ); | |
define( 'DATALIFEENGINE', true ); | |
define( 'ROOT_DIR', substr( dirname( __FILE__ ), 0, -24 ) ); | |
define( 'ENGINE_DIR', ROOT_DIR . '/engine' ); | |
include ENGINE_DIR . '/data/config.php'; | |
if( $config['http_home_url'] == "" ) { | |
$config['http_home_url'] = explode( "engine/modules/blockpro/ajax.block.pro.php", $_SERVER['PHP_SELF'] ); | |
$config['http_home_url'] = reset( $config['http_home_url'] ); | |
$config['http_home_url'] = "http://" . $_SERVER['HTTP_HOST'] . $config['http_home_url']; | |
} | |
require_once ENGINE_DIR . '/classes/mysql.php'; | |
require_once ENGINE_DIR . '/data/dbconfig.php'; | |
require_once ENGINE_DIR . '/modules/functions.php'; | |
dle_session(); | |
require_once ENGINE_DIR . '/modules/blockpro/block.pro.3.php'; | |
@header( "Content-type: text/html; charset=" . $config['charset'] ); | |
// трололо )) | |
echo "<pre style=\"margin:0;font: normal 12px/14.5px Consolas, Courier, monospace;\"> ## </pre>"; | |
echo "<pre style=\"margin:0;font: normal 12px/14.5px Consolas, Courier, monospace;\"> # </pre>"; | |
echo "<pre style=\"margin:0;font: normal 12px/14.5px Consolas, Courier, monospace;\"> #### ### ### # </pre>"; | |
echo "<pre style=\"margin:0;font: normal 12px/14.5px Consolas, Courier, monospace;\"> # # # # # # </pre>"; | |
echo "<pre style=\"margin:0;font: normal 12px/14.5px Consolas, Courier, monospace;\"> # # # # # # </pre>"; | |
echo "<pre style=\"margin:0;font: normal 12px/14.5px Consolas, Courier, monospace;\"> # # # # # # </pre>"; | |
echo "<pre style=\"margin:0;font: normal 12px/14.5px Consolas, Courier, monospace;\"> #### ### ### ### </pre>"; | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment