[schoorbs commit] r715 - trunk

0 views
Skip to first unread message

codesite...@google.com

unread,
Nov 4, 2008, 10:10:15 AM11/4/08
to schoor...@googlegroups.com
Author: xhochy
Date: Tue Nov 4 07:08:01 2008
New Revision: 715

Modified:
trunk/edit-entry.php

Log:
Added some comments to edit-entry

Modified: trunk/edit-entry.php
==============================================================================
--- trunk/edit-entry.php (original)
+++ trunk/edit-entry.php Tue Nov 4 07:08:01 2008
@@ -15,16 +15,6 @@
require_once 'schoorbs-includes/global.web.php';
/** The general functions */
require_once 'schoorbs-includes/global.functions.php';
-/** The modern ORM databse layer */
-require_once 'schoorbs-includes/database/schoorbsdb.class.php';
-/** The template system */
-require_once 'schoorbs-includes/schoorbstpl.class.php';
-
-/** The database wrapper */
-require_once "schoorbs-includes/database/$dbsys.php";
-/** Database helper functions */
-require_once 'schoorbs-includes/database/schoorbs_sql.php';
-

/// Var Init ///

@@ -38,7 +28,10 @@

/// Main ///

-if (!getAuthorised(1)) showAccessDenied();
+// Only allow loged-in users to create a new entry.
+if (!getAuthorised(1)) {
+ showAccessDenied();
+}

if (isset($nId)) {
$oEntry = Entry::getById($nId);

Reply all
Reply to author
Forward
0 new messages