[geeklog-cvs] geeklog-1.3/public_html/admin/plugins/spamx index.php,1.1,1.2 install.php,1.4,1.5
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Thu Sep 16 13:22:18 EDT 2004
- Previous message (by thread): [geeklog-cvs] geeklog-1.3/plugins/spamx/templates admin.thtml,1.2,1.3 install.thtml,1.1,1.2 blank.thtml,1.2,NONE index.thtml,1.2,NONE
- Next message (by thread): [geeklog-cvs] geeklog-1.3/system lib-plugins.php,1.36,1.37
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /var/cvs/geeklog-1.3/public_html/admin/plugins/spamx
In directory www:/tmp/cvs-serv32283/public_html/admin/plugins/spamx
Modified Files:
index.php install.php
Log Message:
Added a link to the plugin's documentation and some other minor changes.
Index: install.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/admin/plugins/spamx/install.php,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** install.php 14 Sep 2004 18:45:10 -0000 1.4
--- install.php 16 Sep 2004 17:22:16 -0000 1.5
***************
*** 243,246 ****
--- 243,247 ----
$T->set_var('cgiurl', $_CONF['site_admin_url'] . '/plugins/spamx/install.php');
$T->set_var('admin_url', $_CONF['site_admin_url'] . '/plugins/spamx/index.php');
+ $T->set_var('plugin_name', $LANG_SX00['plugin_name']);
if ($HTTP_POST_VARS['action'] == 'install') {
Index: index.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/admin/plugins/spamx/index.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** index.php 3 Sep 2004 19:59:56 -0000 1.1
--- index.php 16 Sep 2004 17:22:16 -0000 1.2
***************
*** 2,12 ****
// +---------------------------------------------------------------------------+
! // | Universal Geeklog Plugin 1.0 |
// +---------------------------------------------------------------------------+
// | admin/index.php |
- // | Administration page. |
// | |
// +---------------------------------------------------------------------------+
! // | Copyright (C) 2002 by the following authors: |
// | |
// | Author: |
--- 2,12 ----
// +---------------------------------------------------------------------------+
! // | SpamX plugin 1.0.1 |
// +---------------------------------------------------------------------------+
// | admin/index.php |
// | |
+ // | Administration page. |
// +---------------------------------------------------------------------------+
! // | Copyright (C) 2002-2004 by the following authors: |
// | |
// | Author: |
***************
*** 40,54 ****
// Only let admin users access this page
! if (!SEC_hasRights('spamx.admin')) {
// Someone is trying to illegally access this page
! COM_errorLog("Someone has tried to illegally access the spamx Admin page. User id: {$_USER['uid']}, Username: {$_USER['username']}, IP: $REMOTE_ADDR",1);
! $display = COM_siteHeader();
! $display .= COM_startBlock($LANG_SX00['access_denied']);
$display .= $LANG_SX00['access_denied_msg'];
! $display .= COM_endBlock();
! $display .= COM_siteFooter(true);
echo $display;
exit;
}
/**
--- 40,55 ----
// Only let admin users access this page
! if (!SEC_hasRights ('spamx.admin')) {
// Someone is trying to illegally access this page
! COM_errorLog ("Someone has tried to illegally access the spamx Admin page. User id: {$_USER['uid']}, Username: {$_USER['username']}, IP: {$HTTP_SERVER_VARS['REMOTE_ADDR']}", 1);
! $display = COM_siteHeader ();
! $display .= COM_startBlock ($LANG_SX00['access_denied']);
$display .= $LANG_SX00['access_denied_msg'];
! $display .= COM_endBlock ();
! $display .= COM_siteFooter (true);
echo $display;
exit;
}
+
/**
***************
*** 56,96 ****
*/
!
! $display = COM_siteHeader();
! $T = new Template($_CONF['path'] . 'plugins/spamx/templates');
! $T->set_file('admin', 'admin.thtml');
! $T->set_var('site_url',$_CONF['site_url']);
! $T->set_var('site_admin_url', $_CONF['site_admin_url']);
! $T->set_var('header', $LANG_SX00['admin']);
! $T->set_var('plugin','spamx');
! $T->parse('output','admin');
! $display .= $T->finish($T->get_var('output'));
$display .= '<p>';
! $files = array();
! if ($dir = @opendir($_CONF['path'] . 'plugins/spamx/')) {
! while(($file = readdir($dir)) !== false) {
! if (is_file($_CONF['path'] . 'plugins/spamx/' . $file))
{
! if (substr($file,-16) == '.Admin.class.php') {
! $tmp = str_replace(".Admin.class.php","",$file);
! array_push($files,$tmp);
! }
}
}
! closedir($dir);
}
$display .= '<p><b>' . $LANG_SX00['adminc'] . '</b></p><ul>';
! foreach($files as $file){
! require_once($_CONF['path'] . 'plugins/spamx/' . $file . '.Admin.class.php');
! $CM = new $file;
! $display .= '<li><a href="' . $_CONF['site_admin_url'] . '/plugins/spamx/index.php?command=' . $file . '">' . $CM->link() . '</a></li>';
}
$display .= '</ul>';
! if (isset($_REQUEST['command'])) {
! $CM = new $_REQUEST['command'];
! $display.=$CM->display();
}
! $display .= COM_siteFooter(true);
echo $display;
! ?>
\ No newline at end of file
--- 57,105 ----
*/
! $display = COM_siteHeader ('menu', $LANG_SX00['plugin_name']);
! $T = new Template ($_CONF['path'] . 'plugins/spamx/templates');
! $T->set_file ('admin', 'admin.thtml');
! $T->set_var ('site_url', $_CONF['site_url']);
! $T->set_var ('site_admin_url', $_CONF['site_admin_url']);
! $T->set_var ('header', $LANG_SX00['admin']);
! $T->set_var ('plugin_name', $LANG_SX00['plugin_name']);
! $T->set_var ('plugin', 'spamx');
! $T->parse ('output', 'admin');
! $display .= $T->finish ($T->get_var ('output'));
$display .= '<p>';
!
! $files = array ();
! if ($dir = @opendir ($_CONF['path'] . 'plugins/spamx/')) {
! while (($file = readdir ($dir)) !== false) {
! if (is_file ($_CONF['path'] . 'plugins/spamx/' . $file))
{
! if (substr ($file, -16) == '.Admin.class.php') {
! $tmp = str_replace ('.Admin.class.php', '', $file);
! array_push ($files, $tmp);
! }
}
}
! closedir ($dir);
}
$display .= '<p><b>' . $LANG_SX00['adminc'] . '</b></p><ul>';
!
! foreach ($files as $file) {
! require_once ($_CONF['path'] . 'plugins/spamx/' . $file . '.Admin.class.php');
! $CM = new $file;
! $display .= '<li><a href="' . $_CONF['site_admin_url']
! . '/plugins/spamx/index.php?command=' . $file . '">' . $CM->link ()
! . '</a></li>';
}
+ $display .= '<li><a href="' . $_CONF['site_url'] . '/docs/spamx.html">'
+ . $LANG_SX00['documentation'] . '</a></li>';
$display .= '</ul>';
!
! if (isset ($_REQUEST['command'])) {
! $CM = new $_REQUEST['command'];
! $display .= $CM->display ();
}
! $display .= COM_siteFooter (true);
echo $display;
!
! ?>
- Previous message (by thread): [geeklog-cvs] geeklog-1.3/plugins/spamx/templates admin.thtml,1.2,1.3 install.thtml,1.1,1.2 blank.thtml,1.2,NONE index.thtml,1.2,NONE
- Next message (by thread): [geeklog-cvs] geeklog-1.3/system lib-plugins.php,1.36,1.37
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the geeklog-cvs
mailing list