- Timestamp:
- 02/27/2006 12:50:42 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 24 edited
-
config-sample/config.php (modified) (3 diffs)
-
debug/mysql.php (modified) (2 diffs)
-
globals/classes/message.php (modified) (1 diff)
-
globals/common.php (modified) (2 diffs)
-
globals/functions.php (modified) (3 diffs)
-
includes/html.php (modified) (1 diff)
-
includes/main.php (modified) (2 diffs)
-
includes/main_center.php (modified) (1 diff)
-
includes/main_footer.php (modified) (1 diff)
-
includes/main_header.php (modified) (1 diff)
-
includes/pages/admin/admin.php (modified) (1 diff)
-
includes/pages/gearth/gearth.php (modified) (1 diff)
-
includes/pages/gmap/gmap.php (modified) (1 diff)
-
includes/pages/hostmaster/hostmaster.php (modified) (1 diff)
-
includes/pages/mynodes/mynodes.php (modified) (4 diffs)
-
includes/pages/nodes/nodes.php (modified) (1 diff)
-
includes/pages/nodes/nodes_plot.php (modified) (1 diff)
-
includes/pages/nodes/nodes_plot_link.php (modified) (1 diff)
-
includes/pages/nodes/nodes_view.php (modified) (1 diff)
-
includes/pages/pickup/pickup.php (modified) (1 diff)
-
includes/pages/ranges/ranges.php (modified) (1 diff)
-
includes/pages/startup/startup.php (modified) (1 diff)
-
includes/pages/users/users.php (modified) (1 diff)
-
index.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/config-sample/config.php
r141 r143 25 25 26 26 'templates' => array( 27 'path' => $root_path.'templates/',28 'compiled_path' => $root_path.'templates/_compiled/',27 'path' => ROOT_PATH.'templates/', 28 'compiled_path' => ROOT_PATH.'templates/_compiled/', 29 29 'default' => 'basic' 30 30 ), … … 46 46 'ns_zone' => 'ns.yourdomain', 47 47 'reverse_zone' => 'in-addr.arpa', 48 'forward_zone_schema' => $root_path.'tools/dnszones-poller/yourdomain.schema',49 'reverse_zone_schema' => $root_path.'tools/dnszones-poller/10.in-addr.arpa.schema'48 'forward_zone_schema' => ROOT_PATH.'tools/dnszones-poller/yourdomain.schema', 49 'reverse_zone_schema' => ROOT_PATH.'tools/dnszones-poller/10.in-addr.arpa.schema' 50 50 ), 51 51 52 52 'folders' => array( 53 'photos' => $root_path.'files/photos/'53 'photos' => ROOT_PATH.'files/photos/' 54 54 ), 55 55 … … 62 62 63 63 'srtm' => array( 64 'path' => $root_path.'files/srtm/'64 'path' => ROOT_PATH.'files/srtm/' 65 65 ), 66 66 -
trunk/debug/mysql.php
r100 r143 22 22 ob_start(); 23 23 24 $root_path = "../";24 define("ROOT_PATH","../"); 25 25 26 include_once( $root_path."globals/common.php");26 include_once(ROOT_PATH."globals/common.php"); 27 27 if ($vars['debug']['enabled'] == FALSE) die("WiND: Debug mode is not enabled. Check the config file.") ; 28 28 … … 63 63 } 64 64 65 include_once( $root_path."includes/main.php");65 include_once(ROOT_PATH."includes/main.php"); 66 66 67 67 echo '<table border="1">'; -
trunk/globals/classes/message.php
r71 r143 52 52 53 53 function output() { 54 global $vars, $design, $ root_path, $smarty, $lang;54 global $vars, $design, $smarty, $lang; 55 55 56 56 if (isset($this->forward)) { -
trunk/globals/common.php
r141 r143 20 20 */ 21 21 22 if (!file_exists( $root_path."config/config.php")) {22 if (!file_exists(ROOT_PATH."config/config.php")) { 23 23 die("WiND error: Please make config/config.php file ..."); 24 24 } 25 include_once( $root_path."globals/vars.php");26 include_once( $root_path."config/config.php");25 include_once(ROOT_PATH."globals/vars.php"); 26 include_once(ROOT_PATH."config/config.php"); 27 27 $vars = array_merge($vars, $config); 28 28 include_once($vars['templates']['path'].$vars['templates']['default'].'/config.php'); 29 29 $vars = array_merge($vars, $template_config); 30 include_once( $root_path."globals/functions.php");30 include_once(ROOT_PATH."globals/functions.php"); 31 31 32 32 $php_start = getmicrotime(); 33 33 34 include_once( $root_path."globals/classes/mysql.php");35 include_once( $root_path."globals/classes/construct.php");36 include_once( $root_path."globals/classes/form.php");37 include_once( $root_path."globals/classes/table.php");34 include_once(ROOT_PATH."globals/classes/mysql.php"); 35 include_once(ROOT_PATH."globals/classes/construct.php"); 36 include_once(ROOT_PATH."globals/classes/form.php"); 37 include_once(ROOT_PATH."globals/classes/table.php"); 38 38 39 39 if (!file_exists($vars['smarty']['class'])) { … … 69 69 $tl = $vars['language']['default']; 70 70 } 71 include_once( $root_path."globals/language/".$tl.".php");72 if (file_exists( $root_path."config/language/".$tl."_overwrite.php")) {73 include_once( $root_path."config/language/".$tl."_overwrite.php");71 include_once(ROOT_PATH."globals/language/".$tl.".php"); 72 if (file_exists(ROOT_PATH."config/language/".$tl."_overwrite.php")) { 73 include_once(ROOT_PATH."config/language/".$tl."_overwrite.php"); 74 74 $lang = array_multimerge($lang, $lang_overwrite); 75 75 } -
trunk/globals/functions.php
r138 r143 47 47 48 48 function get($key) { 49 global $page_admin, $main , $root_path;49 global $page_admin, $main; 50 50 if ($_SERVER['REQUEST_METHOD'] == 'GET') { 51 51 $ret = $_GET[$key]; … … 56 56 switch ($key) { 57 57 case 'page': 58 $valid_array = getdirlist( $root_path."includes/pages/");58 $valid_array = getdirlist(ROOT_PATH."includes/pages/"); 59 59 array_unshift($valid_array, 'startup'); 60 60 break; 61 61 case 'subpage': 62 $valid_array = getdirlist( $root_path."includes/pages/".get('page').'/', FALSE, TRUE);62 $valid_array = getdirlist(ROOT_PATH."includes/pages/".get('page').'/', FALSE, TRUE); 63 63 for ($key=0;$key<count($valid_array);$key++) { 64 64 $valid_array[$key] = basename($valid_array[$key], '.php'); … … 73 73 break; 74 74 case 'lang': 75 $valid_array = getdirlist( $root_path."globals/language/", FALSE, TRUE);75 $valid_array = getdirlist(ROOT_PATH."globals/language/", FALSE, TRUE); 76 76 for ($key=0;$key<count($valid_array);$key++) { 77 77 $valid_array[$key] = basename($valid_array[$key], '.php'); -
trunk/includes/html.php
r115 r143 20 20 */ 21 21 22 include_once( $root_path."includes/head.php");23 include_once( $root_path."includes/body.php");22 include_once(ROOT_PATH."includes/head.php"); 23 include_once(ROOT_PATH."includes/body.php"); 24 24 25 25 class html { -
trunk/includes/main.php
r100 r143 20 20 */ 21 21 22 include_once( $root_path."includes/html.php");23 include_once( $root_path."globals/classes/userdata.php");24 include_once( $root_path."globals/classes/message.php");25 include_once( $root_path."includes/main_header.php");26 include_once( $root_path."includes/main_center.php");27 include_once( $root_path."includes/main_footer.php");28 include_once( $root_path."includes/main_menu.php");22 include_once(ROOT_PATH."includes/html.php"); 23 include_once(ROOT_PATH."globals/classes/userdata.php"); 24 include_once(ROOT_PATH."globals/classes/message.php"); 25 include_once(ROOT_PATH."includes/main_header.php"); 26 include_once(ROOT_PATH."includes/main_center.php"); 27 include_once(ROOT_PATH."includes/main_footer.php"); 28 include_once(ROOT_PATH."includes/main_menu.php"); 29 29 30 30 class main { … … 49 49 50 50 function output() { 51 global $ root_path, $lang;51 global $lang; 52 52 53 53 $this->html->head->add_title($lang['site_title']); -
trunk/includes/main_center.php
r140 r143 20 20 */ 21 21 22 include_once( $root_path."includes/pages/".get('page')."/".get('page').".php");22 include_once(ROOT_PATH."includes/pages/".get('page')."/".get('page').".php"); 23 23 24 24 class center { -
trunk/includes/main_footer.php
r101 r143 34 34 $this->tpl['mysql_time'] = $db->total_time; 35 35 if ($main->userdata->privileges['admin'] === TRUE && $vars['debug']['enabled'] == TRUE) { 36 $this->tpl['debug_mysql'] = $root_path."debug/mysql.php?".get_qs();36 $this->tpl['debug_mysql'] = ROOT_PATH."debug/mysql.php?".get_qs(); 37 37 } 38 38 return template($this->tpl, __FILE__); -
trunk/includes/main_header.php
r136 r143 29 29 30 30 function output() { 31 global $root_path;32 31 if ($this->hide) return; 33 if (file_exists( $root_path.'config/mylogo.png')) {32 if (file_exists(ROOT_PATH.'config/mylogo.png')) { 34 33 $this->tpl['mylogo'] = TRUE; 35 $this->tpl['mylogo_dir'] = $root_path.'config/';34 $this->tpl['mylogo_dir'] = ROOT_PATH.'config/'; 36 35 } 37 36 return template($this->tpl, __FILE__); -
trunk/includes/pages/admin/admin.php
r1 r143 20 20 */ 21 21 22 if (get('subpage') != '') include_once( $root_path."includes/pages/admin/admin_".get('subpage').".php");22 if (get('subpage') != '') include_once(ROOT_PATH."includes/pages/admin/admin_".get('subpage').".php"); 23 23 24 24 class admin { -
trunk/includes/pages/gearth/gearth.php
r141 r143 22 22 23 23 if (get('subpage') != '') { 24 include_once( $root_path."includes/pages/gearth/gearth_".get('subpage').".php");24 include_once(ROOT_PATH."includes/pages/gearth/gearth_".get('subpage').".php"); 25 25 } else { 26 include_once( $root_path."includes/pages/gearth/gearth_main.php");26 include_once(ROOT_PATH."includes/pages/gearth/gearth_main.php"); 27 27 } 28 28 -
trunk/includes/pages/gmap/gmap.php
r42 r143 21 21 22 22 if (get('subpage') != '') { 23 include_once( $root_path."includes/pages/gmap/gmap_".get('subpage').".php");23 include_once(ROOT_PATH."includes/pages/gmap/gmap_".get('subpage').".php"); 24 24 } else { 25 include_once( $root_path."includes/pages/gmap/gmap_fullmap.php");25 include_once(ROOT_PATH."includes/pages/gmap/gmap_fullmap.php"); 26 26 } 27 27 -
trunk/includes/pages/hostmaster/hostmaster.php
r1 r143 20 20 */ 21 21 22 if (get('subpage') != '') include_once( $root_path."includes/pages/hostmaster/hostmaster_".get('subpage').".php");22 if (get('subpage') != '') include_once(ROOT_PATH."includes/pages/hostmaster/hostmaster_".get('subpage').".php"); 23 23 24 24 class hostmaster { -
trunk/includes/pages/mynodes/mynodes.php
r141 r143 20 20 */ 21 21 22 if (get('subpage') != '') include_once( $root_path."includes/pages/mynodes/mynodes_".get('subpage').".php");22 if (get('subpage') != '') include_once(ROOT_PATH."includes/pages/mynodes/mynodes_".get('subpage').".php"); 23 23 24 24 class mynodes { … … 493 493 494 494 function output_onpost_table_photosview() { 495 global $ root_path, $vars, $db, $main;495 global $vars, $db, $main; 496 496 foreach( (array) $_POST['id'] as $key => $value) { 497 497 $db->del("photos", "id = '".$value."'"); 498 498 $uploaddir = $vars['folders']['photos']; 499 499 $filename = 'photo-'.$value.".*"; 500 delfile( $root_path.$uploaddir.$filename);500 delfile(ROOT_PATH.$uploaddir.$filename); 501 501 $filename = 'photo-'.$value."-*.*"; 502 delfile( $root_path.$uploaddir.$filename);502 delfile(ROOT_PATH.$uploaddir.$filename); 503 503 } 504 504 foreach( (array) array('N','NE','E','SE','S','SW','W','NW', 'PANORAMIC') as $value) { … … 510 510 $filename = 'photo-'.$ins_id.'.jpg'; 511 511 $filename_s = 'photo-'.$ins_id.'-s.jpg'; 512 if (@move_uploaded_file($_FILES[$value]['tmp_name'], $root_path.$uploaddir.$filename) === FALSE) {512 if (@move_uploaded_file($_FILES[$value]['tmp_name'], ROOT_PATH.$uploaddir.$filename) === FALSE) { 513 513 $db->del("photos", "id = '".$ins_id."'"); 514 514 $main->message->set_fromlang("error", "upload_file_failed"); … … 516 516 } 517 517 if ($value == 'PANORAMIC') { 518 $image_s = resizeJPG( $root_path.$uploaddir.$filename, 600, 200);518 $image_s = resizeJPG(ROOT_PATH.$uploaddir.$filename, 600, 200); 519 519 } else { 520 $image_s = resizeJPG( $root_path.$uploaddir.$filename, 200, 200);520 $image_s = resizeJPG(ROOT_PATH.$uploaddir.$filename, 200, 200); 521 521 } 522 imagejpeg($image_s, $root_path.$uploaddir.$filename_s);522 imagejpeg($image_s, ROOT_PATH.$uploaddir.$filename_s); 523 523 } elseif ($_POST['info-'.$value] != '') { 524 524 $db->set("photos", array('info' => $_POST['info-'.$value]), "node_id = ".intval(get('node'))." AND view_point = '".$value."'"); -
trunk/includes/pages/nodes/nodes.php
r1 r143 21 21 22 22 if (get('subpage') != '') { 23 include_once( $root_path."includes/pages/nodes/nodes_".get('subpage').".php");23 include_once(ROOT_PATH."includes/pages/nodes/nodes_".get('subpage').".php"); 24 24 } else { 25 25 if (get('node') != '') { 26 include_once( $root_path."includes/pages/nodes/nodes_view.php");26 include_once(ROOT_PATH."includes/pages/nodes/nodes_view.php"); 27 27 } else { 28 include_once( $root_path."includes/pages/nodes/nodes_search.php");28 include_once(ROOT_PATH."includes/pages/nodes/nodes_search.php"); 29 29 } 30 30 } -
trunk/includes/pages/nodes/nodes_plot.php
r130 r143 20 20 */ 21 21 22 include_once( $root_path.'globals/classes/geocalc.php');22 include_once(ROOT_PATH.'globals/classes/geocalc.php'); 23 23 $geocalc = new geocalc(); 24 24 25 include_once( $root_path.'globals/classes/srtm.php');25 include_once(ROOT_PATH.'globals/classes/srtm.php'); 26 26 $srtm = new srtm($vars['srtm']['path']); 27 27 28 include_once( $root_path.'globals/classes/geoimage.php');28 include_once(ROOT_PATH.'globals/classes/geoimage.php'); 29 29 $geoimage = new geoimage(); 30 30 -
trunk/includes/pages/nodes/nodes_plot_link.php
r129 r143 20 20 */ 21 21 22 include_once( $root_path.'globals/classes/geocalc.php');22 include_once(ROOT_PATH.'globals/classes/geocalc.php'); 23 23 $geocalc = new geocalc(); 24 24 25 include_once( $root_path.'globals/classes/srtm.php');25 include_once(ROOT_PATH.'globals/classes/srtm.php'); 26 26 $srtm = new srtm($vars['srtm']['path']); 27 27 -
trunk/includes/pages/nodes/nodes_view.php
r140 r143 20 20 */ 21 21 22 include_once( $root_path.'globals/classes/geocalc.php');22 include_once(ROOT_PATH.'globals/classes/geocalc.php'); 23 23 $geocalc = new geocalc(); 24 24 25 include_once( $root_path.'globals/classes/srtm.php');25 include_once(ROOT_PATH.'globals/classes/srtm.php'); 26 26 $srtm = new srtm($vars['srtm']['path']); 27 27 -
trunk/includes/pages/pickup/pickup.php
r1 r143 20 20 */ 21 21 22 if (get('subpage') != '') include_once( $root_path."includes/pages/pickup/pickup_".get('subpage').".php");22 if (get('subpage') != '') include_once(ROOT_PATH."includes/pages/pickup/pickup_".get('subpage').".php"); 23 23 24 24 class pickup { -
trunk/includes/pages/ranges/ranges.php
r1 r143 20 20 */ 21 21 22 if (get('subpage') != '') include_once( $root_path."includes/pages/ranges/ranges_".get('subpage').".php");22 if (get('subpage') != '') include_once(ROOT_PATH."includes/pages/ranges/ranges_".get('subpage').".php"); 23 23 24 24 class ranges { -
trunk/includes/pages/startup/startup.php
r136 r143 29 29 30 30 function output() { 31 global $root_path; 32 if (file_exists($root_path."config/startup.html")) $this->tpl['startup_html'] = file_get_contents($root_path."config/startup.html"); 31 if (file_exists(ROOT_PATH."config/startup.html")) $this->tpl['startup_html'] = file_get_contents(ROOT_PATH."config/startup.html"); 33 32 return template($this->tpl, __FILE__); 34 33 } -
trunk/includes/pages/users/users.php
r87 r143 20 20 */ 21 21 22 if (get('action') == 'restore') include_once( $root_path."includes/pages/users/users_restore.php");22 if (get('action') == 'restore') include_once(ROOT_PATH."includes/pages/users/users_restore.php"); 23 23 24 24 class users { -
trunk/index.php
r1 r143 22 22 ob_start(); 23 23 24 $root_path = "./";24 define("ROOT_PATH","./"); 25 25 26 include_once( $root_path."globals/common.php");26 include_once(ROOT_PATH."globals/common.php"); 27 27 28 include_once( $root_path."includes/main.php");28 include_once(ROOT_PATH."includes/main.php"); 29 29 30 30 $main = new main;
Note: See TracChangeset
for help on using the changeset viewer.
