Logo Search packages:      
Sourcecode: dacode version File versions  Download package

index.php3

<?php
/* daCode _ http://www.dacode.org/
 * $Id: index.php3,v 1.48.2.3 2002/01/16 17:41:50 pterjan Exp $
 */

      $topdir = '.';
      require $topdir."/dacode.php3";
      $session = LoadClass('Session');

      $genfile = "./".ereg_replace('\?$', '', $config->newsfile);

      header("Cache-Control: no-cache, must-revalidate");
      header("Pragma: no-cache");

      if (!$config->homepage_include) {
            header("Location: index,".$config->hide_sig.','.$config->score.$config->ext);
      } else {

            if(!empty($HTTP_SERVER_VARS['PATH_INFO'])
                  || !empty($HTTP_SERVER_VARS['QUERY_STRING'])
                  || $session->checked
                  || !file_exists($config->htmldir.'index'.$config->ext)) {

                  if (ereg('\.'.$config->php.'$', $genfile)) {
                        include($genfile);
                  } else {
                        include($genfile.'.'.$config->php);
                  }
            } else {
                  readfile($config->htmldir.'index'.$config->ext);
            }
      }
?>

Generated by  Doxygen 1.6.0   Back to index