Update core class include style and smarty test page
All libs/classes have an loop to find the needed previous class file. Smarty test page included.
This commit is contained in:
23
www/admin/smarty_test.php
Normal file
23
www/admin/smarty_test.php
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<?
|
||||||
|
$DEBGU_ALL_OVERRIDE = 0; // set to 1 to debug on live/remote server locations
|
||||||
|
$DEBUG_ALL = 1;
|
||||||
|
$PRINT_ALL = 1;
|
||||||
|
$DB_DEBUG = 1;
|
||||||
|
|
||||||
|
if ($DEBUG_ALL)
|
||||||
|
error_reporting(E_ALL | E_STRICT | E_ERROR | E_WARNING | E_PARSE | E_COMPILE_ERROR);
|
||||||
|
|
||||||
|
define('USE_DATABASE', true);
|
||||||
|
require("config.inc");
|
||||||
|
require("header.inc");
|
||||||
|
$MASTER_TEMPLATE_NAME = 'main_body.tpl';
|
||||||
|
$TEMPLATE_NAME = 'smarty_test.tpl';
|
||||||
|
$PAGE_WIDTH = 750;
|
||||||
|
require("set_paths.inc");
|
||||||
|
|
||||||
|
// smarty test
|
||||||
|
$cms->DATA['SMARTY_TEST'] = 'Test Data';
|
||||||
|
|
||||||
|
require("smarty.inc");
|
||||||
|
require("footer.inc");
|
||||||
|
?>
|
||||||
@@ -236,6 +236,15 @@
|
|||||||
$DEBUG_ALL = 0;
|
$DEBUG_ALL = 0;
|
||||||
$PRINT_ALL = 0;
|
$PRINT_ALL = 0;
|
||||||
$DB_DEBUG = 0;
|
$DB_DEBUG = 0;
|
||||||
|
$ENABLE_ERROR_HANDLING = 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$ECHO_ALL = 1;
|
||||||
|
$DEBUG_ALL = 1;
|
||||||
|
$PRINT_ALL = 1;
|
||||||
|
$DB_DEBUG = 1;
|
||||||
|
$ENABLE_ERROR_HANDLING = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// any other global definitons here
|
// any other global definitons here
|
||||||
|
|||||||
3
www/layout/admin/default/templates/smarty_test.tpl
Normal file
3
www/layout/admin/default/templates/smarty_test.tpl
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
<div>
|
||||||
|
{$SMARTY_TEST}
|
||||||
|
</div>
|
||||||
@@ -25,7 +25,13 @@
|
|||||||
*
|
*
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
|
||||||
require_once(LIBS."Class.DB.IO.inc");
|
// try to include file from LIBS path, or from normal path
|
||||||
|
$include_file = 'Class.DB.IO.inc';
|
||||||
|
foreach (array('', LIBS, __DIR__.'/') as $folder)
|
||||||
|
{
|
||||||
|
if (file_exists($folder.$include_file))
|
||||||
|
require_once($folder.$include_file);
|
||||||
|
}
|
||||||
|
|
||||||
class AdminBackend extends db_io
|
class AdminBackend extends db_io
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -38,7 +38,13 @@
|
|||||||
// as it actually has nothing to do with this one here ? (or at least
|
// as it actually has nothing to do with this one here ? (or at least
|
||||||
// put into separete function in this class)
|
// put into separete function in this class)
|
||||||
|
|
||||||
require_once(LIBS."Class.DB.IO.inc");
|
// try to include file from LIBS path, or from normal path
|
||||||
|
$include_file = 'Class.DB.IO.inc';
|
||||||
|
foreach (array('', LIBS, __DIR__.'/') as $folder)
|
||||||
|
{
|
||||||
|
if (file_exists($folder.$include_file))
|
||||||
|
require_once($folder.$include_file);
|
||||||
|
}
|
||||||
|
|
||||||
// subclass for one array handling
|
// subclass for one array handling
|
||||||
class db_array_io extends db_io
|
class db_array_io extends db_io
|
||||||
|
|||||||
@@ -240,7 +240,13 @@
|
|||||||
* 23.11.2000: erster Test
|
* 23.11.2000: erster Test
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
|
||||||
require_once(LIBS.'Class.Basic.inc');
|
// try to include file from LIBS path, or from normal path
|
||||||
|
$include_file = 'Class.Basic.inc';
|
||||||
|
foreach (array('', LIBS, __DIR__.'/') as $folder)
|
||||||
|
{
|
||||||
|
if (file_exists($folder.$include_file))
|
||||||
|
require_once($folder.$include_file);
|
||||||
|
}
|
||||||
|
|
||||||
class db_io extends basic
|
class db_io extends basic
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -212,7 +212,13 @@
|
|||||||
* save data, loads data, etc
|
* save data, loads data, etc
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
|
||||||
require_once(LIBS."Class.DB.Array.IO.inc");
|
// try to include file from LIBS path, or from normal path
|
||||||
|
$include_file = 'Class.DB.Array.IO.inc';
|
||||||
|
foreach (array('', LIBS, __DIR__.'/') as $folder)
|
||||||
|
{
|
||||||
|
if (file_exists($folder.$include_file))
|
||||||
|
require_once($folder.$include_file);
|
||||||
|
}
|
||||||
|
|
||||||
class form extends db_array_io
|
class form extends db_array_io
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -59,7 +59,13 @@
|
|||||||
* 2000-06-01: created basic idea and functions
|
* 2000-06-01: created basic idea and functions
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
|
||||||
require_once(LIBS."Class.DB.IO.inc");
|
// try to include file from LIBS path, or from normal path
|
||||||
|
$include_file = 'Class.DB.IO.inc';
|
||||||
|
foreach (array('', LIBS, __DIR__.'/') as $folder)
|
||||||
|
{
|
||||||
|
if (file_exists($folder.$include_file))
|
||||||
|
require_once($folder.$include_file);
|
||||||
|
}
|
||||||
|
|
||||||
class login extends db_io
|
class login extends db_io
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -10,7 +10,13 @@
|
|||||||
|
|
||||||
// read in the Smarty class for definition
|
// read in the Smarty class for definition
|
||||||
// use smarty BC for backwards compability
|
// use smarty BC for backwards compability
|
||||||
require_once(SMARTY.'SmartyBC.class.php');
|
// try to include file from LIBS path, or from normal path
|
||||||
|
$include_file = 'SmartyBC.class.php';
|
||||||
|
foreach (array('', SMARTY, __DIR__.'/../'.SMARTY) as $folder)
|
||||||
|
{
|
||||||
|
if (file_exists($folder.$include_file))
|
||||||
|
require_once($folder.$include_file);
|
||||||
|
}
|
||||||
|
|
||||||
class SmartyML extends SmartyBC
|
class SmartyML extends SmartyBC
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -25,7 +25,13 @@
|
|||||||
* 2005/10/17 (cs) made an on the fly switch method (reload of lang)
|
* 2005/10/17 (cs) made an on the fly switch method (reload of lang)
|
||||||
*********************************************************************/
|
*********************************************************************/
|
||||||
|
|
||||||
require_once(LIBS."Class.Basic.inc");
|
// try to include file from LIBS path, or from normal path
|
||||||
|
$include_file = 'Class.Basic.inc';
|
||||||
|
foreach (array('', LIBS, __DIR__.'/') as $folder)
|
||||||
|
{
|
||||||
|
if (file_exists($folder.$include_file))
|
||||||
|
require_once($folder.$include_file);
|
||||||
|
}
|
||||||
|
|
||||||
class l10n extends basic
|
class l10n extends basic
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user