aboutsummaryrefslogtreecommitdiff
path: root/modules/admin
diff options
context:
space:
mode:
Diffstat (limited to 'modules/admin')
-rw-r--r--modules/admin/admin_functions.php17
-rw-r--r--modules/admin/index.php8
-rw-r--r--modules/admin/operation.php4
3 files changed, 15 insertions, 14 deletions
diff --git a/modules/admin/admin_functions.php b/modules/admin/admin_functions.php
index 30a40d0..6c2b394 100644
--- a/modules/admin/admin_functions.php
+++ b/modules/admin/admin_functions.php
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-
+ /*
if(!defined("ADMIN_FILE"))
{
die("Access denied.");
@@ -86,7 +86,7 @@ function logout()
session_unset();
session_destroy();
}
-
+*/
/**
* CompileAdmin()
*
@@ -99,9 +99,10 @@ function logout()
* @param mixed $body
* @return
*/
+ /*
function CompileAdmin($head,$body)
{
- /*if we were not passed arrays, then say goodbye*/
+ /*if we were not passed arrays, then say goodbye
if(!is_array($head) || !is_array($body))
{
echo "must be array\n";
@@ -123,7 +124,7 @@ function CompileAdmin($head,$body)
echo "</tr></table>\n";
}
-/**
+
* OpenTable()
*
* The administration OpenTable() function requires an argument to define
@@ -132,20 +133,20 @@ function CompileAdmin($head,$body)
*
* @param mixed $title
* @return
- */
+
function OpenTable_Ex($title)
{
echo "<table align=\"center\"><tr><th>{$title}</th></tr><tr><td>";
}
-/**
+
* CloseTable()
*
* @return
- */
+
function CloseTable_Ex()
{
echo "</td></tr></table>";
}
-
+ */
?> \ No newline at end of file
diff --git a/modules/admin/index.php b/modules/admin/index.php
index 4dd4539..fc379ea 100644
--- a/modules/admin/index.php
+++ b/modules/admin/index.php
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-
+ /*
if(!defined("MODULE_FILE"))
{
die("Access denied.");
@@ -30,12 +30,12 @@
logout();
}
-/* if(login())
+ if(login())
{
//this is so dirty... sigh.
if(is_loggedin())
{
- */ ?>
+ ?>
<!-- Add id="wrapper" for full height -->
<table align="center" width="90%" >
<tr><td><div style="text-align:right"><a href="?load=admin&op=logout">Logout, <?php echo $_SESSION['username']?></a></div></td></tr>
@@ -66,7 +66,7 @@
</table>
</div>
- <?php /*)
+ <?php )
}
} */
diff --git a/modules/admin/operation.php b/modules/admin/operation.php
index 0ac2a9b..2c66ff4 100644
--- a/modules/admin/operation.php
+++ b/modules/admin/operation.php
@@ -16,7 +16,7 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-
+ /*
if(!defined("ADMIN_FILE"))
{
die("Access denied.");
@@ -49,5 +49,5 @@ else
}
-
+*/
?> \ No newline at end of file