<?php Error_Reporting(E_ALL & ~E_NOTICE); session_start(); define('PATH', dirname(__FILE__)); define('INCLUDE_PATH', dirname(__FILE__) . '/include/'); define('INFO', dirname(__FILE__) . '/info/'); define('SERVER_NAME', $_SERVER["SERVER_NAME"]); require_once INCLUDE_PATH . 'class/db_connect.php'; require_once INCLUDE_PATH . 'class/common.php'; $base = new db_connect("localhost", "root", "1", "book"); $incl_file_arr = array(); $incl_file_arr = include_file_real($_REQUEST['rqpath'], $object_inclide_param); //first parameter is needed for checking path there is really or not $incl_file = ""; if ($incl_file_arr[0]) { $incl_file = $incl_file_arr[0]; } //second parameter is needed to determine opens into this window or create new window if ($incl_file_arr[1]) { $incl_separate = $incl_file_arr[1]; } //for ajax query should to exit from page if ($incl_separate == 1) { include $incl_file; unset($base); exit; } ?> <!DOCTYPE html>
$_SESSION['productpictures_dir'] = "info/catalogpictures/productpictures/"; } if (!isset($_SESSION['personimagepictures_dir'])) { $_SESSION['personimagepictures_dir'] = "info/catalogpictures/personimagepictures/"; } define('PATH', dirname(__FILE__)); define('INCLUDE_PATH', dirname(__FILE__) . '/includesystem/'); define('ADMIN_SYSTEM', dirname(__FILE__) . '/adminsystem/'); define('SERVER_NAME', $_SERVER["SERVER_NAME"]); require_once INCLUDE_PATH . 'class/db_connect.php'; require_once INCLUDE_PATH . 'class/common.php'; require_once INCLUDE_PATH . 'class/pictureresizer.php'; require_once 'connect_to_base.php'; require_once 'ftp_connect.php'; $incl_file_arr = array(); $incl_file_arr = include_file_real($_REQUEST['rqpath']); //first parameter is needed for checking path there is really or not $incl_file = ""; if ($incl_file_arr[0]) { $incl_file = $incl_file_arr[0]; } //second parameter is needed to determine opens into this window or create new window if ($incl_file_arr[1]) { $incl_separate = $incl_file_arr[1]; } //for ajax query should to exit from page if ($incl_separate == 1) { include $incl_file; unset($base); exit; }