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

mod.php3

<?php
/* daCode _ http://www.dacode.org/
 * $Id: mod.php3,v 1.11.2.3 2002/10/12 17:32:28 ruffy Exp $
 */

      $topdir = '..';
      require $topdir."/dacode.php3";

      $user = LoadClass('User');
      $html = LoadClass('Html');
      $sidebox=LoadClass('Sidebox');
      $admin = LoadClass('Admin');
      $board = LoadClass('Board');

      if (!($user->checked && ($user->level&pow(2,21)))) {
            echo $config->no_access_msg;
            exit;
      }

      if (!ereg('^'.$config->baseurl,$HTTP_SERVER_VARS['HTTP_REFERER'])
            && !($session->param & pow(2,3))) {
            $title = lecho("HTTP referer");
            $nobanner = false;
            $utils = LoadClass('Utils');
            $text = $utils->warn_referer();
            $html->parsetemplate('basic.tmpl');
            exit;
      }

      $title = lecho("Submit news");
      $HTTP_GET_VARS['action'] = 'mod_news';

      $html->parsetemplate('admin.tmpl');
?>

Generated by  Doxygen 1.6.0   Back to index