Changeset 16
- Timestamp:
- 08/10/05 21:20:03 (6 years ago)
- Location:
- trunk
- Files:
-
- 11 modified
-
actions/select_language.action.php (modified) (1 diff)
-
dotnode-dotpage.php (modified) (1 diff)
-
dotnode-error.php (modified) (1 diff)
-
dotnode-id.php (modified) (1 diff)
-
dotnode-new.php (modified) (1 diff)
-
dotnode-pub.php (modified) (1 diff)
-
dotnode-xml.php (modified) (1 diff)
-
includes/config.inc.php (modified) (1 diff)
-
includes/config/xml.inc.php (modified) (1 diff)
-
includes/includes.inc.php (modified) (1 diff)
-
reset_data.sh (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/actions/select_language.action.php
r1 r16 29 29 $lang = 'en_US'; 30 30 31 setcookie('lang', $lang, time()+31536000, '/', COOKIE_DOMAIN);31 setcookie('lang', $lang, time()+31536000, '/', $config['domain']); 32 32 setcookie('lang', $lang, time()+31536000, '/'); 33 33 -
trunk/dotnode-dotpage.php
r12 r16 31 31 $login = $regs[1]; 32 32 33 $smarty = new Smarty; 33 $smarty = new Smarty_dotnode; 34 $smarty->template_dir = SMARTYPATH.'/templates_hp/'; 35 $smarty->compile_id = 'hp'; 36 $smarty->cache_lifetime = 600; 34 37 35 $smarty->template_dir = SMARTYPATH.'/templates_hp/';36 $smarty->compile_dir = SMARTYPATH.'/templates_c/';37 $smarty->config_dir = SMARTYPATH.'/configs/';38 $smarty->cache_dir = SMARTYPATH.'/cache/';39 $smarty->debugging_ctrl = false;40 $smarty->register_block('t', 'smarty_translate');41 $smarty->register_modifier('wikise', 'Wikise');42 $smarty->register_modifier('utf8', 'smarty_modifier_utf8');43 44 $smarty->compile_id = 'hp';45 $smarty->caching = false;46 $smarty->cache_lifetime = 600;47 $smarty->cache_modified_check = 1;48 $smarty->use_sub_dirs = 1;49 38 if(!$smarty->is_cached('index.tpl', $login.'.'.$lang.'.'.$_SERVER['PHP_SELF'] )) 50 39 { -
trunk/dotnode-error.php
r10 r16 26 26 include('../includes/config/global.inc.php'); 27 27 28 $smarty = new Smarty; 29 30 $smarty->template_dir = SMARTYPATH.'/templates/'; 31 $smarty->compile_dir = SMARTYPATH.'/templates_c/'; 32 $smarty->config_dir = SMARTYPATH.'/configs/'; 33 $smarty->cache_dir = SMARTYPATH.'/cache/'; 34 $smarty->register_block('t', 'smarty_translate'); 35 $smarty->use_sub_dirs = true; 28 $smarty = new Smarty_dotnode; 36 29 37 30 $token = retreive_url_info($_SERVER['PHP_SELF']); -
trunk/dotnode-id.php
r10 r16 32 32 } 33 33 34 $smarty = new Smarty ;34 $smarty = new Smarty_dotnode; 35 35 36 36 $smarty->template_dir = SMARTYPATH.'/templates/'; 37 37 $smarty->compile_dir = SMARTYPATH.'/templates_c/'; 38 $smarty->config_dir = SMARTYPATH.'/configs/';39 $smarty->cache_dir = SMARTYPATH.'/cache/';40 41 38 $smarty->compile_id = 'www'; 42 43 $smarty->register_block('t', 'smarty_translate');44 $smarty->register_modifier('wikise', 'Wikise');45 $smarty->register_modifier('linkurl', 'smarty_modifier_linkurl');46 $smarty->register_modifier('utf8', 'smarty_modifier_utf8');47 $smarty->register_function('html_access_options', 'smarty_function_html_access_options');48 $smarty->use_sub_dirs = true;49 #$smarty->force_compile = true;50 39 51 40 $token = retreive_url_info($_SERVER['PHP_SELF']); -
trunk/dotnode-new.php
r10 r16 27 27 include('../includes/config/global.inc.php'); 28 28 29 $smarty = new Smarty; 30 31 $smarty->template_dir = SMARTYPATH.'/templates/'; 32 $smarty->compile_dir = SMARTYPATH.'/templates_c/'; 33 $smarty->config_dir = SMARTYPATH.'/configs/'; 34 $smarty->cache_dir = SMARTYPATH.'/cache/'; 35 29 $smarty = new Smarty_dotnode; 36 30 $smarty->compile_id = 'new'; 37 38 $smarty->debugging_ctrl = false;39 40 $smarty->register_block('t', 'smarty_translate');41 $smarty->register_modifier('wikise', 'Wikise');42 $smarty->register_function('html_access_options', 'smarty_function_html_access_options');43 $smarty->use_sub_dirs = true;44 45 #$smarty->force_compile = true;46 31 47 32 $token = retreive_url_info($_SERVER['PHP_SELF']); -
trunk/dotnode-pub.php
r10 r16 25 25 include('../includes/includes.inc.php'); 26 26 include('../includes/config/global.inc.php'); 27 $smarty = new Smarty;28 27 29 $smarty->template_dir = SMARTYPATH.'/templates/'; 30 $smarty->compile_dir = SMARTYPATH.'/templates_c/'; 31 $smarty->config_dir = SMARTYPATH.'/configs/'; 32 $smarty->cache_dir = SMARTYPATH.'/cache/'; 28 $smarty = new Smarty_dotnode; 33 29 $smarty->compile_id = 'pub'; 34 $smarty->use_sub_dirs = true;35 36 $smarty->register_block('t', 'smarty_translate');37 30 38 31 $token = retreive_url_info($_SERVER["PHP_SELF"]); 39 40 32 41 33 if( array_key_exists('dotnodeSessID', $_COOKIE) ) -
trunk/dotnode-xml.php
r12 r16 31 31 $login = $regs[1]; 32 32 33 $smarty = new Smarty; 34 33 $smarty = new Smarty_dotnode; 35 34 $smarty->template_dir = SMARTYPATH.'/templates_xml/'; 36 $smarty->compile_dir = SMARTYPATH.'/templates_c/';37 $smarty->config_dir = SMARTYPATH.'/configs/';38 $smarty->cache_dir = SMARTYPATH.'/cache/';39 $smarty->debugging_ctrl = false;40 $smarty->register_modifier('wikise', 'Wikise');41 35 $smarty->compile_id = 'xml'; 42 $smarty->caching = false;43 $smarty->cache_lifetime = 3600;44 $smarty->use_sub_dirs = true;45 46 ini_set('session.name','dotnodeSessID');47 ini_set('session.save_path',BASEPATH.'/../sessions');48 49 include(INCLUDESPATH.'/session_save_handler.inc.php');50 session_set_save_handler ("_sess_open", "_sess_close", "_sess_read", "_sess_write", "_sess_destroy", "_sess_gc");51 36 52 37 session_start(); -
trunk/includes/config.inc.php
r10 r16 56 56 57 57 ini_set('register_globals', 'off'); 58 ini_set('error_log', BASEPATH.'/../log/php.log');59 58 ?> -
trunk/includes/config/xml.inc.php
r1 r16 25 25 define('INCLUDEPATH',BASEPATH.'/../inc_xml'); 26 26 ini_set('zlib.output_compression', 'off'); 27 ini_set('session.name','dotnodeSessID'); 28 ini_set('session.save_path',BASEPATH.'/../sessions'); 29 include(INCLUDESPATH.'/session_save_handler.inc.php'); 30 session_set_save_handler ("_sess_open", "_sess_close", "_sess_read", "_sess_write", "_sess_destroy", "_sess_gc"); 27 31 ?> -
trunk/includes/includes.inc.php
r1 r16 23 23 ******************** http://opensource.ikse.net/projects/dotnode ***/ 24 24 25 include('Smarty/Smarty.class.php');26 include('smarty_plugins/block.gettext.php');27 include('smarty_plugins/modifier.linkalize.php');28 include('smarty_plugins/modifier.linkurl.php');29 30 31 include('smarty_plugins/function.html_access_options.php');32 include('smarty_plugins/modifier.utf8.php');33 34 include('wiki.inc.php');35 36 include('Mail.php');37 38 include('DB.php');39 25 include('config.inc.php'); 40 26 27 include('Mail.php'); // PEAR 28 29 include('DB.php'); // PEAR 30 31 include('smarty.inc.php'); 41 32 include('functions.inc.php'); 42 include('logikse.class.php');43 33 44 34 // To handle difference in PHP_SELF under Apache1 and Apache2 -
trunk/reset_data.sh
r6 r16 6 6 rm -fr data/*/thumb/?? 7 7 rm -fr sessions/* 8 :> log/ php.log8 :> log/* 9 9 10 10 if [ -e data.tar.gz ]; then … … 14 14 chmod 707 smarty/templates_c 15 15 chmod 707 smarty/cache 16 chmod 707 log/php.log16 chmod -R 707 log 17 17 chmod 707 sessions 18 18 chmod -R 707 data
