Update of /cvsroot/phpslash/phpslash-dev/public_html/admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv10666/phpslash-dev/public_html/admin
Modified Files:
infologAdmin.php
Log Message:
removed classes that already had been moved to module directories. moved Infolog and slashAuth to module directories.
Index: infologAdmin.php
===================================================================
RCS file: /cvsroot/phpslash/phpslash-dev/public_html/admin/infologAdmin.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** infologAdmin.php 12 Mar 2003 16:12:57 -0000 1.1.1.1
--- infologAdmin.php 15 Sep 2004 23:18:39 -0000 1.2
***************
*** 1,120 ****
<?php
! // $Id$
!
! require("config.php");
! // Header title
! $pagetitle = pslgetText("Administration");
! // Defines The META TAG Page Type
! $xsiteobject = pslgetText("Administration");
! if (!is_object($sess)) {
! page_open($_PSL['page_features']);
}
! $log = pslNew("Infolog");
!
! /*****************************
! START OF PAGE
! *****************************/
! $auth->login_if(!$perm->have_perm('infologList'));
!
! /* START DEBUG */
!
! // debug( "HTTP_POST_VARS" , $HTTP_POST_VARS);
! // debug( "HTTP_GET_VARS" , $HTTP_GET_VARS);
! /* END DEBUG */
! $content = '';
! if ($perm->have_perm("infologList")) {
! switch ($HTTP_POST_VARS['submit']) {
! case "IdDelete":
! // debug("loginfoadmin::infolog_ary", $infolog_ary);
! if($log->deleteLogByID(clean($HTTP_POST_VARS["infolog_ary"]))) {
! $content .= getMessage($log->getMessage());
! }
! $content .= $log->pageOut();
! break;
! case "keyDelete":
! if($log->deleteLogByKeyword(clean($HTTP_POST_VARS["infolog_delete_key"]))) {
! $content .= getMessage($log->getMessage());
! }
! $content .= $log->pageOut();
! break;
! case "allDelete":
! if($log->deleteAllLogs()) {
! $content .= getMessage($log->getMessage());
! }
! $content .= $log->pageOut();
! break;
! default:
! $content .= $log->pageOut();
! }
! } else {
! $content = getTitlebar("100%","Error! Invalid Privileges");
! $content .= "Sorry. You do not have the necessary privilege to view this page.";
! }
// setup the block module
$_PSL['module']['module.current'] = $_PSL['module']['Block'];
! include($_PSL['moduledir'] ."/". $_PSL['module']['module.current'] ."/index.php");
$block = pslNew("Block_i");
- $ary['section'] = "Admin";
-
- // $breadcrumb = breadcrumb($ary);
-
- $_PSL['metatags']['object'] = $xsiteobject;
-
- slashhead($pagetitle,$_PSL['metatags']);
-
- $leftblocks = $block->getBlocks($ary, "left");
- $centerblocks = $block->getBlocks($ary, "center");
- $rightblocks = $block->getBlocks($ary, "right");
-
- if (empty($leftblocks)) {
- if (empty($rightblocks)) {
- // $centerblocks = $block->getBlocks($ary);
- $tplfile = "index1col.tpl";
- } else {
- $tplfile = 'index2colright.tpl';
- }
- } elseif (empty($rightblocks)) {
- $tplfile = 'index2colleft.tpl';
- } else {
- $tplfile = 'index3col.tpl';
- }
-
- $template = pslNew("slashTemplate",$_PSL['templatedir']);
- $template->debug = 0;
- $template->set_file(array(
- 'index' => $tplfile //"index3col.tpl"
- ));
! if( !empty($GLOBALS['QUERY_STRING'])) {
! $QUERY_STRING = '?'.$GLOBALS['QUERY_STRING'];
! } else {
! $QUERY_STRING = '';
! }
!
! $template->set_var(array(
! 'QUERYSTRING' => $QUERY_STRING,
! 'ROOTDIR' => $_PSL['rooturl'],
! 'IMAGEDIR' => $_PSL['imageurl'],
! 'BREADCRUMB' => $breadcrumb,
! 'STORY_COLUMN' => $content,
! 'LEFT_BLOCK_COLUMN' => $leftblocks,
! 'CENTER_BLOCK_COLUMN' => $centerblocks,
! 'RIGHT_BLOCK_COLUMN' => $rightblocks
! ));
!
! $template->parse('OUT','index');
! $template->p('OUT');
- slashfoot();
page_close();
-
-
?>
--- 1,31 ----
<?php
! // $Id$
! require('config.php');
! $pagetitle = pslgetText('Infolog') .' '. pslgetText('Administration'); // The name to be displayed in the header
! $xsiteobject = pslgetText('Infolog') .' '. pslgetText('Administration Page'); // This Defines The META Tag Object Type
! if(!empty($HTTP_GET_VARS['login'])) {
! $auth->login_if($HTTP_GET_VARS['login']);
}
! $_PSL['metatags']['object'] = $xsiteobject;
! // Objects
! $ary['module'] = 'Infolog';
! $ary['section'] = 'Admin';
! $ary['page'] = 'admin';
// setup the block module
$_PSL['module']['module.current'] = $_PSL['module']['Block'];
! $content = include($_PSL['moduledir'] ."/". $_PSL['module']['module.current'] ."/index.php");
$block = pslNew("Block_i");
! //show Page
! echo $content;
page_close();
?>
|