#=============================# # RAYBOARD [PHPª©] Ver 0.74 # Copyright (C) 2005, by unastray ( sei ) # All rights reserved # URL: http://unastray.com/ #=============================# # [ª`·N¨Æ¶µ] # 1. ¥»µ{§Ç¬O§K¶O´£¨Ñ¤U¸üªº¡A¦p¦³¥ô¦ó°ÝÃD¡A¥»¯¸¤£t¥ô¦ó³d¥ô # 2. ½Ð¤ÅÀH·N§R§ï¥»¯¸¤Îìµ{§Ç¯¸ÂIª©Åv«H®§ # 3. ½Ð¤ÅÀH·N§R§ï¥»µ{§Ç¤º®e¡A¥X²{®t¿ù¥»¯¸¤£t³d¥ô # 4. ¦¹¥Dµ{§Ç(Snow*stopº~¤Æ+ק睊)ÄY¸T¦A¤Àµo¡Aק睊Åv # 5. ¦¹µ{§ÇSkinÄY¸T¦A¤Àµo¡B¦A°t¥¬¡Bק睊Åv #=============================# # Snow*stop º~¤Æ + ק睊 # Chinses & Edit by Snow*stop # ìµ{§Ç½s¸¹¡G ver 0.74 # ¥»¯¸×§ïª©½s¸¹¡G ver 1.3 # Home: http://www.snowstop.net/ #=============================# require './user-init.php'; require './skin-init.php'; $LOCK; if($Datesort){ $Upsort = 0; } if ($_SERVER["REQUEST_METHOD"] != "POST"){ while(list ($key, $val) = each($_GET)) { $_POST[$key] = $val; } } $MASTER = 0; if($_POST['pass']){ $MASTER = ($_POST['pass'] == $Mpass) ? 1 : 0; $_POST['epass'] = crypt($_POST['pass']); } else if ($_POST['epass']){ $MASTER = decry($Mpass , $_POST['epass']); if($_POST['pass'] == $Mpass){ $MASTER = 1;} } if($MASTER && $_POST['su']) { $SU = 1; } switch ($_POST['mode']) { case "res": res(); break; case "write": Write(); break; case "delete": Delete(); break; case "edit": Edit(); break; case "ewrite": Edit(); break; case "accept": Edit(); break; case "admin": Admin(); break; case "master": Master(); break; case "search": SearchView();break; case "mres": MasterResform(); break; case "reviseCnt": reviseCnt();break; case "viewIcon": viewIcon();break; case "change_init": change_init(); break; } Index(); exit(0); function openSkin($name){ global $Skin_main, $Skin_res, $Skin_edit, $Skin_srch, $Skin_form, $Skin_last, $Skin_error; $file = ($name == 'main') ? $Skin_main : (($name == 'res') ? $Skin_res : (($name == 'edit') ? $Skin_edit : (($name == 'search') ? $Skin_srch : (($name == 'form') ? $Skin_form : (($name == 'error') ? $Skin_error : (($name == 'last') ? $Skin_last : Error("mistake", 1))))))); if($fp = fopen("$file", "r")){ while( !feof($fp) ) { $data .= fgets($fp, 9182); } fclose($fp); } else { Error("¥´¶}¥¢±Ñ $file.", 1);} return $data; } function Index() { global $View, $Log_file, $Lskin_from, $Fskin_from, $Last_View; $lastname; $lastdate; $rescnt; $tmp_rfoot; $delimiter = time(); $count = 0; $flag = 0; $start = $View * $_POST['page'] + 1; $fin = $start + $View - 1; $lines = array(); if($_POST['mode'] == 'last'){ $from = ($Lskin_from) ? $Lskin_from : 'last'; } else if ($_POST['mode'] == 'form') { $from = ($Fskin_from) ? $Fskin_from : 'form'; } else { $_POST['mode'] = $from = 'main'; } if($_POST['mode'] == 'last'){ $start = 1; $fin = $Last_View; } $skin_data = openSkin($from); $lines = file($Log_file); list(,,$oyacnt,,,,) = explode(",", array_shift($lines)); list($head, $form, $rhead, $rbody, $rfoot, $foot) = explode("", $skin_data); $tmp_formfoot = $form . $delimiter .$foot; changeForm($tmp_formfoot); changeFoot($tmp_formfoot, $oyacnt, $fin); if($_POST['mode'] == 'last') $tmp_formfoot = preg_replace("/