Esempio n. 1
0
{
   define('SMART_VIEW_FOLDER', 'views_default/'); 
}
*/
/*
 * Force to use the template folder, independed of the sys config settings.
 */
/*
if(!defined( 'SMART_TPL_FOLDER' ))
{
   define('SMART_TPL_FOLDER', 'templates_default/'); 
}
*/
/* #################################################### */
/* ######### Dont change any thing below !!! ########## */
/* #################################################### */
/* 
 * Secure include of files from this script
 */
if (!defined('SMART_SECURE_INCLUDE')) {
    define('SMART_SECURE_INCLUDE', 1);
}
// Define the absolute path to SMART3
//
define('SMART_BASE_DIR', dirname(__FILE__) . '/');
// Include the system core file. use this for debuging
include SMART_BASE_DIR . 'smart/includes/smart_core.php';
// Include the system core file. use this for production in order to the previous include
// include( SMART_BASE_DIR . 'smart/includes/smart_all_in_one.php' );
$smartController = SmartController::newInstance('SmartWebController');
$smartController->dispatch();
Esempio n. 2
0
/*
 * Relative path to SMART. Example: 'test/'
 */
if (!defined('SMART_RELATIVE_PATH')) {
    define('SMART_RELATIVE_PATH', './');
}
/*
 * Force to use the views folder, independed of the sys config settings.
 */
/*
if(!defined( 'SMART_VIEW_FOLDER' ))
{
   define('SMART_VIEW_FOLDER', 'views_smart/'); 
}
*/
/* #################################################### */
/* ######### Dont change any thing below !!! ########## */
/* #################################################### */
/* 
 * Secure include of files from this script
 */
if (!defined('SMART_SECURE_INCLUDE')) {
    define('SMART_SECURE_INCLUDE', 1);
}
// Define the absolute path to SMART
//
define('SMART_BASE_DIR', dirname(__FILE__) . '/');
// Include the system core file.
include SMART_BASE_DIR . 'smart/includes/smart_core.php';
$smartController = SmartController::newInstance('SmartAjaxController');
$smartController->dispatch();
Esempio n. 3
0
if (!defined('SMART_CONTROLLER')) {
    define('SMART_CONTROLLER', 'rpcserver.php');
}
/*
 * Relative path to SMART. Example: 'test/'
 */
if (!defined('SMART_RELATIVE_PATH')) {
    define('SMART_RELATIVE_PATH', './');
}
/*
 * Force to use the views folder, independed of the sys config settings.
 */
if (!defined('SMART_VIEW_FOLDER')) {
    define('SMART_VIEW_FOLDER', 'views_rpcserver/');
}
/* #################################################### */
/* ######### Dont change any thing below !!! ########## */
/* #################################################### */
/* 
 * Secure include of files from this script
 */
if (!defined('SMART_SECURE_INCLUDE')) {
    define('SMART_SECURE_INCLUDE', 1);
}
// Define the absolute path to SMART
//
define('SMART_BASE_DIR', dirname(__FILE__) . '/');
// Include the system core file.
include SMART_BASE_DIR . 'smart/includes/smart_core.php';
$smartController = SmartController::newInstance('SmartXmlRpcController');
$smartController->dispatch();