- Timestamp:
- 01/05/2006 01:43:46 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
globals/classes/construct.php (modified) (2 diffs)
-
globals/functions.php (modified) (7 diffs)
-
includes/pages/nodes/nodes_plot.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/globals/classes/construct.php
r1 r128 24 24 function form($form, $template='constructors/form.tpl') { 25 25 global $smarty; 26 //echo pvar($data);27 26 if (substr(strrchr($template, "."), 1) != "tpl") { 28 27 $path_parts = pathinfo($template); … … 48 47 } 49 48 } 50 //echo pvar($table->data);51 49 return template(array("data" => $table->data, "extra_data" => $table->info, "hidden_qs" => get_qs()), $template); 52 50 } -
trunk/globals/functions.php
r127 r128 20 20 */ 21 21 22 function pvar($var) {23 if (is_array($var)) {24 $ret .= '<ul>';25 while(list($key) = each($var)) {26 if (is_array($var[$key])) {27 $ret .= '<li>'.$key.pvar($var[$key]).'</li>';28 } else {29 $ret .= '<li>'.$key.' = '.$var[$key].'</li>';30 }31 }32 $ret .= '</ul>';33 return $ret;34 } else {35 return $var;36 }37 }38 39 22 function redirect($url, $sec=0, $exit=TRUE) { 40 23 global $main; … … 46 29 if (@preg_match('/Microsoft|WebSTAR|Xitami/', getenv('SERVER_SOFTWARE')) || $sec>0) { 47 30 header("Refresh: $sec; URL=".html_entity_decode($url)); 48 global $main;49 31 $main->html->head->add_meta("$sec; url=$url", "", "refresh"); 50 32 } else { … … 102 84 } 103 85 104 function getdirlist ($dirName, $dirs=TRUE, $files=FALSE) {86 function getdirlist($dirName, $dirs=TRUE, $files=FALSE) { 105 87 $d = dir($dirName); 106 88 $a = array(); … … 132 114 } 133 115 134 function query_str ($params) {116 function query_str($params) { 135 117 $str = ''; 136 118 foreach( (array) $params as $key => $value) { … … 243 225 } 244 226 245 function sendmail_fromlang($to, $message) {246 global $lang;247 return sendmail($to, $lang['email'][$message]['subject'], $lang['email'][$message]['body']);248 }249 250 227 function correct_ip($ip, $ret_null=TRUE) { 251 228 if ($ip == '' && $ret_null === TRUE) return ''; … … 295 272 } 296 273 297 function is_ip ($ip, $full_ip=TRUE) {274 function is_ip($ip, $full_ip=TRUE) { 298 275 $ip_ex = explode(".", $ip, 4); 299 276 if ($ip == '') return FALSE; … … 332 309 } 333 310 334 function array_multimerge ($array1, $array2) {311 function array_multimerge($array1, $array2) { 335 312 if (is_array($array2) && count($array2)) { 336 313 foreach ($array2 as $k => $v) { -
trunk/includes/pages/nodes/nodes_plot.php
r1 r128 40 40 $point_a = new elevation($a_node[0]['latitude'], $a_node[0]['longitude']); 41 41 $point_b = new elevation($b_node[0]['latitude'], $b_node[0]['longitude']); 42 //echo pvar($a_node);43 //echo pvar($b_node);44 42 $image = plotlink($width, $height, $point_a, $point_b, (integer)$a_node[0]['elevation'], (integer)$b_node[0]['elevation']); 45 43
Note: See TracChangeset
for help on using the changeset viewer.
