// Copryright (c) 2003-2004 Xenolth.biz. All righs reserved. if (isset($lang) && ($lang == "1")) { require "configen.php"; } else { require "config.php"; } $my_lang=$lang; list($BG_width, $BG_height) = getimagesize($BG_image); function delnl2br($string) { $string = eregi_replace("\n", " ", $string); $string = eregi_replace("\r", " ", $string); return $string; } ?>
![]() | ||
|
![]() |
|
![]() |
$ICON_left = $BG_width-180;
$ICON_top = $BG_height-30;
foreach ($ICONS_to_use as $icon) {
list($ICON_width, $ICON_height) = getimagesize($icon);
echo("PARDON OUR DUST!This site is experiencing technical difficulties. Please be patient if things do not appear correctly. "); mysql_select_db($MYSQL_database) or die ("PARDON OUR DUST!This site is experiencing technical difficulties. Please be patient if things do not appear correctly. "); $MYSQL_result[0] = mysql_query("SELECT * FROM {$MYSQL_table_prefix}globetable") or die ("PARDON OUR DUST!This site is experiencing technical difficulties. Please be patient if things do not appear correctly. " . mysql_error()); foreach($FIELDS_name as $temp) { /* $MYSQL_result[$a] = mysql_query("SELECT {$MYSQL_table_prefix}globetable.id, {$MYSQL_table_prefix}globetable.ycords, {$MYSQL_table_prefix}{$temp}.user_input FROM {$MYSQL_table_prefix}globetable, {$MYSQL_table_prefix}{$temp} WHERE {$MYSQL_table_prefix}globetable.id = {$MYSQL_table_prefix}{$temp}.id order by {$MYSQL_table_prefix}globetable.ycords") */ $MYSQL_result[$a] = mysql_query("SELECT {$MYSQL_table_prefix}{$temp}.id, {$MYSQL_table_prefix}{$temp}.user_input FROM {$MYSQL_table_prefix}globetable, {$MYSQL_table_prefix}{$temp} WHERE {$MYSQL_table_prefix}globetable.id = {$MYSQL_table_prefix}{$temp}.id") or die ("PARDON OUR DUST!This site is experiencing technical difficulties. Please be patient if things do not appear correctly. " . mysql_error()); while ($FIELDS_row = mysql_fetch_array($MYSQL_result[$a], MYSQL_NUM)) { $display[$a][$FIELDS_row[0]] = $FIELDS_row[1]; $b++; //if ($b<5) { echo "a:".$a." b:".$b." data:".$FIELDS_row[0]."_".$FIELDS_row[1]." "; } } $a++; $b = 0; echo ("\n"); } $b = 0; $bb = 0; while ($row[0] = mysql_fetch_array($MYSQL_result[0], MYSQL_NUM)) { $id = $row[0][0]; $b = $id; //echo $b."_"; $DIV_xcords = $row[0][1]; $DIV_ycords = $row[0][2]; $DIV_icon = $row[0][3]; list($ICON_width, $ICON_height) = getimagesize($DIV_icon); if (substr($display[5][$b],16)=="G") { $my_time = substr($display[5][$b],0,16)." (GMT)"; } else { $my_time=$display[5][$b]; } $JSCRIPT_display_arr[$bb][0] = $id; $JSCRIPT_display_arr[$bb][1] = $DIV_xcords; $JSCRIPT_display_arr[$bb][2] = $DIV_ycords; $JSCRIPT_display_arr[$bb][3] = $DIV_icon; $JSCRIPT_display_arr[$bb][4] = $display[1][$b]; $JSCRIPT_display_arr[$bb][5] = $display[2][$b]; $JSCRIPT_display_arr[$bb][6] = $display[3][$b]; $JSCRIPT_display_arr[$bb][7] = $display[4][$b]; $JSCRIPT_display_arr[$bb][8] = $my_time; if (($lang=="1") xor (substr($display[5][$b],16)=="G")) { $bb++;continue; } echo ("\n"); ?>PARDON OUR DUST!This site is experiencing technical difficulties. Please be patient if things do not appear correctly. " . mysql_error()); mysql_select_db($MYSQL_database) or die ("PARDON OUR DUST!This site is experiencing technical difficulties. Please be patient if things do not appear correctly. " . mysql_error()); mysql_query("insert into {$MYSQL_table_prefix}globetable values (NULL, '$VAR_xcords', '$VAR_ycords', '$VAR_icon');") or die ("PARDON OUR DUST!This site is experiencing technical difficulties. Please be patient if things do not appear correctly. " . mysql_error()); $id = mysql_query("select last_insert_id()"); $id = mysql_fetch_array($id, MYSQL_NUM); $id = $id[0]; $EMAIL_message .= "\n Data: $VAR_xcords, $VAR_ycords, $VAR_icon"; while ($i<=$FIELDS_num) { $VAR_fields[$i] = str_replace('\'','',$VAR_fields[$i]); $VAR_fields[$i] = str_replace('"','',$VAR_fields[$i]); mysql_query("insert into {$MYSQL_table_prefix}{$FIELDS_name[$i]} values ($id, '$VAR_fields[$i]');") or die ("PARDON OUR DUST!This site is experiencing technical difficulties. Please be patient if things do not appear correctly. " . mysql_error()); $EMAIL_message .= "\n{$FIELDS_name[$i]}: {$VAR_fields[$i]}"; $i++; } $EMAIL_message .= "\n VIEW:"; $EMAIL_message .= "\nhttp://www.photoart.lt/guestmap/list.php"; $EMAIL_message .= "\n DELETE=NUM:"; $EMAIL_message .= "\nhttp://www.photoart.lt/guestmap/list.php?num="; mysql_close($MYSQL_link); if((isset($EMAIL_address)) && ($EMAIL_address!="")) { mail($EMAIL_address, "Someone has just signed your Globe*Trotter!", $EMAIL_message, "From: globetrotter@{$_SERVER['SERVER_NAME']}"); } } ?> |