eidolon.net  
SIMON BROWN
  homesite






 



SIMON BROWN HOMESITE
none (ie. "eidolon.net" pages) // visiting_section -> none (ie. not visiting any section) // page -> homepage.html (ie. news-on-left; sections-on-right) // pagetitle -> "eidolon.net" (SHOULD BE DONE DIFFERENTLY!) // useraction -> none (ie. simply display the page) // redirects: /SECTION[/] -> ?section=SECTION // synonyms: author = section // // --------------------------------------- // New Standards as of 17-June-2001: // // variable: if has value, translates to: // author author homepage // book Inprint page for book // article article page for sid=article // story URL for a story // // [ ----------------------------- eidolon.net is an interspace system variant ] // Added 21-Jan-14 because PHP 5.4 // include('themes/Default/theme.php3'); // Added 29-Jan-2018 because too many errors/warnings if (!isset($page)) { $page = ""; } if (!isset($book)) { $book = ""; } if (!isset($article)) { $article = ""; } if (!isset($review)) { $review = ""; } if (!isset($story)) { $story = ""; } if (!isset($section)) { $section = ""; } if (!isset($author)) { $author = ""; } if (!isset($pagename)) { $pagename = ""; } if (!isset($useraction)) { $useraction = ""; } // THE BELOW WILL CHANGE TO USING index.html FOR EVERYTHING LATER // // NEW STANDARD AS OF 23-October-2000 if ($page) { $pagename = $page; } // New Standards as of 17-June-2001 if ($book) { $pagename = "inprint"; } if ($article) { $pagename = "article"; $sid = $article; } if ($review) { $pagename = "reviews/$review"; } if ($story) { $pagename = "story"; } // Check whether we should be using a different handler if ($section || $author) { if (($section == "eidolon_magazine") || ($section == "magazine") || ($section == "fiction") || ($section == "old_site") || ($section == "reviews") || ($section == "admin") || ($section == "sitenews") || ($section == "features")) { } else { $temp = "http://eidolon.net/homesite.html"; if ($author) { $temp .= "?author=$author"; $temp .= "&page=$pagename"; Header("Location: $temp"); } else { $temp .= "?section_name=$section"; $temp .= "&page=$pagename"; Header("Location: $temp"); } } } if(!IsSet($mainfile)) { include ("mainfile.php3"); } // Added 20-Feb-03 to cope with move to PHP4 // $link = mysql_pconnect($dbhost, $dbuname, $dbpass); mysql_select_db('eidnet_main'); // Debugging // echo ''; // NB: Admin users login using an asterisk before their admin username // include ("login.php3"); if ($useraction == "login") { if (substr($uname,0,1) == "*") { $admintest = x_admin_login(substr($uname, 1, strlen($uname)-1), $password); if (!$admintest) { echo ''; } } else { x_login($uname, $password, $login_page); } } elseif ($useraction == "logout") { if ($admin) { x_admin_logout(); } else { x_logout(); } } // This file contains additional functionality which should go in mainfile.php3 // include ("functions.php3"); ?> $sitename: $pagetitle\r\r"; } else { echo " $sitename\r\r"; } // Modified Feb-18 to specify exact directory include("/home/eidnet/public_html/themes/Default/javascript.inc"); echo ''; echo "\r\r"; echo "\r\r "; include("header.php3"); } // This required in case pagename begins with a slash // $bodyfile = ereg_replace("//","/","/home/eidnet/public_html/$pagename"); // $temp_page = ereg_replace("/","",$pagename); $bodyfile = preg_replace("/\/\//","/","/home/eidnet/public_html/$pagename"); $temp_page = preg_replace("/\//","",$pagename); $bodyfile_handle = fopen($bodyfile, "r"); $bodyfile_contents = fread($bodyfile_handle, filesize($bodyfile)); fclose($bodyfile_handle); // NOTE: // This inclusion system is not currently available for root directory contents, // and is perhaps not appropriate for a directory level the administrator should // have total control over... // if ($temp_page == "frontpage.html" || $temp_page == "oldnews.html" || $temp_page == "article.html" || $temp_page == "review.html" || $temp_page == "eidolon_magazineissue.html" || $temp_page == "stories.html" || $temp_page == "story.html" || $temp_page == "authors.html") { include($bodyfile); } // THIS WAS VISTING_SECTION: may cause problems // else if ($section == "" || $section == "admin") { include($bodyfile); } // Hideous kludge, 07Feb03 else if ($section == "sitenews") { echo "

"; include($bodyfile); echo "

"; } else { $bodyfile_contents = trim_raw_html($bodyfile_contents); // $bodyfile_contents = convert_images($bodyfile_contents,$section); $bodyfile_contents = convert_urls($bodyfile_contents,$section,$visiting_section,$section_title); echo $bodyfile_contents; } // Now check if there's an attribution number in the file // and insert a micropayments gadget if found // $attribution_number = find_attribution($bodyfile_contents); if ($attribution_number) { $attribution_page = "http://attribution.org/readattribution.html?attribution=" . trim($attribution_number); $filearray = file($attribution_page); $to_account = substr($filearray[0],0,strpos($filearray[0],",")); $temp = substr($filearray[0],strlen($to_account)+2); $description = substr($temp,0,strlen($temp)-4); $transaction_gadget = "http://eidolon.net/credit/transaction_gadget.html?to_account="; $transaction_gadget .= $to_account; $transaction_gadget .= "&description="; $transaction_gadget .= urlencode($description); $transaction_gadget .= "&display_help=0"; include($transaction_gadget); } // This is required to trigger the config.php3-defined footer printing include("footer.php3"); ?>


Eidolon Publications 1995-2005


[Site Credits | Privacy | Terms of Service]

29362 visits since 06Feb16