Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites
View Statistics - Next Notice - Previous NoticeDirectory filter : [ all ] / postnuke_official / html [ view in CVS ]
Date | Directory [filter] | File(s) [view] | Author [filter] |
04 Aug 2002 22:01:31 | postnuke_official/html | admin.php,1.47.2.7,1.47.2.8 | John Cox |
ROLLBACK -- will add later this week:) |
Update of /home/cvsroot/postnuke_official/html In directory ns7.hostnuke.net:/tmp/cvs-serv23692/html Modified Files: Tag: PostNuke_71 admin.php Log Message: ROLLBACK -- will add later this week:) Index: admin.php =================================================================== RCS file: /home/cvsroot/postnuke_official/html/Attic/admin.php,v retrieving revision 1.47.2.7 retrieving revision 1.47.2.8 diff -C2 -d -r1.47.2.7 -r1.47.2.8 *** admin.php 4 Aug 2002 21:17:21 -0000 1.47.2.7 --- admin.php 4 Aug 2002 22:01:28 -0000 1.47.2.8 *************** *** 1,245 **** <?php - // File: $Id$ $Name$ - // ---------------------------------------------------------------------- - // POST-NUKE Content Management System - // Copyright (C) 2001 by the Post-Nuke Development Team. - // http://www.postnuke.com/ - // ---------------------------------------------------------------------- - // Based on: - // PHP-NUKE Web Portal System - http://phpnuke.org/ - // Thatware - http://thatware.org/ - // ---------------------------------------------------------------------- - // LICENSE - // - // This program is free software; you can redistribute it and/or - // modify it under the terms of the GNU General Public License (GPL) - // as published by the Free Software Foundation; either version 2 - // of the License, or (at your option) any later version. - // - // This program is distributed in the hope that it will be useful, - // but WITHOUT ANY WARRANTY; without even the implied warranty of - // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - // GNU General Public License for more details. - // - // To read the license please visit http://www.gnu.org/copyleft/gpl.html - // ---------------------------------------------------------------------- - // Original Author of file: Francisco Burzi - // Purpose of file: - // ---------------------------------------------------------------------- - - include 'includes/pnAPI.php'; - pnInit(); - include 'includes/legacy.php'; - // eugenio themeover 20020413 - // pnThemeLoad(); ! ! if(!$module){ ! ! $module = 'admin'; ! ! $op = 'main'; ! ! } ! ! include 'modules/admin/pnfunctions.php'; ! ! // include 'modules/ns-admin/tools.php'; ! ! $currentlangfile = 'language/' . pnVarPrepForOS(pnUserGetLang()) . '/admin.php'; - $defaultlangfile = 'language/' . pnVarPrepForOS(pnConfigGetVar('language')) . '/admin.php'; - if (file_exists($currentlangfile)) { - include $currentlangfile; - } elseif (file_exists($defaultlangfile)) { - include $defaultlangfile; - } - - // $module / $op control - if (!isset($op) or $op=='adminMain') - { ! ! $module = 'admin'; ! $op = 'main'; - } - elseif (!isset($module)) - $module = 'ns-past_nuke'; - - /* - Seems to be unused : - $basedir = dirname($SCRIPT_FILENAME); - $textrows = 20; - $textcols = 85; - $udir = dirname($PHP_SELF); - if (empty($wdir)) $wdir='/'; - */ - - // to be put somewhere else !!! review ? - if (($module=='ns-past_nuke') and ($op=='deleteNotice')) - { - deleteNotice($id, $table, $op_back); - exit; - } - // to be put somewhere else !!! end - - // prepare the menu - admin_menu('admin.html'); - - if (file_exists($file='modules/' . pnVarPrepForOS($module) . '/admin.php')) - { - $ModName = $module; - include $file; - - modules_get_language(); - modules_get_manual(); - - if (substr($module,0,3)=='ns-') { - $function = substr($module,3).'_admin_'; - } - else { - $function = $module.'_admin_'; - } - - $function_op = $function.$op; - $function_main = $function.'main'; - $var = array_merge($GLOBALS['HTTP_GET_VARS'],$GLOBALS['HTTP_POST_VARS']); - if (function_exists($function_op)) { - $function_op($var); - } - elseif (function_exists($function_main)) { - $function_main($var); - } - else { - die("error : admin_execute($file,$function_op)"); - } - } - else - die("Fatal error :<br>module = $module<br>op = $op<br>"); - - if (function_exists('session_write_close')) { - session_write_close(); - } else { - // Hack for old versions of PHP with bad session save - $sessvars = ''; - foreach ($GLOBALS as $k => $v) { - if ((preg_match('/^PNSV/', $k)) && - (isset($v))) { - $sessvars .= "$k|" . serialize($v); - } - } - pnSessionWrite(session_id(), $sessvars); - } - ?> --- 1,118 ---- <?php // File: $Id$ $Name$ // ---------------------------------------------------------------------- // POST-NUKE Content Management System // Copyright (C) 2001 by the Post-Nuke Development Team. // http://www.postnuke.com/ // ---------------------------------------------------------------------- // Based on: // PHP-NUKE Web Portal System - http://phpnuke.org/ // Thatware - http://thatware.org/ // ---------------------------------------------------------------------- // LICENSE // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public License (GPL) // as published by the Free Software Foundation; either version 2 // of the License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // To read the license please visit http://www.gnu.org/copyleft/gpl.html // ---------------------------------------------------------------------- // Original Author of file: Francisco Burzi // Purpose of file: // ---------------------------------------------------------------------- include 'includes/pnAPI.php'; pnInit(); include 'includes/legacy.php'; // eugenio themeover 20020413 // pnThemeLoad(); ! include 'modules/ns-admin/tools.php'; $currentlangfile = 'language/' . pnVarPrepForOS(pnUserGetLang()) . '/admin.php'; $defaultlangfile = 'language/' . pnVarPrepForOS(pnConfigGetVar('language')) . '/admin.php'; if (file_exists($currentlangfile)) { include $currentlangfile; } elseif (file_exists($defaultlangfile)) { include $defaultlangfile; } // $module / $op control if (!isset($op) or $op=='adminMain') { ! $module = 'ns-admin'; $op = 'main'; } elseif (!isset($module)) $module = 'ns-past_nuke'; /* Seems to be unused : $basedir = dirname($SCRIPT_FILENAME); $textrows = 20; $textcols = 85; $udir = dirname($PHP_SELF); if (empty($wdir)) $wdir='/'; */ // to be put somewhere else !!! review ? if (($module=='ns-past_nuke') and ($op=='deleteNotice')) { deleteNotice($id, $table, $op_back); exit; } // to be put somewhere else !!! end // prepare the menu admin_menu('admin.html'); if (file_exists($file='modules/' . pnVarPrepForOS($module) . '/admin.php')) { $ModName = $module; include $file; modules_get_language(); modules_get_manual(); if (substr($module,0,3)=='ns-') { $function = substr($module,3).'_admin_'; } else { $function = $module.'_admin_'; } $function_op = $function.$op; $function_main = $function.'main'; $var = array_merge($GLOBALS['HTTP_GET_VARS'],$GLOBALS['HTTP_POST_VARS']); if (function_exists($function_op)) { $function_op($var); } elseif (function_exists($function_main)) { $function_main($var); } else { die("error : admin_execute($file,$function_op)"); } } else die("Fatal error :<br>module = $module<br>op = $op<br>"); if (function_exists('session_write_close')) { session_write_close(); } else { // Hack for old versions of PHP with bad session save $sessvars = ''; foreach ($GLOBALS as $k => $v) { if ((preg_match('/^PNSV/', $k)) && (isset($v))) { $sessvars .= "$k|" . serialize($v); } } pnSessionWrite(session_id(), $sessvars); } ?>
View Statistics - Next Notice - Previous Notice
Visit Developer Site - Browse CVS Repository |
Syndicate via backend.rss (max. once per hour please) | Powered by CVSNotice 0.1.3 |