/var/www/u1443220/data/www/itgap.ru/app/controllers/Post.php
$after = ceil($par_length / 2);
}
$after--;
$adv_block = $dom->createElement('div');
$adv_script = new DOMDocument();
if (APP_ENV !== 'production') {
$script = '<div class="advertisment bxS mb-2" style="display: block; width: 100%; height: 200px; background-color: #333"></div>';
}
$adv_script->loadHTML($script);
$adv_block->appendChild($dom->importNode($adv_script->documentElement, true));
$adv_block->setAttribute('class', 'mb-2');
$dom->getElementsByTagName('p')->item($after)->appendChild($adv_block);
$this->data['post']['data_html'] = $dom->saveHTML();
}
}
/var/www/u1443220/data/www/itgap.ru/app/controllers/Post.php
$this->data['is_post_show_page'] = true;
$csrf = array(
'name' => $this->security->get_csrf_token_name(),
'hash' => $this->security->get_csrf_hash()
);
$this->data['csrf'] = $csrf;
// Insert advertisments
if ($category == 'post') {
$this->insert_adv(1, '<div class="rl_cnt_bg" data-id="300309"></div>');
}
if ($category == 'post') {
$this->insert_adv(5, '<div class="rl_cnt_bg" data-id="300310"></div>');
}
if ($category == 'post') {
$this->insert_adv(10, '<div class="rl_cnt_bg" data-id="300311"></div>');
}
if ($category == 'post') {
$this->insert_adv(15, '<div class="rl_cnt_bg" data-id="300312"></div>');
}
$this->load->view('post', $this->data);
}
public function create()
{
$this->data['head_more'] =
'<meta name="robots" content="noindex, nofollow">'.
'<link rel="stylesheet" type="text/css" href="/media/post/new_post.css">'.
'<script type="text/javascript" src="/media/post/new_post.js"></script>'.
'<script type="text/javascript" src="/media/post/service.js"></script>'.
'<link rel="stylesheet" type="text/css" href="/media/select2/select2.min.css">'.
'<script type="text/javascript" src="/media/select2/select2.min.js"></script>'.
'<script type="text/javascript" src="/media/post/book.js"></script>'.
'<link rel="stylesheet" type="text/css" href="/media/post/book.css">';
$this->data['page_title'] = 'Новый пост — itGap';
$this->data['postId'] = $this->post_model->generate_post_id();
$this->data['categories'] = $this->category_model->get_categories();
/var/www/u1443220/data/www/itgap.ru/system/core/CodeIgniter.php
* ------------------------------------------------------
*/
// Mark a start point so we can benchmark the controller
$BM->mark('controller_execution_time_( '.$class.' / '.$method.' )_start');
$CI = new $class();
/*
* ------------------------------------------------------
* Is there a "post_controller_constructor" hook?
* ------------------------------------------------------
*/
$EXT->call_hook('post_controller_constructor');
/*
* ------------------------------------------------------
* Call the requested method
* ------------------------------------------------------
*/
call_user_func_array(array(&$CI, $method), $params);
// Mark a benchmark end point
$BM->mark('controller_execution_time_( '.$class.' / '.$method.' )_end');
/*
* ------------------------------------------------------
* Is there a "post_controller" hook?
* ------------------------------------------------------
*/
$EXT->call_hook('post_controller');
/*
* ------------------------------------------------------
* Send the final rendered output to the browser
* ------------------------------------------------------
*/
if ($EXT->call_hook('display_override') === FALSE)
{
$OUT->_display();
}
/var/www/u1443220/data/www/itgap.ru/public/index.php
DIRECTORY_SEPARATOR.DIRECTORY_SEPARATOR
);
}
else
{
header('HTTP/1.1 503 Service Unavailable.', TRUE, 503);
echo 'Your view folder path does not appear to be set correctly. Please open the following file and correct this: '.SELF;
exit(3); // EXIT_CONFIG
}
define('VIEWPATH', $view_folder.DIRECTORY_SEPARATOR);
/*
* --------------------------------------------------------------------
* LOAD THE BOOTSTRAP FILE
* --------------------------------------------------------------------
*
* And away we go...
*/
require_once BASEPATH.'core/CodeIgniter.php';