aboutsummaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
authorjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2011-04-17 12:49:09 -0400
committerjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2011-04-17 12:49:09 -0400
commitfa8180ea3a41584943dd7464eb8c3cad769d8211 (patch)
tree9d52ffcd157d29f322226b467d7fe70eaa502388 /include/functions.php
parentb3261cbea8c20989d2976a4816021438a668397d (diff)
downloadbayonetcms-fa8180ea3a41584943dd7464eb8c3cad769d8211.tar.gz
Jessus christ
git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2.1@491 c5b2fb0a-d05d-0410-98c8-828840a80ff6
Diffstat (limited to 'include/functions.php')
-rw-r--r--include/functions.php54
1 files changed, 11 insertions, 43 deletions
diff --git a/include/functions.php b/include/functions.php
index 3f1c3d2..109f11c 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -330,26 +330,27 @@ if(!defined("CALLED_FROM_ADMIN"))
/**
* OpenContent()
* Begins a Bayonet site table.
+ * MOVE FOR CUSTOMIZED USE FOR THEMES
* @return
*/
- function OpenContent()
+/* function OpenContent()
{
echo "<div class=\"contentBorder1\">";
echo "<div class=\"contentBorder2\">";
- }
+ } */
/**
* CloseContent()
* Closes a Bayonet site table.
* @return
*/
- function CloseContent()
+ /* function CloseContent()
{
echo "</div>";
echo "</div>";
- }
+ } */
}
-
+/* MOVED TO THEMES
function OpenBlock($title = 'New Block')
{
OpenContent();
@@ -361,7 +362,7 @@ function CloseBlock()
{
echo "</div>";
CloseContent();
-}
+} */
static $error_stack_messages = array(); //global stack of errors accumulated throughout execution
function push_error_stack($message)
@@ -404,9 +405,9 @@ function handle_error ($errno, $errstr, $errfile, $errline)
function ReportError($message)
{
//WriteLog($message,BAYONET_LOG_ERROR);
- OpenContent();
+ //OpenContent();
echo "<div class=\"contentHeading\">Error Message</div><div class=\"content\">{$message}</div>";
- CloseContent();
+ //CloseContent();
}
/**
@@ -421,9 +422,9 @@ function ReportError($message)
function ReportHack($message)
{
//WriteLog($message,BAYONET_LOG_HACK);
- OpenContent();
+ //OpenContent();
echo "<div class=\"contentHeading\">Hacking Attempt</div><div class=\"content\">{$message}</div>";
- CloseContent();
+ //CloseContent();
}
/**
@@ -553,39 +554,6 @@ function WriteLogBayonet($message,$flag)
}
/**
- * UnderConstruction()
- *
- * Displays a site-wide message across the page header.
- *
- * @param mixed $message
- * @param mixed $flag Acceptable flags are BAYONET_SITE, and BAYONET_SECTION
- * @return
- */
-define('BAYONET_SITE','bayonet_site');
-define('BAYONET_SECTION','bayonet_section');
-function UnderConstruction($message = NULL, $flag = BAYONET_SITE)
-{
- $timestamp = date("Y-M-d h:m:s");
- OpenTable();
- switch($flag)
- {
- case BAYONET_SITE:
- echo "<tr><th>Site is currently under construction : $timestamp</th></tr>";
- break;
- case BAYONET_SECTION:
- echo "<tr><th>Section currently under construction : $timestamp</th></tr>";
- }
-
- if(!is_null($message))
- {
- echo "<tr><td><i>$message</i></td></tr>";
- }
-
- CloseTable();
- echo "<br>";
-}
-
-/**
* valid_result()
*
* Determine if a mysqli result is valid.