You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(183) |
Dec
(82) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(16) |
Feb
(3) |
Mar
|
Apr
(8) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Matt M. <pro...@us...> - 2004-12-09 01:45:38
|
Update of /cvsroot/webschool/webschool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17514 Modified Files: admin.php Log Message: Index: admin.php =================================================================== RCS file: /cvsroot/webschool/webschool/admin.php,v retrieving revision 1.33 retrieving revision 1.34 diff -C2 -d -r1.33 -r1.34 *** admin.php 8 Dec 2004 01:04:50 -0000 1.33 --- admin.php 9 Dec 2004 01:45:26 -0000 1.34 *************** *** 29,33 **** //though they are guests. //allowed actions while not logged in: login, lostpass, resetpass ! if( GetUser() == 1 && ( $_GET['action'] != "login" && $_GET['action'] != "lostpass" && $_GET['action'] != "resetpass") ) { $smarty->display("adminlogin.tpl"); --- 29,33 ---- //though they are guests. //allowed actions while not logged in: login, lostpass, resetpass ! if( GetUser() == 1 && ( $_GET['action'] != "login" && $_GET['action'] != "lostpass" && $_GET['action'] != "resetpass" && $_GET['action'] != "viewprofile" ) ) { $smarty->display("adminlogin.tpl"); *************** *** 42,45 **** --- 42,59 ---- } + if( $_GET['action'] == "viewprofile" ) { + if( isset($_GET['id']) ){ + db(__FILE__,__LINE__,"SELECT * FROM "._USERS_." WHERE id='".$_GET['id']."' LIMIT 1"); + } elseif ( isset( $_GET['uname'] ) ) { + db(__FILE__,__LINE__,"SELECT * FROM "._USERS_." WHERE username='".$_GET['uname']."' LIMIT 1"); + } else { + systemmessage("No user specified"); + } + $smarty->assign("userprofile", dbr()); + $smarty->display("admin.profile.tpl"); + include("lib/footer.php"); + die(); + } + //this section will eventually facilitate username searching, though not yet. if($_GET['action'] == "finduser") { *************** *** 54,57 **** --- 68,72 ---- $smarty->display("admin.finduser2.tpl"); } + include("lib/footer.php"); die(); } |
From: Matt M. <pro...@us...> - 2004-12-09 01:45:38
|
Update of /cvsroot/webschool/webschool/theme/templates/mods In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17514/theme/templates/mods Modified Files: news.view.tpl Log Message: Index: news.view.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/mods/news.view.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** news.view.tpl 20 Nov 2004 01:27:37 -0000 1.1 --- news.view.tpl 9 Dec 2004 01:45:28 -0000 1.2 *************** *** 9,17 **** <!-- Begin Main Section --> ! <td> {include file="tablehead.tpl" title="$tbheader"} <font size=+3>{$prettytitle}</font><br> ! By: {ResolveUserID ID=$author} <br> Published: {$published|date_format:"%A, %B %d, %Y"} <hr> --- 9,17 ---- <!-- Begin Main Section --> ! <td valign="top"> {include file="tablehead.tpl" title="$tbheader"} <font size=+3>{$prettytitle}</font><br> ! By: <a href="admin.php?action=viewprofile&id={$author}">{ResolveUserID ID=$author}</a> <br> Published: {$published|date_format:"%A, %B %d, %Y"} <hr> *************** *** 20,23 **** --- 20,25 ---- {$content} <br> + <center><hr width="40%" size="1"></center> + <br> <center><font size=-1>Last Update: {$updated|date_format:"%A, %B %d, %Y"}</font></center> {include file="tablefoot.tpl"} |
From: Matt M. <pro...@us...> - 2004-12-08 03:08:15
|
Update of /cvsroot/webschool/webschool/theme/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25044/theme/templates Added Files: admin.finduser2.tpl Log Message: --- NEW FILE: admin.finduser2.tpl --- <table> <tr> <td>Username</td> <td>Realname</td> </tr> {foreach from=$foundusers key=k item=v} <tr> <td>{$v.username}</td> <td>{$v.fname} {$v.lname}</td> </tr> {/foreach} </table |
From: Matt M. <pro...@us...> - 2004-12-08 03:08:13
|
Update of /cvsroot/webschool/webschool/mods/SOTM In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25044/mods/SOTM Modified Files: index.php Log Message: Index: index.php =================================================================== RCS file: /cvsroot/webschool/webschool/mods/SOTM/index.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** index.php 24 Nov 2004 02:54:14 -0000 1.7 --- index.php 8 Dec 2004 03:08:01 -0000 1.8 *************** *** 23,29 **** } ! if( isset($_GET['getpic']) ) { ! db(__FILE__,__LINE__,"Select ".$_GET['grade']."pic, ".$_GET['grade']."type From "._SOTM_." Where date='".$_GET['date']."'"); $res = dbr(); header("Content-Type: " . $res[''.$_GET['grade'].'type']); --- 23,29 ---- } ! if( $_GET['op'] == "getpic" ) { ! db(__FILE__,__LINE__,"Select * From "._SOTM_." Where date='".$_GET['date']."'"); $res = dbr(); header("Content-Type: " . $res[''.$_GET['grade'].'type']); |
From: Matt M. <pro...@us...> - 2004-12-08 03:08:13
|
Update of /cvsroot/webschool/webschool/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25044/admin Modified Files: files.php sotm.php Log Message: Index: sotm.php =================================================================== RCS file: /cvsroot/webschool/webschool/admin/sotm.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** sotm.php 6 Nov 2004 02:41:39 -0000 1.3 --- sotm.php 8 Dec 2004 03:08:00 -0000 1.4 *************** *** 30,34 **** //Only our frined the a3 can do stuff with the SOTM! if ($perm['sotm'] >= 3) { ! if( !isset($_REQUEST['year']) || !isset($_REQUEST['month']) ) { db(__FILE__,__LINE__, "SELECT date FROM "._SOTM_); --- 30,34 ---- //Only our frined the a3 can do stuff with the SOTM! if ($perm['sotm'] >= 3) { ! if( !isset($_GET['op']) ) { db(__FILE__,__LINE__, "SELECT date FROM "._SOTM_); *************** *** 44,48 **** $smarty->display("admin/sotm.tpl"); ! } else{ if( !isset( $_POST['add'] )){ $smarty->display("admin/sotm.add.tpl"); --- 44,48 ---- $smarty->display("admin/sotm.tpl"); ! } elseif ( $_GET['op'] == "add" ){ if( !isset( $_POST['add'] )){ $smarty->display("admin/sotm.add.tpl"); *************** *** 80,83 **** --- 80,122 ---- } } + } elseif ( $_GET['op'] == "edit" ){ + if( !isset( $_POST['edit'] )){ + db(__FILE__,__LINE__,"SELECT * FROM "._SOTM_." WHERE date='".mktime(0,0,0,$_GET['month'],1,$_GET['year'])."'"); + $smarty->assign("sotm_edit_date", mktime(0,0,0,$_GET['month'],1,$_GET['year'])); + $smarty->assign("sotm_edit", dbr() ); + $smarty->display("admin/sotm.edit.tpl"); + }else{ + //doesn't work???? + echo $_FILES['sepic']['size']."---".$config['sotm_pic_maxsize']; + if ( $_FILES['sepic']['size'] <= $config['sotm_pic_maxsize'] && $_FILES['sepic']['size'] > 0 && $_FILES['jpic']['size'] <= $config['sotm_pic_maxsize'] && $_FILES['jpic']['size'] > 0 && $_FILES['soppic']['size'] <= $config['sotm_pic_maxsize'] && $_FILES['soppic']['size'] > 0 && $_FILES['fpic']['size'] <= $config['sotm_pic_maxsize'] && $_FILES['fpic']['size'] > 0) { + + $thedate = mktime(0,0,0,$_REQUEST['month'],1,$_REQUEST['year']); + //get rid of any dates that match what we are putting in + //overwrite oldrecord. + dbn(__FILE__,__LINE__, "DELETE FROM "._SOTM_." WHERE date=".$thedate); + + //do freshmen + $ffilename = "SOTM-F-".$thedate; + copy($_FILES['fpic']['tmp_name'], _fileroot_."images/sotm/$ffilename"); + //do sophmores + $sopfilename = "SOTM-SOP-".$thedate; + copy($_FILES['soppic']['tmp_name'], _fileroot_."images/sotm/$sopfilename"); + //do juniors + $jfilename = "SOTM-J-".$thedate; + copy($_FILES['jpic']['tmp_name'], _fileroot_."images/sotm/$jfilename"); + //do seniors + $sefilename = "SOTM-SE-".$thedate; + copy($_FILES['sepic']['tmp_name'], _fileroot_."images/sotm/$sefilename"); + + dbn(__FILE__,__LINE__,"INSERT INTO "._SOTM_." SET date='".$thedate."', ". + "ftype='".$_FILES['fpic']['type']."', fpic='".$ffilename."', fname='".$_POST['fname']."', ". + "soptype='".$_FILES['soppic']['type']."', soppic='".$sopfilename."', sopname='".$_POST['sopname']."', ". // soname='".$_POST['soname']."', + "jtype='".$_FILES['jpic']['type']."', jpic='".$jfilename."', jname='".$_POST['jname']."', ". + "setype='".$_FILES['sepic']['type']."', sepic='".$sefilename."', sename='".$_POST['sename']."' "); + + //redirect + Header("Location: "._AMOD_); + } + } } } else { Index: files.php =================================================================== RCS file: /cvsroot/webschool/webschool/admin/files.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** files.php 8 Dec 2004 01:04:51 -0000 1.4 --- files.php 8 Dec 2004 03:08:00 -0000 1.5 *************** *** 98,102 **** db(__FILE__,__LINE__,"SELECT filename FROM "._FILES_." WHERE id='{$_GET['id']}'"); $res = dbr(); ! unlink(_fileroot_."images/".$res['filename']); dbn(__FILE__,__LINE__,"DELETE FROM "._FILES_." WHERE id='{$_GET['id']}'"); --- 98,102 ---- db(__FILE__,__LINE__,"SELECT filename FROM "._FILES_." WHERE id='{$_GET['id']}'"); $res = dbr(); ! unlink(_fileroot_."files/".$res['filename']); dbn(__FILE__,__LINE__,"DELETE FROM "._FILES_." WHERE id='{$_GET['id']}'"); |
From: Matt M. <pro...@us...> - 2004-12-08 03:08:13
|
Update of /cvsroot/webschool/webschool/theme/templates/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25044/theme/templates/admin Modified Files: sotm.tpl Added Files: sotm.edit.tpl Log Message: Index: sotm.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/sotm.tpl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** sotm.tpl 24 Nov 2004 02:54:15 -0000 1.4 --- sotm.tpl 8 Dec 2004 03:08:01 -0000 1.5 *************** *** 2,6 **** <center> ! <form action="{$AMOD}" method="post" > <select id="month" name="month"> <option value="1">{$lang.months.january}</option> --- 2,6 ---- <center> ! <form action="{$AMOD}&op=add" method="post" > <select id="month" name="month"> <option value="1">{$lang.months.january}</option> --- NEW FILE: sotm.edit.tpl --- {include file="tablehead.tpl" tbtitle="Editing SOTM"} Edit Students Of the Months<br><hr> <form action="{$AMOD}&op=edit" method="post" enctype="multipart/form-data"> <input type="hidden" name="edit" value="1"> Month: {$smarty.request.month} <INPUT type="hidden" name="month" value="{$smarty.request.month}"> Year: {$smarty.request.year}<INPUT type="hidden" name="year" value="{$smarty.request.year}"> <br><br> <b>{$lang.sotm.freshman} {$lang.sotm.sotm}:</b> <br> <img src="mod.php?mod=SOTM&op=getpic&grade=f&date={$sotm_edit_date}"> <table><tr><td>{$lang.sotm.name}: </td><td><input type="text" name="fname"></td></tr> <br> <tr><td>{$lang.sotm.picture}: </td><td><input type="file" name="fpic"></td></tr></table><br> <b>{$lang.sotm.sophmore} {$lang.sotm.sotm}:</b> <br> <table><tr><td>{$lang.sotm.name}: </td><td><input type="text" name="sopname"></td></tr> <br> <tr><td>{$lang.sotm.picture}: </td><td><input type="file" name="soppic"></td></tr></table><br> <b>{$lang.sotm.junior} {$lang.sotm.sotm}:</b> <br> <table><tr><td>{$lang.sotm.name}: </td><td><input type="text" name="jname"></td></tr> <br> <tr><td>{$lang.sotm.picture}: </td><td><input type="file" name="jpic"></td></tr></table><br> <b>{$lang.sotm.senior} {$lang.sotm.sotm}:</b> <br> <table><tr><td>{$lang.sotm.name}: </td><td><input type="text" name="sename"></td></tr> <br> <tr><td>{$lang.sotm.picture}: </td><td><input type="file" name="sepic"></td></tr></table><br> <button type="submit">{$lang.sotm.add}</button> {include file="tablefoot.tpl"} |
From: Matt M. <pro...@us...> - 2004-12-08 01:05:17
|
Update of /cvsroot/webschool/webschool/theme/templates/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30801/theme/templates/admin Modified Files: config.tpl files.add.tpl Log Message: Index: config.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/config.tpl,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** config.tpl 26 Nov 2004 01:02:35 -0000 1.6 --- config.tpl 8 Dec 2004 01:04:52 -0000 1.7 *************** *** 20,24 **** ! <form action="{$AMOD}" method="POST"> <table> --- 20,24 ---- ! <form action="{$AMOD}&op=dbconfig" method="POST"> <table> *************** *** 27,35 **** <tr><td class="field-title">{$v.name}</td><td> {if $v.type == "int"} ! <input type="text" maxlength="10" value="{$v.value}"> {elseif $v.type == "bool"} ! <select><option>True</option><option>False</option> </select> {elseif $v.type == "str"} ! <input type="text" value="{$v.value}"> {elseif $v.type == "lang"} <select name="{$v.name}" id="{$v.name}"> --- 27,35 ---- <tr><td class="field-title">{$v.name}</td><td> {if $v.type == "int"} ! <input type="text" maxlength="10" name="{$v.name}" id="{$v.name}" value="{$v.value}"> {elseif $v.type == "bool"} ! <select name="{$v.name}" id="{$v.name}"><option {if $v.value == "true"} selected="selected" {/if} value="true">True</option><option {if $v.value == "false"} selected="selected" {/if} value="false">False</option> </select> {elseif $v.type == "str"} ! <input type="text" value="{$v.value}" name="{$v.name}" id="{$v.name}"> {elseif $v.type == "lang"} <select name="{$v.name}" id="{$v.name}"> Index: files.add.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/files.add.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** files.add.tpl 26 Nov 2004 01:02:36 -0000 1.1 --- files.add.tpl 8 Dec 2004 01:04:53 -0000 1.2 *************** *** 8,14 **** <form action="{$AMOD}&op=add&upload=1" method="post" enctype="multipart/form-data"> ! <br>Picture Name:<input type='text' name="picname" id="picname"><br> ! <br>Description: <br> <textarea name="descrip" id="pic" cols="55" rows="4"> </textarea> ! <br>Picture: <input type="file" name="pic" id="pic"> <br><button type="submit">Submit</button> </form> --- 8,14 ---- <form action="{$AMOD}&op=add&upload=1" method="post" enctype="multipart/form-data"> ! <br>File Name:<input type='text' name="filename" id="picname"><br> ! <br>Description: <br> <textarea name="descrip" id="filedesc" cols="55" rows="4"> </textarea> ! <br>File: <input type="file" name="file" id="file"> <br><button type="submit">Submit</button> </form> |
From: Matt M. <pro...@us...> - 2004-12-08 01:05:07
|
Update of /cvsroot/webschool/webschool/mods/Pages In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30801/mods/Pages Modified Files: index.php Log Message: Index: index.php =================================================================== RCS file: /cvsroot/webschool/webschool/mods/Pages/index.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** index.php 31 Oct 2004 04:21:47 -0000 1.2 --- index.php 8 Dec 2004 01:04:51 -0000 1.3 *************** *** 19,32 **** if( eregi("index.php", $_SERVER['PHP_SELF']) ) { ! die(); } //Only one possible opperation, view, so no nead to go through // giant control structer to figure it out (and no "op" request var!) ! db(__FILE__,__LINE__,"SELECT * FROM pages WHERE id='" . $_GET['id'] . "'"); ! $result = dbr(); ! ! $smarty->assign("page", $result); ! $smarty->display("mods/pages.tpl"); ?> \ No newline at end of file --- 19,35 ---- if( eregi("index.php", $_SERVER['PHP_SELF']) ) { ! die(); } //Only one possible opperation, view, so no nead to go through // giant control structer to figure it out (and no "op" request var!) ! if ( isset($_GET['id']) ) { ! db(__FILE__,__LINE__,"SELECT * FROM "._PAGES_." WHERE id='" . $_GET['id'] . "'"); ! $result = dbr(); + $smarty->assign("page", $result); + $smarty->display("mods/pages.tpl"); + } else { + systemmessage("Page not found."); + } ?> \ No newline at end of file |
From: Matt M. <pro...@us...> - 2004-12-08 01:05:07
|
Update of /cvsroot/webschool/webschool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30801 Modified Files: admin.php Log Message: Index: admin.php =================================================================== RCS file: /cvsroot/webschool/webschool/admin.php,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** admin.php 23 Nov 2004 01:24:01 -0000 1.32 --- admin.php 8 Dec 2004 01:04:50 -0000 1.33 *************** *** 31,36 **** if( GetUser() == 1 && ( $_GET['action'] != "login" && $_GET['action'] != "lostpass" && $_GET['action'] != "resetpass") ) { ! $smarty->display("adminlogin.tpl"); ! include("lib/footer.php"); die(); --- 31,36 ---- if( GetUser() == 1 && ( $_GET['action'] != "login" && $_GET['action'] != "lostpass" && $_GET['action'] != "resetpass") ) { ! $smarty->display("adminlogin.tpl"); ! include("lib/footer.php"); die(); *************** *** 42,49 **** } ! //this section will eventually facilitate username searching, though not yet. if($_GET['action'] == "finduser") { ! $smarty->display("admin.finduser.tpl"); ! include("lib/footer.php"); die(); } --- 42,57 ---- } ! //this section will eventually facilitate username searching, though not yet. if($_GET['action'] == "finduser") { ! if( !isset($_POST['usernamelike']) ) { ! $smarty->display("admin.finduser.tpl"); ! include("lib/footer.php"); ! } else { ! db(__FILE__,__LINE__, "SELECT * FROM "._USERS_." WHERE username LIKE '".$_POST['usernamelike']."'"); ! while( $row = dbr() ) { ! $smarty->append("foundusers", $row); ! } ! $smarty->display("admin.finduser2.tpl"); ! } die(); } *************** *** 55,72 **** if( !isset( $_POST['username'] ) ){ $smarty->display("admin.lostpass.tpl"); ! //this part adds a check code to the user table under the username. It then emails the user ! //with the email addr specified under the email field in the database with a link to reset their password } else { //generate passcode $newpasscode = rand(1, 9999999999999); $newpasscode = sha1($newpasscode); ! //put pass code in database dbn(__FILE__,__LINE__,"UPDATE "._USERS_." SET newpasscode='".$newpasscode."' WHERE username='".$_POST['username']."'"); ! //find the user's email db(__FILE__,__LINE__,"SELECT * FROM "._USERS_." WHERE username='".$_POST['username']."'"); $passto = dbr(); ! //send the email, revise this to use a webschool mail function in the future mail($passto['email'], $lang['passrecover']['emailsubject'], sprintf($lang['passrecover']['emailbody'], $passto['fname'], $passto['lname'], $_POST['username'], $newpasscode )); --- 63,80 ---- if( !isset( $_POST['username'] ) ){ $smarty->display("admin.lostpass.tpl"); ! //this part adds a check code to the user table under the username. It then emails the user ! //with the email addr specified under the email field in the database with a link to reset their password } else { //generate passcode $newpasscode = rand(1, 9999999999999); $newpasscode = sha1($newpasscode); ! //put pass code in database dbn(__FILE__,__LINE__,"UPDATE "._USERS_." SET newpasscode='".$newpasscode."' WHERE username='".$_POST['username']."'"); ! //find the user's email db(__FILE__,__LINE__,"SELECT * FROM "._USERS_." WHERE username='".$_POST['username']."'"); $passto = dbr(); ! //send the email, revise this to use a webschool mail function in the future mail($passto['email'], $lang['passrecover']['emailsubject'], sprintf($lang['passrecover']['emailbody'], $passto['fname'], $passto['lname'], $_POST['username'], $newpasscode )); *************** *** 74,78 **** $smarty->assign("recoveredusername", $_POST['username']); $smarty->display("admin.lostpass.tpl"); ! //send the admin a notification db(__FILE__,__LINE__, "SELECT email FROM "._USERS_." WHERE id=2"); --- 82,86 ---- $smarty->assign("recoveredusername", $_POST['username']); $smarty->display("admin.lostpass.tpl"); ! //send the admin a notification db(__FILE__,__LINE__, "SELECT email FROM "._USERS_." WHERE id=2"); *************** *** 102,106 **** //show form $smarty->display("admin.resetpass.tpl"); ! //if they have } else { //update their password and unset passcode --- 110,114 ---- //show form $smarty->display("admin.resetpass.tpl"); ! //if they have } else { //update their password and unset passcode *************** *** 117,121 **** if( $_GET['action'] == "login" ) { ! $return = Login($_POST['username'], $_POST['pass']); switch($return) { --- 125,129 ---- if( $_GET['action'] == "login" ) { ! $return = Login($_POST['username'], $_POST['pass']); switch($return) { |
From: Matt M. <pro...@us...> - 2004-12-08 01:05:07
|
Update of /cvsroot/webschool/webschool/theme/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30801/theme/templates Modified Files: admin.finduser.tpl systemmessage.tpl Log Message: Index: systemmessage.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/systemmessage.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** systemmessage.tpl 20 Nov 2004 01:27:39 -0000 1.1 --- systemmessage.tpl 8 Dec 2004 01:04:52 -0000 1.2 *************** *** 1,3 **** ! {include file="tablehead.tpl" tbtitle="An error has occured"} ! {$error_msg} ! {include file="tablefoot.tpl"} --- 1,4 ---- ! <center>{include file="tablehead.tpl" tbtitle="An error has occured"} ! {$error_msg} <br> ! <a href="javascript:history.back()">Go back.</a> ! {include file="tablefoot.tpl"}</center> Index: admin.finduser.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin.finduser.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** admin.finduser.tpl 19 Nov 2004 02:03:43 -0000 1.1 --- admin.finduser.tpl 8 Dec 2004 01:04:52 -0000 1.2 *************** *** 1 **** ! Not sure how to do this.. \ No newline at end of file --- 1,23 ---- ! <form action="admin.php?action=finduser" method="POST"> ! <table> ! <tr valign="middle"> ! <td> ! Username: ! </td> ! <td> ! <input type="text" name="usernamelike" id="usernamelike"><br> ! Accepts % and _ as wildcards. ! </td> ! <td> ! </td> ! </tr> ! <tr> ! <td> ! <input type="submit" value="Find"> ! </td> ! <td> ! </td> ! </tr> ! ! </table> ! </form> \ No newline at end of file |
From: Matt M. <pro...@us...> - 2004-12-08 01:05:03
|
Update of /cvsroot/webschool/webschool/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30801/admin Modified Files: config.php files.php news.php Log Message: Index: files.php =================================================================== RCS file: /cvsroot/webschool/webschool/admin/files.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** files.php 4 Dec 2004 01:47:37 -0000 1.3 --- files.php 8 Dec 2004 01:04:51 -0000 1.4 *************** *** 67,71 **** //Operation: Add Picture if( !isset($_GET['upload']) ){ ! $smarty->display("admin/pictures.add.tpl"); } else { //make sure the picture follows the rules --- 67,71 ---- //Operation: Add Picture if( !isset($_GET['upload']) ){ ! $smarty->display("admin/files.add.tpl"); } else { //make sure the picture follows the rules *************** *** 76,81 **** copy($_FILES['file']['tmp_name'], _fileroot_."files/".$filename); //update db ! dbn(__FILE__,__LINE__,"INSERT INTO "._FILES_." SET owner='{$user['id']}', description='{$_POST['descrip']}', name='{$_POST['picname']}', filename='{$filename}', type='{$_FILES['pic']['type']}', approved='0', views='0', size='{$_FILES['pic']['size']}'"); ! //Header("Location: "._AMOD_); } else { systemmessage("Upload Unsucessful"); --- 76,81 ---- copy($_FILES['file']['tmp_name'], _fileroot_."files/".$filename); //update db ! dbn(__FILE__,__LINE__,"INSERT INTO "._FILES_." SET owner='{$user['id']}', description='{$_POST['filedesc']}', name='{$_POST['filename']}', filename='{$filename}', type='{$_FILES['pic']['type']}', approved='0', downloads='0', size='{$_FILES['file']['size']}'"); ! Header("Location: "._AMOD_); } else { systemmessage("Upload Unsucessful"); Index: news.php =================================================================== RCS file: /cvsroot/webschool/webschool/admin/news.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** news.php 4 Dec 2004 01:47:37 -0000 1.5 --- news.php 8 Dec 2004 01:04:51 -0000 1.6 *************** *** 76,80 **** dbn(__FILE__,__LINE__,"DELETE FROM "._NEWS_." WHERE id='{$_GET['id']}'"); } ! Header("Location: {_AMOD_)"); } else { systemmessage("You do not have permission to <b>Publish</b>"); --- 76,80 ---- dbn(__FILE__,__LINE__,"DELETE FROM "._NEWS_." WHERE id='{$_GET['id']}'"); } ! Header("Location: "._AMOD_); } else { systemmessage("You do not have permission to <b>Publish</b>"); Index: config.php =================================================================== RCS file: /cvsroot/webschool/webschool/admin/config.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** config.php 26 Nov 2004 01:02:25 -0000 1.5 --- config.php 8 Dec 2004 01:04:51 -0000 1.6 *************** *** 41,53 **** if ($handle = opendir(_fileroot_."lang/")) { ! while (false !== ( $item = readdir($handle) ) ) { ! if( is_dir(_fileroot_."lang/".$item) && $item != "." && $item != "..") { ! $smarty->append("langs", $item); ! echo $item; ! } } } ! db(__FILE__,__LINE__, "SELECT * FROM "._CONFIG_); --- 41,52 ---- if ($handle = opendir(_fileroot_."lang/")) { ! while (false !== ( $item = readdir($handle) ) ) { ! if( is_dir(_fileroot_."lang/".$item) && $item != "." && $item != "..") { ! $smarty->append("langs", $item); } + } } ! db(__FILE__,__LINE__, "SELECT * FROM "._CONFIG_); *************** *** 81,88 **** $content .= "<font color=green>Success</font>"; } ! header("Location: "._AMOD_); } elseif ( $_REQUEST['op'] == "dbconfig" ) { ! ! } ?> \ No newline at end of file --- 80,91 ---- $content .= "<font color=green>Success</font>"; } ! header("Location: "._AMOD_); } elseif ( $_REQUEST['op'] == "dbconfig" ) { ! db(__FILE__,__LINE__, "SELECT * FROM "._CONFIG_.""); ! while( $row = dbr() ) { ! //echo "UPDATE "._CONFIG_." SET value = '".$_POST[$row['name']]."' WHERE name = '".$row['name']."'"; ! dbn(__FILE__,__LINE__,"UPDATE "._CONFIG_." SET value = '{$_POST[$row['name']]}' WHERE name = '{$row['name']}'"); ! ! } } ?> \ No newline at end of file |
From: Matt M. <pro...@us...> - 2004-12-08 01:05:02
|
Update of /cvsroot/webschool/webschool/mysql In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30801/mysql Modified Files: webschool.sql Log Message: Index: webschool.sql =================================================================== RCS file: /cvsroot/webschool/webschool/mysql/webschool.sql,v retrieving revision 1.64 retrieving revision 1.65 diff -C2 -d -r1.64 -r1.65 *** webschool.sql 5 Dec 2004 23:28:51 -0000 1.64 --- webschool.sql 8 Dec 2004 01:04:52 -0000 1.65 *************** *** 40,44 **** INSERT INTO `table_config` VALUES ('sotm_pic_width', '50', 'int', ''); INSERT INTO `table_config` VALUES ('sotm_pic_height', '100', 'int', ''); - INSERT INTO `table_config` VALUES ('sotm_pic_allowedtypes', '', 'str', ''); INSERT INTO `table_config` VALUES ('sotm_pic_maxsize', '250000', 'int', ''); INSERT INTO `table_config` VALUES ('pic_maxsize', '250000', 'int', ''); --- 40,43 ---- *************** *** 52,56 **** INSERT INTO `table_config` VALUES ('sitedisabled', 'false', 'bool', ''); INSERT INTO `table_config` VALUES ('files_maxsize', '250000', 'int', ''); ! INSERT INTO `table_config` VALUES ('files_allowedtypes', '', 'str', ''); --- 51,55 ---- INSERT INTO `table_config` VALUES ('sitedisabled', 'false', 'bool', ''); INSERT INTO `table_config` VALUES ('files_maxsize', '250000', 'int', ''); ! INSERT INTO `table_config` VALUES ('files_allowedtypes', '', 'str', 'doc|txt|zip|tar.gz'); *************** *** 121,147 **** DROP TABLE IF EXISTS `table_permissions`; ! CREATE TABLE `table_permissions` ( ! `userid` int(11) NOT NULL default '', ! `users` tinyint(1) NOT NULL default '0', ! `news` tinyint(1) NOT NULL default '0', ! `profiles` tinyint(1) NOT NULL default '0', ! `articles` tinyint(1) NOT NULL default '0', ! `theater` tinyint(1) NOT NULL default '0', ! `sports` tinyint(1) NOT NULL default '0', ! `sotm` tinyint(1) NOT NULL default '0', ! `menu` tinyint(1) NOT NULL default '0', ! `pictures` tinyint(1) NOT NULL default '0', ! `pages` tinyint(1) NOT NULL default '0', `academia` tinyint(1) NOT NULL default '0', ! `newsletters` tinyint(1) NOT NULL default '0', `config` tinyint(1) NOT NULL default '0', `modules` tinyint(1) NOT NULL default '0', ! `files` tinyint(1) NOT NULL default '0', PRIMARY KEY (`userid`) ) TYPE=MyISAM; ! INSERT INTO `table_permissions` VALUES ('2', 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3); ! INSERT INTO `table_permissions` VALUES ('3', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1); ! INSERT INTO `table_permissions` VALUES ('4', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1); --- 120,147 ---- DROP TABLE IF EXISTS `table_permissions`; ! CREATE TABLE `table_permissions` ( ! `userid` int(11) NOT NULL default '', `academia` tinyint(1) NOT NULL default '0', ! `articles` tinyint(1) NOT NULL default '0', ! `calendar` tinyint(1) NOT NULL default '0', `config` tinyint(1) NOT NULL default '0', + `files` tinyint(1) NOT NULL default '0', `modules` tinyint(1) NOT NULL default '0', ! `menu` tinyint(1) NOT NULL default '0', ! `news` tinyint(1) NOT NULL default '0', ! `newsletters` tinyint(1) NOT NULL default '0', ! `pages` tinyint(1) NOT NULL default '0', ! `pictures` tinyint(1) NOT NULL default '0', ! `profiles` tinyint(1) NOT NULL default '0', ! `sotm` tinyint(1) NOT NULL default '0', ! `sports` tinyint(1) NOT NULL default '0', ! `theater` tinyint(1) NOT NULL default '0', ! `users` tinyint(1) NOT NULL default '0', PRIMARY KEY (`userid`) ) TYPE=MyISAM; ! INSERT INTO `table_permissions` VALUES ('2', 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3); ! INSERT INTO `table_permissions` VALUES ('3', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3); ! INSERT INTO `table_permissions` VALUES ('4', 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 3); *************** *** 171,174 **** --- 171,175 ---- `type` varchar(25) NOT NULL default '', `name` varchar(25) NOT NULL default '', + `filename` varchar(45) NOT NULL default '', `approved` varchar(25) NOT NULL default '', `downloads` int(11) NOT NULL default '0', *************** *** 268,272 **** PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`) ! ) TYPE=MyISAM AUTO_INCREMENT=13 ; INSERT INTO `table_amods` VALUES (1, 'News', 'The News aModule', 'news', 'news.php'); --- 269,273 ---- PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`) ! ) TYPE=MyISAM AUTO_INCREMENT=14; INSERT INTO `table_amods` VALUES (1, 'News', 'The News aModule', 'news', 'news.php'); *************** *** 283,286 **** --- 284,288 ---- INSERT INTO `table_amods` VALUES (12, 'Modules', 'The Module Configuration Editor', 'modules', 'modules.php'); INSERT INTO `table_amods` VALUES (13, 'Files', 'The file aMod', 'files', 'files.php'); + INSERT INTO `table_amods` VALUES (14, 'Calendar', 'Calendar of events and stuff', 'calendar', 'calendar.php'); DROP TABLE IF EXISTS `table_mods`; |
From: Matt M. <pro...@us...> - 2004-12-07 03:25:58
|
Update of /cvsroot/webschool/webschool/theme/templates/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7368/theme/templates/admin Added Files: newsletters.delete.tpl newsletters.publish.tpl Log Message: --- NEW FILE: newsletters.publish.tpl --- {include file="tablehead.tpl" tbtitle="Newsletters"} <center><h3>Publish A Newsletter</h3></center> <form id="post" method="POST" action="{$AMOD}&op=publish"> <input type="hidden" id="id" name="id" value="{$smarty.get.id}"> Newsletter Subject: <input type="text" name="subject" id="subject"><br> Message: <br> <textarea name="ta" id="ta" rows="10" cols="70"> </textarea> <input type="submit" value="Publish"> </form> {include file="tablefoot.tpl"} --- NEW FILE: newsletters.delete.tpl --- {include file="tablehead.tpl" tbtitle="Delete Newsletter"} <center><h3>Delete A Newsletter</h3></center> <form id="post" method="POST" action="{$AMOD}&op=delete"> Are you sure you want to delete: {$del_newsletter.prettyname}?<br> <input type="hidden" id="confirm" name="confirm" value="set"> <input type="hidden" id="id" name="id" value="{$smarty.get.id}"> <input type="submit" value="Delete"> </form> {include file="tablefoot.tpl"} |
From: Matt M. <pro...@us...> - 2004-12-05 23:29:09
|
Update of /cvsroot/webschool/webschool/theme/templates/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7238/theme/templates/admin Modified Files: newsletters.tpl Log Message: Index: newsletters.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/newsletters.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** newsletters.tpl 18 Nov 2004 01:30:21 -0000 1.3 --- newsletters.tpl 5 Dec 2004 23:28:52 -0000 1.4 *************** *** 24,28 **** {/if} <td><a href="{$AMOD}&op=modify&id={$v.id}">Modify</a></td> ! <td><a href="{$AMOD}&op=publish&id={$v.id}">Publish</a></td> </tr> {/foreach} --- 24,28 ---- {/if} <td><a href="{$AMOD}&op=modify&id={$v.id}">Modify</a></td> ! <td><a href="{$AMOD}&op=publish&htmlarea=1&id={$v.id}">Publish</a></td> </tr> {/foreach} |
From: Matt M. <pro...@us...> - 2004-12-05 23:29:08
|
Update of /cvsroot/webschool/webschool/mysql In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7238/mysql Modified Files: webschool.sql Log Message: Index: webschool.sql =================================================================== RCS file: /cvsroot/webschool/webschool/mysql/webschool.sql,v retrieving revision 1.63 retrieving revision 1.64 diff -C2 -d -r1.63 -r1.64 *** webschool.sql 4 Dec 2004 02:02:45 -0000 1.63 --- webschool.sql 5 Dec 2004 23:28:51 -0000 1.64 *************** *** 252,256 **** `id` int(11) NOT NULL auto_increment, `email` varchar(30) NOT NULL default '', ! `subscriptions` varchar(25) NOT NULL default '', PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`) --- 252,256 ---- `id` int(11) NOT NULL auto_increment, `email` varchar(30) NOT NULL default '', ! `subscription` varchar(25) NOT NULL default '', PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`) |
From: Matt M. <pro...@us...> - 2004-12-05 23:29:07
|
Update of /cvsroot/webschool/webschool/theme/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7238/theme/templates Modified Files: index.tpl Log Message: Index: index.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/index.tpl,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** index.tpl 26 Nov 2004 01:02:36 -0000 1.11 --- index.tpl 5 Dec 2004 23:28:52 -0000 1.12 *************** *** 20,24 **** {foreach from=$onindex item=v key=k} {include file="tablehead.tpl" tbtitle="Home"} ! <font size="+2">{$v.prettytitle}</font><br> <br> --- 20,24 ---- {foreach from=$onindex item=v key=k} {include file="tablehead.tpl" tbtitle="Home"} ! {if $perm.pages > 2 || $v.owner == $user.id} <a href="admin.php?amod=Pages&op=modify&htmlarea=1&id={$v.id}">Edit</a> <br>{/if} <font size="+2">{$v.prettytitle}</font><br> <br> |
From: Matt M. <pro...@us...> - 2004-12-05 23:29:03
|
Update of /cvsroot/webschool/webschool/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7238/admin Modified Files: newsletters.php Log Message: Index: newsletters.php =================================================================== RCS file: /cvsroot/webschool/webschool/admin/newsletters.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** newsletters.php 4 Dec 2004 02:31:52 -0000 1.7 --- newsletters.php 5 Dec 2004 23:28:51 -0000 1.8 *************** *** 43,56 **** } else { db(__FILE__,__LINE__,"SELECT id FROM "._USERS_." WHERE username='{$_POST['moderator']}'"); ! $id = dbr(); ! dbn(__FILE__,__LINE__,"INSERT INTO "._NEWSLETTERS_." SET prettyname='{$_POST['name']}', moderator='{$id['id']}', shortdescription='{$_POST['description']}'"); ! header("LOCATION: "._AMOD_); } } elseif ( $_REQUEST['op'] == "publish" ) { if( !isset($_POST['subject']) ) { $smarty->display("admin/newsletters.publish.tpl"); ! //foreach array to send it out to everyone } else { header("Location: "._AMOD_); } } --- 43,75 ---- } else { db(__FILE__,__LINE__,"SELECT id FROM "._USERS_." WHERE username='{$_POST['moderator']}'"); ! if( affected_rows() > 0 ){ ! $id = dbr(); ! dbn(__FILE__,__LINE__,"INSERT INTO "._NEWSLETTERS_." SET prettyname='{$_POST['name']}', moderator='{$id['id']}', shortdescription='{$_POST['description']}'"); ! header("LOCATION: "._AMOD_); ! }else{ ! systemmessage("Username doesn't exist"); ! } ! } ! } elseif ($_REQUEST['op'] == "delete" ) { ! if( !isset($_POST['confirm']) ) { ! db(__FILE__,__LINE__, "SELECT * FROM "._NEWSLETTERS_." WHERE id='".$_GET['id']."'"); ! $smarty->assign("del_newsletter", dbr()); ! $smarty->display("admin/newsletters.delete.tpl"); ! } else { ! dbn(__FILE__,__LINE__, "DELETE FROM "._NEWSLETTERS_." WHERE id='".$_POST['id']."'"); ! dbn(__FILE__,__LINE__, "DELETE FROM "._NEWSLETTERS_SUBSCRIPTIONS_." WHERE subscription='".$_POST['id']."'"); ! header("Location: "._AMOD_); } } elseif ( $_REQUEST['op'] == "publish" ) { if( !isset($_POST['subject']) ) { $smarty->display("admin/newsletters.publish.tpl"); ! } else { header("Location: "._AMOD_); + db(__FILE__,__LINE__, "SELECT * FROM "._NEWSLETTERS_SUBSCRIPTIONS_." WHERE subscription='".$_POST['id']."'"); + while( $mailee = dbr() ){ + mail($mailee.email, $_POST['subject'], $_POST['ta']); + } + db(__FILE__,__LINE__, "UPDATE "._NEWSLETTERS_ARCHIVE_." SET newsletterid='".$_POST['id']."', date='".time()."', content='".$_POST['ta']."'"); } } |
From: Matt M. <pro...@us...> - 2004-12-04 02:32:03
|
Update of /cvsroot/webschool/webschool/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1626/admin Modified Files: newsletters.php Log Message: Index: newsletters.php =================================================================== RCS file: /cvsroot/webschool/webschool/admin/newsletters.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** newsletters.php 19 Nov 2004 03:26:58 -0000 1.6 --- newsletters.php 4 Dec 2004 02:31:52 -0000 1.7 *************** *** 24,28 **** define("_AMOD_", "admin.php?amod=Newsletters"); $smarty->assign("AMOD", "admin.php?amod=Newsletters"); - systemmessage("H"); include(_fileroot_."/lang/".$config['lang']."/admin/newsletters.lang.php"); $smarty->assign("lang", $lang); --- 24,27 ---- *************** *** 30,34 **** if ($perm['newsletters'] > 0) { if( $perm['newsletters'] == 1){ ! db(__FILE__,__LINE__,"SELECT * FROM "._NEWSLETTERS_." WHERE moderator='".$user['id']."'"); } elseif ( $perm['newsletters'] >= 2 ) { db(__FILE__,__LINE__,"SELECT * FROM "._NEWSLETTERS_); --- 29,33 ---- if ($perm['newsletters'] > 0) { if( $perm['newsletters'] == 1){ ! db(__FILE__,__LINE__,"SELECT * FROM "._NEWSLETTERS_." WHERE moderator='{$user['id']}'"); } elseif ( $perm['newsletters'] >= 2 ) { db(__FILE__,__LINE__,"SELECT * FROM "._NEWSLETTERS_); *************** *** 43,51 **** $smarty->display("admin/newsletters.add.tpl"); } else { ! db(__FILE__,__LINE__,"SELECT id FROM "._USERS_." WHERE username='".$_POST['moderator']."'"); $id = dbr(); ! dbn(__FILE__,__LINE__,"INSERT INTO "._NEWSLETTERS_." SET prettyname='".$_POST['name']."', moderator='".$id['id']."', shortdescription='".$_POST['description']."'"); header("LOCATION: "._AMOD_); } } } --- 42,57 ---- $smarty->display("admin/newsletters.add.tpl"); } else { ! db(__FILE__,__LINE__,"SELECT id FROM "._USERS_." WHERE username='{$_POST['moderator']}'"); $id = dbr(); ! dbn(__FILE__,__LINE__,"INSERT INTO "._NEWSLETTERS_." SET prettyname='{$_POST['name']}', moderator='{$id['id']}', shortdescription='{$_POST['description']}'"); header("LOCATION: "._AMOD_); } + } elseif ( $_REQUEST['op'] == "publish" ) { + if( !isset($_POST['subject']) ) { + $smarty->display("admin/newsletters.publish.tpl"); + //foreach array to send it out to everyone + } else { + header("Location: "._AMOD_); + } } } |
From: Matt M. <pro...@us...> - 2004-12-04 02:32:02
|
Update of /cvsroot/webschool/webschool/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1626/docs Modified Files: roadmap.html Log Message: Index: roadmap.html =================================================================== RCS file: /cvsroot/webschool/webschool/docs/roadmap.html,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** roadmap.html 20 Nov 2004 01:50:50 -0000 1.4 --- roadmap.html 4 Dec 2004 02:31:52 -0000 1.5 *************** *** 41,45 **** <li>Implement 'Find User' Feature</li> <li>Implement Pagination in News, Users, Articles, Pictures</li> ! <li>Begin file.php, similar function to pic.php, except files</li> <li>Wrap up Sports</li> <li>Wrap up Calander</li> --- 41,45 ---- <li>Implement 'Find User' Feature</li> <li>Implement Pagination in News, Users, Articles, Pictures</li> ! <li><strike>Begin file.php, similar function to pic.php, except files</strike</li> <li>Wrap up Sports</li> <li>Wrap up Calander</li> |
From: Matt M. <pro...@us...> - 2004-12-04 02:02:57
|
Update of /cvsroot/webschool/webschool/mysql In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28232/mysql Modified Files: webschool.sql Log Message: Index: webschool.sql =================================================================== RCS file: /cvsroot/webschool/webschool/mysql/webschool.sql,v retrieving revision 1.62 retrieving revision 1.63 diff -C2 -d -r1.62 -r1.63 *** webschool.sql 4 Dec 2004 01:47:38 -0000 1.62 --- webschool.sql 4 Dec 2004 02:02:45 -0000 1.63 *************** *** 26,30 **** ) TYPE=MyISAM AUTO_INCREMENT=2 ; ! INSERT INTO `table_articles` VALUES (1, 'Introduction to WebSchool', 2, 'Im working on it.<br /><br />Comming soon.', '1095390146', '1097898346'); --- 26,30 ---- ) TYPE=MyISAM AUTO_INCREMENT=2 ; ! INSERT INTO `table_articles` VALUES (1, 'Introduction to WebSchool', 2, 'Im working on it.<br /><br />Comming soon.', '1095390146', '1095390146'); |
From: Matt M. <pro...@us...> - 2004-12-04 01:48:02
|
Update of /cvsroot/webschool/webschool/mysql In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24848/mysql Modified Files: webschool.sql Log Message: Index: webschool.sql =================================================================== RCS file: /cvsroot/webschool/webschool/mysql/webschool.sql,v retrieving revision 1.61 retrieving revision 1.62 diff -C2 -d -r1.61 -r1.62 *** webschool.sql 3 Dec 2004 02:16:16 -0000 1.61 --- webschool.sql 4 Dec 2004 01:47:38 -0000 1.62 *************** *** 51,56 **** INSERT INTO `table_config` VALUES ('recentnews', '5', 'int', ''); INSERT INTO `table_config` VALUES ('sitedisabled', 'false', 'bool', ''); ! INSERT INTO `table_config` VALUES ('file_maxsize' '250000', 'int', ''); ! INSERT INTO `table_config` VALUES ('file_allowedtypes', '', 'str', ''); --- 51,56 ---- INSERT INTO `table_config` VALUES ('recentnews', '5', 'int', ''); INSERT INTO `table_config` VALUES ('sitedisabled', 'false', 'bool', ''); ! INSERT INTO `table_config` VALUES ('files_maxsize', '250000', 'int', ''); ! INSERT INTO `table_config` VALUES ('files_allowedtypes', '', 'str', ''); |
From: Matt M. <pro...@us...> - 2004-12-04 01:48:02
|
Update of /cvsroot/webschool/webschool/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24848/lib Modified Files: mainfile.php Log Message: Index: mainfile.php =================================================================== RCS file: /cvsroot/webschool/webschool/lib/mainfile.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** mainfile.php 24 Nov 2004 02:54:13 -0000 1.10 --- mainfile.php 4 Dec 2004 01:47:37 -0000 1.11 *************** *** 148,150 **** --- 148,156 ---- return $answer; } + + if( is_a($smarty, "Smarty")){ + $smarty->register_function("gzuncompress", "gzuncompress"); + $smarty->register_function("gzcompress", "gzcompress"); + } + ?> \ No newline at end of file |
From: Matt M. <pro...@us...> - 2004-12-04 01:48:02
|
Update of /cvsroot/webschool/webschool/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24848/admin Modified Files: articles.php files.php news.php Log Message: Index: files.php =================================================================== RCS file: /cvsroot/webschool/webschool/admin/files.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** files.php 3 Dec 2004 02:06:41 -0000 1.2 --- files.php 4 Dec 2004 01:47:37 -0000 1.3 *************** *** 70,82 **** } else { //make sure the picture follows the rules ! if ( $_FILES['file']['size'] <= $config['file_maxsize'] && trim($_POST['filename']) != "" && $_FILES['file']['size'] > 0) { //assign a name with the name they assigned with a number between 111&999999. Prevents linking by making a huge number they would have to guess, and reduces collisions $filename = $user['username'].".".$_POST['filename']."-".rand(111,9999999); //copy the file to the filename we just made copy($_FILES['file']['tmp_name'], _fileroot_."files/".$filename); - //get info about the image (height/width) - $info = getimagesize(_fileroot_."files/".$filename); //update db ! dbn(__FILE__,__LINE__,"INSERT INTO "._FILES_." SET owner='".$user['id']."', description='".$_POST['descrip']."', name='".$_POST['picname']."', filename='".$filename."', type='".$_FILES['pic']['type']."', approved='0', views='0', x='".$info[0]."', y='".$info[1]."', size='".$_FILES['pic']['size']."'"); //Header("Location: "._AMOD_); } else { --- 70,80 ---- } else { //make sure the picture follows the rules ! if ( $_FILES['file']['size'] <= $config['files_maxsize'] && trim($_POST['filename']) != "" && $_FILES['file']['size'] > 0) { //assign a name with the name they assigned with a number between 111&999999. Prevents linking by making a huge number they would have to guess, and reduces collisions $filename = $user['username'].".".$_POST['filename']."-".rand(111,9999999); //copy the file to the filename we just made copy($_FILES['file']['tmp_name'], _fileroot_."files/".$filename); //update db ! dbn(__FILE__,__LINE__,"INSERT INTO "._FILES_." SET owner='{$user['id']}', description='{$_POST['descrip']}', name='{$_POST['picname']}', filename='{$filename}', type='{$_FILES['pic']['type']}', approved='0', views='0', size='{$_FILES['pic']['size']}'"); //Header("Location: "._AMOD_); } else { *************** *** 88,105 **** //Operation: Approve Picture if( $perm['pictures'] >= 2 ) { ! dbn(__FILE__,__LINE__,"UPDATE "._FILES_." SET approved='".time()."' WHERE id='".$_GET['id']."'"); header("Location: "._AMOD_); }else{ die(); } }elseif( $_GET['op'] == "remove" ) { ! dbn(__FILE__,__LINE__,"UPDATE "._FILES_." SET approved='' WHERE id='".$_GET['id']."'"); header("Location: "._AMOD_); }elseif( $_GET['op'] == "delete" ) { //Operation: Delete Picture if( $perm['pictures'] >= 2 ) { ! db(__FILE__,__LINE__,"SELECT filename FROM "._FILES_." WHERE id='".$_GET['id']."'"); $res = dbr(); unlink(_fileroot_."images/".$res['filename']); ! dbn(__FILE__,__LINE__,"DELETE FROM "._FILES_." WHERE id='".$_GET['id']."'"); header("Location: "._AMOD_); --- 86,103 ---- //Operation: Approve Picture if( $perm['pictures'] >= 2 ) { ! dbn(__FILE__,__LINE__,"UPDATE "._FILES_." SET approved='".time()."' WHERE id='{$_GET['id']}'"); header("Location: "._AMOD_); }else{ die(); } }elseif( $_GET['op'] == "remove" ) { ! dbn(__FILE__,__LINE__,"UPDATE "._FILES_." SET approved='' WHERE id='{$_GET['id']}'"); header("Location: "._AMOD_); }elseif( $_GET['op'] == "delete" ) { //Operation: Delete Picture if( $perm['pictures'] >= 2 ) { ! db(__FILE__,__LINE__,"SELECT filename FROM "._FILES_." WHERE id='{$_GET['id']}'"); $res = dbr(); unlink(_fileroot_."images/".$res['filename']); ! dbn(__FILE__,__LINE__,"DELETE FROM "._FILES_." WHERE id='{$_GET['id']}'"); header("Location: "._AMOD_); Index: news.php =================================================================== RCS file: /cvsroot/webschool/webschool/admin/news.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** news.php 3 Dec 2004 02:06:41 -0000 1.4 --- news.php 4 Dec 2004 01:47:37 -0000 1.5 *************** *** 24,28 **** $smarty->assign("AMOD", "admin.php?amod=News"); ! include(_fileroot_."/lang/".$config['lang']."/admin/news.lang.php"); $smarty->assign("lang", $lang); if ( !($perm['news'] <=0) ){ --- 24,28 ---- $smarty->assign("AMOD", "admin.php?amod=News"); ! include(_fileroot_."/lang/{$config['lang']}/admin/news.lang.php"); $smarty->assign("lang", $lang); if ( !($perm['news'] <=0) ){ *************** *** 32,36 **** db2(__FILE__,__LINE__,"SELECT * FROM "._NEWS_." WHERE published!='' "); } elseif( $perm['news'] == 1){ ! db2(__FILE__,__LINE__,"SELECT * FROM "._NEWS_." WHERE published!='' && owner='".$user['id']."'"); } while( $row = dbr2() ){ --- 32,36 ---- db2(__FILE__,__LINE__,"SELECT * FROM "._NEWS_." WHERE published!='' "); } elseif( $perm['news'] == 1){ ! db2(__FILE__,__LINE__,"SELECT * FROM "._NEWS_." WHERE published!='' && owner='{$user['id']}'"); } while( $row = dbr2() ){ *************** *** 42,46 **** db(__FILE__,__LINE__,"SELECT * FROM "._NEWS_." WHERE published='' && submitted!=''"); } elseif( $perm['news'] == 1){ ! db(__FILE__,__LINE__,"SELECT * FROM "._NEWS_." WHERE published='' && submitted!='' && owner='".$user['id']."'"); } while( $row = dbr() ){ --- 42,46 ---- db(__FILE__,__LINE__,"SELECT * FROM "._NEWS_." WHERE published='' && submitted!=''"); } elseif( $perm['news'] == 1){ ! db(__FILE__,__LINE__,"SELECT * FROM "._NEWS_." WHERE published='' && submitted!='' && owner='{$user['id']}'"); } while( $row = dbr() ){ *************** *** 50,56 **** //news in progress if( $perm['news'] >= 2 ){ ! db3(__FILE__,__LINE__,"SELECT * FROM "._NEWS_." WHERE owner='".$user['id']."' && published='' && submitted=''"); } elseif( $perm['news'] == 1){ ! db3(__FILE__,__LINE__,"SELECT * FROM "._NEWS_." WHERE owner='".$user['id']."' && published='' && submitted='' && owner='".$user['id']."'"); } while( $row = dbr3() ){ --- 50,56 ---- //news in progress if( $perm['news'] >= 2 ){ ! db3(__FILE__,__LINE__,"SELECT * FROM "._NEWS_." WHERE owner='{$user['id']}' && published='' && submitted=''"); } elseif( $perm['news'] == 1){ ! db3(__FILE__,__LINE__,"SELECT * FROM "._NEWS_." WHERE owner='{$user['id']}' && published='' && submitted='' && owner='{$user['id']}'"); } while( $row = dbr3() ){ *************** *** 65,80 **** $time_lock = time(); //lets make sure it isn't a revision ! db(__FILE__,__LINE__,"SELECT * FROM "._NEWS_." WHERE id='".$_GET['id']."'"); $test = dbr(); //is the revision field set? if( $test['revisionof'] == "" ){ //nope! update to be published ! dbn(__FILE__,__LINE__,"UPDATE "._NEWS_." SET published='".$time_lock."', lastupdate=".$time_lock." WHERE id='".$_GET['id']."'"); }else { //yep, add new content and delete revision ! dbn(__FILE__,__LINE__,"UPDATE "._NEWS_." SET lastupdate='".$time_lock."', content='".$test['content']."', prettytitle='".$test['prettytitle']."' WHERE id='".$test['revisionof']."'"); ! dbn(__FILE__,__LINE__,"DELETE FROM "._NEWS_." WHERE id='".$_GET['id']."'"); } ! Header("Location: "._AMOD_); } else { systemmessage("You do not have permission to <b>Publish</b>"); --- 65,80 ---- $time_lock = time(); //lets make sure it isn't a revision ! db(__FILE__,__LINE__,"SELECT * FROM "._NEWS_." WHERE id='{$_GET['id']}'"); $test = dbr(); //is the revision field set? if( $test['revisionof'] == "" ){ //nope! update to be published ! dbn(__FILE__,__LINE__,"UPDATE "._NEWS_." SET published='{$time_lock}', lastupdate={$time_lock} WHERE id='{$_GET['id']}'"); }else { //yep, add new content and delete revision ! dbn(__FILE__,__LINE__,"UPDATE "._NEWS_." SET lastupdate='{$time_lock}', content='{$test['content']}', prettytitle='{$test['prettytitle']}' WHERE id='{$test['revisionof']}'"); ! dbn(__FILE__,__LINE__,"DELETE FROM "._NEWS_." WHERE id='{$_GET['id']}'"); } ! Header("Location: {_AMOD_)"); } else { systemmessage("You do not have permission to <b>Publish</b>"); *************** *** 82,91 **** } }elseif ($_REQUEST['op'] == "delete") { ! db(__FILE__,__LINE__,"SELECT * FROM "._NEWS_." WHERE id ='".$_GET['id']."'"); $test = dbr(); if( ($perm['news'] >= 2) || ($test['owner'] == $user['id'] && $test['published']=="" ) ) { ! dbn(__FILE__,__LINE__,"DELETE FROM "._NEWS_." WHERE id='".$_GET['id']."'"); ! Header("Location:"._AMOD_); } else { systemmessage("You do not have permission to <b>Delete</b>"); --- 82,91 ---- } }elseif ($_REQUEST['op'] == "delete") { ! db(__FILE__,__LINE__,"SELECT * FROM "._NEWS_." WHERE id ='{$_GET['id']}'"); $test = dbr(); if( ($perm['news'] >= 2) || ($test['owner'] == $user['id'] && $test['published']=="" ) ) { ! dbn(__FILE__,__LINE__,"DELETE FROM "._NEWS_." WHERE id='{$_GET['id']}'"); ! Header("Location: "._AMOD_.""); } else { systemmessage("You do not have permission to <b>Delete</b>"); *************** *** 94,102 **** }elseif ($_REQUEST['op'] == "submit") { ! db(__FILE__,__LINE__, "SELECT * FROM "._NEWS_." WHERE id='".$_GET['id']."'"); $res = dbr(); if( $perm['news'] == 2 || ($user['id'] == $res['owner']) ) { ! dbn(__FILE__,__LINE__, "UPDATE "._NEWS_." SET submitted='".time()."' WHERE id='".$_GET['id']."'"); ! Header("Location:"._AMOD_); } else { systemmessage("You do not have permission to <b>Submit</b>"); --- 94,102 ---- }elseif ($_REQUEST['op'] == "submit") { ! db(__FILE__,__LINE__, "SELECT * FROM "._NEWS_." WHERE id='{$_GET['id']}'"); $res = dbr(); if( $perm['news'] == 2 || ($user['id'] == $res['owner']) ) { ! dbn(__FILE__,__LINE__, "UPDATE "._NEWS_." SET submitted='{time()}' WHERE id='{$_GET['id']}'"); ! Header("Location: "._AMOD_.""); } else { systemmessage("You do not have permission to <b>Submit</b>"); *************** *** 104,125 **** } }elseif ($_REQUEST['op'] == "read") { ! db(__FILE__,__LINE__, "SELECT * FROM "._NEWS_." WHERE id='".$_GET['id']."'"); $smarty->assign("read", dbr()); $smarty->display("admin/news.read.tpl"); }elseif ($_REQUEST['op'] == "remove") { ! db(__FILE__,__LINE__, "SELECT * FROM "._NEWS_." WHERE id='".$_GET['id']."'"); $res = dbr(); if( $perm['news'] == 2 || ($user['id'] == $res['owner']) ) { ! dbn(__FILE__,__LINE__,"UPDATE "._NEWS_." SET submitted='',published='' WHERE id='".$_GET['id']."'"); ! Header("Location:"._AMOD_); } else { systemmessage("You do not have permission to <b>Remove</b>"); } }elseif ($_REQUEST['op'] == "revise") { ! db(__FILE__,__LINE__, "SELECT * FROM "._NEWS_." WHERE id='".$_GET['id']."'"); $res = dbr(); if( $perm['news'] == 2 || ($user['id'] == $res['owner']) ) { ! dbn(__FILE__,__LINE__,"INSERT INTO "._NEWS_." SET prettytitle='".$res['prettytitle']."_Revision', content='".$res['content']."', lastupdate='".$res['lastupdate']."', owner='".$user['id']."', revisionof='".$res['id']."'"); ! Header("Location: "._AMOD_); } else { systemmessage("You do not have permission to <b>Revise</b>"); --- 104,125 ---- } }elseif ($_REQUEST['op'] == "read") { ! db(__FILE__,__LINE__, "SELECT * FROM "._NEWS_." WHERE id='{$_GET['id']}'"); $smarty->assign("read", dbr()); $smarty->display("admin/news.read.tpl"); }elseif ($_REQUEST['op'] == "remove") { ! db(__FILE__,__LINE__, "SELECT * FROM "._NEWS_." WHERE id='{$_GET['id']}'"); $res = dbr(); if( $perm['news'] == 2 || ($user['id'] == $res['owner']) ) { ! dbn(__FILE__,__LINE__,"UPDATE "._NEWS_." SET submitted='',published='' WHERE id='{$_GET['id']}'"); ! Header("Location: "._AMOD_.""); } else { systemmessage("You do not have permission to <b>Remove</b>"); } }elseif ($_REQUEST['op'] == "revise") { ! db(__FILE__,__LINE__, "SELECT * FROM "._NEWS_." WHERE id='{$_GET['id']}'"); $res = dbr(); if( $perm['news'] == 2 || ($user['id'] == $res['owner']) ) { ! dbn(__FILE__,__LINE__,"INSERT INTO "._NEWS_." SET prettytitle='{$res['prettytitle']}_Revision', content='{$res['content']}', lastupdate='{$res['lastupdate']}', owner='{$user['id']}', revisionof='{$res['id']}'"); ! Header("Location: "._AMOD_.""); } else { systemmessage("You do not have permission to <b>Revise</b>"); *************** *** 130,135 **** $smarty->display("admin/news.add.tpl"); } else { ! dbn(__FILE__,__LINE__, "INSERT INTO "._NEWS_." SET prettytitle='".$_POST['title']."', published='', owner=".$user['id'].", content='".$_POST['ta']."', lastupdate='".time()."'"); ! header("Location:"._AMOD_); } } else { --- 130,135 ---- $smarty->display("admin/news.add.tpl"); } else { ! dbn(__FILE__,__LINE__, "INSERT INTO "._NEWS_." SET prettytitle='{$_POST['title']}', published='', owner='{$user['id']}', content='{$_POST['ta']}', lastupdate='{time()}'"); ! header("Location: "._AMOD_.""); } } else { *************** *** 137,141 **** } }elseif ($_REQUEST['op'] == "modify"){ ! db(__FILE__,__FILE__,"SELECT * FROM "._NEWS_." WHERE id='".$_GET['id']."'"); $modnews = dbr(); if( $perm['news'] >= 2 || ( $modnews['owner'] == $user['id'] )) { --- 137,141 ---- } }elseif ($_REQUEST['op'] == "modify"){ ! db(__FILE__,__FILE__,"SELECT * FROM "._NEWS_." WHERE id='{$_GET['id']}'"); $modnews = dbr(); if( $perm['news'] >= 2 || ( $modnews['owner'] == $user['id'] )) { *************** *** 145,150 **** $smarty->display("admin/news.modify.tpl"); }else{ ! dbn(__FILE__,__LINE__, "UPDATE "._NEWS_." SET prettytitle='".$_POST['title']."', content='".$_POST['ta']."', lastupdate='".time()."' WHERE id='".$_GET['id']."'"); ! header("Location:"._AMOD_); } } else{ --- 145,150 ---- $smarty->display("admin/news.modify.tpl"); }else{ ! dbn(__FILE__,__LINE__, "UPDATE "._NEWS_." SET prettytitle='{$_POST['title']}', content='{$_POST['ta']}', lastupdate='{time()}' WHERE id='{$_GET['id']}'"); ! header("Location: "._AMOD_.""); } } else{ Index: articles.php =================================================================== RCS file: /cvsroot/webschool/webschool/admin/articles.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** articles.php 3 Dec 2004 02:06:41 -0000 1.3 --- articles.php 4 Dec 2004 01:47:37 -0000 1.4 *************** *** 66,70 **** $smarty->display("admin/articles.add.tpl"); } else { ! dbn(__FILE__,__LINE__, "INSERT INTO "._ARTICLES_." SET prettytitle='".$_POST['title']."', published='', owner='".$user['id']."', content='".$_POST['ta']."', lastupdate='".time()."'"); header("Location:"._AMOD_); } --- 66,70 ---- $smarty->display("admin/articles.add.tpl"); } else { ! dbn(__FILE__,__LINE__, "INSERT INTO "._ARTICLES_." SET prettytitle='{$_POST['title']}', published='', owner='{$user['id']}', content='{$_POST['ta']}', lastupdate='".time()."'"); header("Location:"._AMOD_); } *************** *** 74,78 **** } elseif( $_GET['op'] == "modify") { ! db(__FILE__,__LINE__,"SELECT * FROM "._ARTICLES_." WHERE id='".$_GET['id']."'"); $res = dbr(); --- 74,78 ---- } elseif( $_GET['op'] == "modify") { ! db(__FILE__,__LINE__,"SELECT * FROM "._ARTICLES_." WHERE id='{$_GET['id']}'"); $res = dbr(); *************** *** 87,91 **** } else { //Commit Changes to database ! dbn(__FILE__,__LINE__, "UPDATE "._ARTICLES_." SET prettytitle='".$_POST['title']."', content='".$_POST['ta']."', lastupdate='".time()."' Where id='".$_GET['id']."'"); header("Location:"._AMOD_); } --- 87,91 ---- } else { //Commit Changes to database ! dbn(__FILE__,__LINE__, "UPDATE "._ARTICLES_." SET prettytitle='{$_POST['title']}', content='{$_POST['ta']}', lastupdate='".time()."' Where id='{$_GET['id']}'"); header("Location:"._AMOD_); } *************** *** 98,102 **** if( $perm['articles'] > 0 ) { $time_lock = time(); ! dbn(__FILE__,__LINE__,"UPDATE "._ARTICLES_." SET published='".$time_lock."', lastupdate='$time_lock' WHERE id='".$_GET['id']."'"); Header("Location: "._AMOD_); } else { --- 98,102 ---- if( $perm['articles'] > 0 ) { $time_lock = time(); ! dbn(__FILE__,__LINE__,"UPDATE "._ARTICLES_." SET published='{$time_lock}', lastupdate='{$time_lock}' WHERE id='{$_GET['id']}'"); Header("Location: "._AMOD_); } else { *************** *** 106,114 **** } elseif ( $_GET['op'] == "delete" ) { ! db(__FILE__,__LINE__,"SELECT * FROM "._ARTICLES_." WHERE id ='".$_GET['id']."'"); $row = dbr(); if( ($perm['articles'] >= 2) || ($row['owner'] == $user['id']) ) { ! dbn(__FILE__,__LINE__,"DELETE FROM "._ARTICLES_." WHERE id='".$_GET['id']."'"); Header("Location:"._AMOD_); } else { --- 106,114 ---- } elseif ( $_GET['op'] == "delete" ) { ! db(__FILE__,__LINE__,"SELECT * FROM "._ARTICLES_." WHERE id ='{$_GET['id']}'"); $row = dbr(); if( ($perm['articles'] >= 2) || ($row['owner'] == $user['id']) ) { ! dbn(__FILE__,__LINE__,"DELETE FROM "._ARTICLES_." WHERE id='{$_GET['id']}'"); Header("Location:"._AMOD_); } else { *************** *** 117,121 **** } elseif ( $_GET['op'] == "read" ){ ! db(__FILE__,__LINE__, "SELECT * FROM "._ARTICLES_." WHERE id='".$_GET['id']."'"); $row = dbr(); --- 117,121 ---- } elseif ( $_GET['op'] == "read" ){ ! db(__FILE__,__LINE__, "SELECT * FROM "._ARTICLES_." WHERE id='{$_GET['id']}'"); $row = dbr(); *************** *** 128,132 **** } elseif ( $_GET['op'] == "remove" ){ if( ($perm['articles'] >= 2) || ($row['owner'] == $user['id']) ) { ! dbn(__FILE__,__LINE__,"UPDATE "._ARTICLES_." SET published='' WHERE id='".$_GET['id']."'"); header("Location: "._AMOD_); } else { --- 128,132 ---- } elseif ( $_GET['op'] == "remove" ){ if( ($perm['articles'] >= 2) || ($row['owner'] == $user['id']) ) { ! dbn(__FILE__,__LINE__,"UPDATE "._ARTICLES_." SET published='' WHERE id='{$_GET['id']}'"); header("Location: "._AMOD_); } else { |
From: Matt M. <pro...@us...> - 2004-12-04 01:47:47
|
Update of /cvsroot/webschool/webschool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24848 Modified Files: CHANGELOG.txt Log Message: Index: CHANGELOG.txt =================================================================== RCS file: /cvsroot/webschool/webschool/CHANGELOG.txt,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** CHANGELOG.txt 23 Nov 2004 01:24:01 -0000 1.14 --- CHANGELOG.txt 4 Dec 2004 01:47:37 -0000 1.15 *************** *** 1,2 **** --- 1,5 ---- + 6:57 PM 12/3/2004 + -lala + 11/22/2004 -Converted some things to lang files. \ No newline at end of file |
From: Matt M. <pro...@us...> - 2004-12-03 02:16:32
|
Update of /cvsroot/webschool/webschool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11865 Modified Files: mod.php Log Message: Index: mod.php =================================================================== RCS file: /cvsroot/webschool/webschool/mod.php,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** mod.php 24 Nov 2004 02:54:13 -0000 1.19 --- mod.php 3 Dec 2004 02:16:16 -0000 1.20 *************** *** 41,45 **** } } ! } --- 41,45 ---- } } ! } *************** *** 52,56 **** } } else { ! error(__FILE__,__LINE__, "!Error opening modules!", "accessdenied", true); } --- 52,56 ---- } } else { ! systemmessage("!Error opening modules!"); } *************** *** 61,67 **** $module = $modules[$_REQUEST['mod']]; if( $module['disabled'] != 1 ) { ! if( ($module['permission'] == 1 && $user['id'] != 1) || ($module['permissino'] == 0 )) { include("mods/".$module['dirname']."/index.php"); } } } --- 61,71 ---- $module = $modules[$_REQUEST['mod']]; if( $module['disabled'] != 1 ) { ! if( ($module['permission'] == 1 && $user['id'] != 1) || ($module['permission'] == 0 )) { include("mods/".$module['dirname']."/index.php"); + }else { + systemmessage("Permission Conflict"); } + }else { + systemmessage("Module Disabled"); } } |