aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2009-12-20 18:29:11 -0500
committerjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2009-12-20 18:29:11 -0500
commitbe071aeb7565e46c670a6d9486a1f1b8a06971ab (patch)
tree67a80c2fbea8c20c9ea74c5276378ca50a94e4f5
parent3af9846d4ecc1e0274833740fd21012afe9ef51f (diff)
downloadbayonetcms-be071aeb7565e46c670a6d9486a1f1b8a06971ab.tar.gz
Bug fix to modules.php.
git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@381 c5b2fb0a-d05d-0410-98c8-828840a80ff6
-rw-r--r--admin/admins/functions.php30
-rw-r--r--admin/index.php2
-rw-r--r--blocks/rss_agw/index.php14
-rw-r--r--modules.php2
4 files changed, 43 insertions, 5 deletions
diff --git a/admin/admins/functions.php b/admin/admins/functions.php
index 031bd05..495dfdd 100644
--- a/admin/admins/functions.php
+++ b/admin/admins/functions.php
@@ -40,6 +40,36 @@
function NewAdmin()
{
$maxLevel = $_SESSION['level'];
+?>
+<div style="text-align:right"><img src="images/cancel.png" />Cancel</div>
+<center>
+ <form method="POST" action="<?php $_SERVER['PHP_SELF']?>">
+ <table>
+ <tr><th>Username:</th><td><input type="text" value="" name="username" /></td></tr>
+ <tr><th>First Name:</th><td><input type="text" value="" name="first" /></td></tr>
+ <tr><th>Last Name:</th><td><input type="text" value="" name="last" /></td></tr>
+ <tr><th>Email Address:</th><td><input type="text" value="" name="email" /></td></tr>
+ <tr>
+ <th>Level:</th>
+ <td>
+ <select name="level">
+ <?php
+ for($x=$maxLevel; $x>0;$x--){
+ echo "<option value=\"{$x}\">{$x}</option>";
+ }
+ ?>
+ </select>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" style="text-align:center;">
+ <input type="submit" name="processed" value="Submit" />
+ </td>
+ </tr>
+ </table>
+ </form>
+</center>
+<?php
}
function EditAdmin($user_id)
diff --git a/admin/index.php b/admin/index.php
index 665f125..06f68d9 100644
--- a/admin/index.php
+++ b/admin/index.php
@@ -17,7 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
- session_start();
+session_start();
include '../includes/debug.php';
include '../includes/config.php';
diff --git a/blocks/rss_agw/index.php b/blocks/rss_agw/index.php
index 83c3ff1..c811ecc 100644
--- a/blocks/rss_agw/index.php
+++ b/blocks/rss_agw/index.php
@@ -1,11 +1,17 @@
<link rel="stylesheet" type="text/css" href="blocks/rss_agw/style.css" media="screen"/>
<?php
+function stripBBCode($text_to_search) {
+ $pattern = '|[[\/\!]*?[^\[\]]*?]|si';
+ $replace = '';
+ return preg_replace($pattern, $replace, $text_to_search);
+}
+
include 'rssreader.php';
$rss = new rss_php;
- $rss->load('http://www.armedglobalwarfare.com/index.php?type=rss;action=.xml;limit=30');
+ $rss->load('http://www.armedglobalwarfare.com/index.php?type=rss;action=.xml;limit=150');
$items = $rss->getItems(); #returns all rss items
@@ -14,9 +20,11 @@
foreach($items as $story){
if($story['category']=="Tournament Announcements"){
$numFeeds++;
+ // $text = $story['description'];
+ // $text = preg_replace("(\[font(.+?)...)","",$text);
echo "<a href=\"{$story['link']}\" target=\"_blank\"><span class=\"title\">{$story['title']}</span></a><br />
- <span class=\"date\">{$story['pubDate']}</span><br />
- {$story['description']}<br /><br />";
+ <span class=\"date\">{$story['pubDate']}</span><br />";
+ echo "{$text}<br /><br />";
}
}
if(!$numFeeds){
diff --git a/modules.php b/modules.php
index 5eaf705..9cd6350 100644
--- a/modules.php
+++ b/modules.php
@@ -59,7 +59,7 @@ if(!empty($error_stack_messages))
$messageBuffer = NULL;
foreach($error_stack_messages as $order => $error)
{
- $messageBuffer .= "<p><b>Stack Order:</b>$order<br/>$error</p>";
+ $messageBuffer .= "<p><b>Stack Order:</b> $order<br/>$error</p>";
}
ReportError($messageBuffer);
//exit(1);