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-11-06 01:16:48
|
Update of /cvsroot/webschool/webschool/admin/images In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23966/admin/images Added Files: index.html Log Message: News is getting there. Added a bunch of index.html --- NEW FILE: index.html --- <html><head></head><body></body></html> |
From: Matt M. <pro...@us...> - 2004-11-06 01:16:48
|
Update of /cvsroot/webschool/webschool/lang In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv23966/lang Added Files: index.html Log Message: News is getting there. Added a bunch of index.html --- NEW FILE: index.html --- <html><head></head><body></body></html> |
From: Matt M. <pro...@us...> - 2004-11-05 23:48:24
|
Update of /cvsroot/webschool/webschool/lang/english/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5334/lang/english/admin Modified Files: pictures.lang.php Log Message: Pictures is now declared "Production". YAY this is the first one to get that title!!!! Look to this one if you have any questions as how the format of an aMod is. Index: pictures.lang.php =================================================================== RCS file: /cvsroot/webschool/webschool/lang/english/admin/pictures.lang.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** pictures.lang.php 9 Oct 2004 22:27:39 -0000 1.2 --- pictures.lang.php 5 Nov 2004 23:48:13 -0000 1.3 *************** *** 4,8 **** $lang['pictures']['activepictures'] = "Active pictures"; - $lang['pictures']['picturesprogress'] = "Pictures-In-Progress"; $lang['pictures']['picturespending'] = "Pending pictures"; $lang['pictures']['your'] = "Your"; --- 4,7 ---- *************** *** 12,28 **** $lang['pictures']['title'] = "Title"; $lang['pictures']['owner'] = "Owner"; ! $lang['pictures']['published'] = "Published"; ! $lang['pictures']['submitted'] = "Submitted"; ! $lang['pictures']['updated'] = "Updated"; $lang['pictures']['delete'] = "Delete?"; $lang['pictures']['delete_symbol'] = "X"; - $lang['pictures']['modify'] = "Modify"; - $lang['pictures']['modify_symbol'] = "Modify"; $lang['pictures']['remove'] = "Remove?"; $lang['pictures']['remove_symbol'] = "Remove"; ! $lang['pictures']['read'] = "Read"; ! $lang['pictures']['publish'] = "Publish"; ! $lang['pictures']['publish_symbol'] = "Publish"; ! $lang['pictures']['submit_symbol'] = "Submit"; $lang['pictures']['addpictures'] = "Add picture..."; --- 11,30 ---- $lang['pictures']['title'] = "Title"; $lang['pictures']['owner'] = "Owner"; ! $lang['pictures']['approved'] = "Approved"; $lang['pictures']['delete'] = "Delete?"; $lang['pictures']['delete_symbol'] = "X"; $lang['pictures']['remove'] = "Remove?"; $lang['pictures']['remove_symbol'] = "Remove"; ! $lang['pictures']['view'] = "View"; ! $lang['pictures']['view_symbol'] = "View"; ! $lang['pictures']['views'] = "Views"; ! $lang['pictures']['id'] = "ID"; ! $lang['pictures']['description'] = "Description"; ! $lang['pictures']['dimensions'] = "Dimensions"; ! $lang['pictures']['size'] = "Size"; ! $lang['pictures']['approve'] = "Approve"; ! $lang['pictures']['approve_symbol'] = "Approve"; ! $lang['pictures']['remove'] = "Remove?"; ! $lang['pictures']['remove_symbol'] = "Remove"; $lang['pictures']['addpictures'] = "Add picture..."; |
From: Matt M. <pro...@us...> - 2004-11-05 23:48:24
|
Update of /cvsroot/webschool/webschool/theme/templates/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5334/theme/templates/admin Modified Files: pictures.tpl Log Message: Pictures is now declared "Production". YAY this is the first one to get that title!!!! Look to this one if you have any questions as how the format of an aMod is. Index: pictures.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/pictures.tpl,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** pictures.tpl 5 Nov 2004 02:09:58 -0000 1.3 --- pictures.tpl 5 Nov 2004 23:48:14 -0000 1.4 *************** *** 11,25 **** <tr class="title"> <td>{$lang.pictures.title}</td> ! <td>!ID!</td> ! <td>!View!</td> ! <td>!Views!</td> ! <td>!Description!</td> {if $perm.articles >= 2} <td>{$lang.pictures.owner}</td> {/if} ! <td>!Dimensions!</td> ! <td>!Size!</td> <td>{$lang.pictures.delete}</td> ! <td>!Remove!</td> </tr> --- 11,25 ---- <tr class="title"> <td>{$lang.pictures.title}</td> ! <td>{$lang.pictures.id}</td> ! <td>{$lang.pictures.view}</td> ! <td>{$lang.pictures.views}</td> ! <td>{$lang.pictures.description}</td> {if $perm.articles >= 2} <td>{$lang.pictures.owner}</td> {/if} ! <td>{$lang.pictures.dimensions}</td> ! <td>{$lang.pictures.size}</td> <td>{$lang.pictures.delete}</td> ! <td>{$lang.pictures.remove_symbol}</td> </tr> *************** *** 30,34 **** <td>{$active[iv].title}</td> <td>{$active[iv].id}</td> ! <td><a href="pic.php?id={$active[iv].id}">View</a> <td><center>{$active[iv].views}</center></td> <td>{$active[iv].description}</td> --- 30,34 ---- <td>{$active[iv].title}</td> <td>{$active[iv].id}</td> ! <td><a href="pic.php?id={$active[iv].id}">{$lang.pictures.view_symbol}</a> <td><center>{$active[iv].views}</center></td> <td>{$active[iv].description}</td> *************** *** 40,44 **** <td>{$active[iv].size} Kb</td> <td><center><a href="{$AMOD}&op=delete&id={$active[iv].id}">{$lang.pictures.delete_symbol}</a></center></td> ! <td><a href="{$AMOD}&op=remove&id={$active[iv].id}">!Remove!</a></td> </tr> --- 40,44 ---- <td>{$active[iv].size} Kb</td> <td><center><a href="{$AMOD}&op=delete&id={$active[iv].id}">{$lang.pictures.delete_symbol}</a></center></td> ! <td><a href="{$AMOD}&op=remove&id={$active[iv].id}">{$lang.pictures.remove_symbol}</a></td> </tr> *************** *** 56,68 **** <tr class="title"> <td>{$lang.pictures.title}</td> ! <td>!ID!</td> ! <td>!View!</td> ! <td>!Description!</td> {if $perm.articles >= 2} <td>{$lang.pictures.owner}</td> {/if} ! <td>Dimensions</td> ! <td>Size</td> <td>{$lang.pictures.delete}</td> </tr> --- 56,69 ---- <tr class="title"> <td>{$lang.pictures.title}</td> ! <td>{$lang.pictures.id}</td> ! <td>{$lang.pictures.view}</td> ! <td>{$lang.pictures.description}</td> {if $perm.articles >= 2} <td>{$lang.pictures.owner}</td> {/if} ! <td>{$lang.pictures.dimensions}</td> ! <td>{$lang.pictures.size}</td> <td>{$lang.pictures.delete}</td> + <td>{$lang.pictures.approve}</td> </tr> *************** *** 73,77 **** <td>{$pending[iv].title}</td> <td>{$pending[iv].id}</td> ! <td><a href="pic.php?id={$pending[iv].id}">View</a> <td>{$pending[iv].description}</td> --- 74,78 ---- <td>{$pending[iv].title}</td> <td>{$pending[iv].id}</td> ! <td><a href="pic.php?id={$pending[iv].id}">{$lang.pictures.view_symbol}</a> <td>{$pending[iv].description}</td> *************** *** 82,86 **** <td>{$pending[iv].size} Kb</td> <td><center><a href="{$AMOD}&op=delete&id={$pending[iv].id}">{$lang.pictures.delete_symbol}</a></center></td> ! </tr> {/section} --- 83,88 ---- <td>{$pending[iv].size} Kb</td> <td><center><a href="{$AMOD}&op=delete&id={$pending[iv].id}">{$lang.pictures.delete_symbol}</a></center></td> ! <td><a href="{$AMOD}&op=approve&id={$pending[iv].id}">{$lang.pictures.approve_symbol}</a></td> ! </tr> {/section} |
From: Matt M. <pro...@us...> - 2004-11-05 23:48:23
|
Update of /cvsroot/webschool/webschool/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5334/admin Modified Files: pictures.php Log Message: Pictures is now declared "Production". YAY this is the first one to get that title!!!! Look to this one if you have any questions as how the format of an aMod is. Index: pictures.php =================================================================== RCS file: /cvsroot/webschool/webschool/admin/pictures.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** pictures.php 5 Nov 2004 02:09:57 -0000 1.4 --- pictures.php 5 Nov 2004 23:48:13 -0000 1.5 *************** *** 103,110 **** //Operation: Approve Picture if( $perm['pictures'] >= 2 ) { ! dbn(__FILE__,__LINE__,"UPDATE "._PICS_." SET approved='1' WHERE id='".$_GET['id']."'"); header("Location: "._AMOD_); }else{ die(); } ! }elseif( $_GET['op'] == "delete" ) { //Operation: Delete Picture --- 103,113 ---- //Operation: Approve Picture if( $perm['pictures'] >= 2 ) { ! dbn(__FILE__,__LINE__,"UPDATE "._PICS_." SET approved='".time()."' WHERE id='".$_GET['id']."'"); header("Location: "._AMOD_); }else{ die(); } ! ! }elseif( $_GET['op'] == "remove" ) { ! dbn(__FILE__,__LINE__,"UPDATE "._PICS_." SET approved='' WHERE id='".$_GET['id']."'"); ! header("Location: "._AMOD_); }elseif( $_GET['op'] == "delete" ) { //Operation: Delete Picture |
From: Matt M. <pro...@us...> - 2004-11-05 02:58:11
|
Update of /cvsroot/webschool/webschool/theme/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27490/theme/templates Added Files: admin.resetpass.tpl Log Message: Practically done with password reseting thing --- NEW FILE: admin.resetpass.tpl --- <table summary="Main Table"> <tr> <!-- Begin the menu section on right --> <td valign="top"> {include file="menu.tpl"} </td> <!-- Begin Main Section --> <td valign="top"> {include file="tablehead.tpl" tbtitle="Admin Control Panel"} Resetting Password: <form method="POST" action="admin.php?action=resetpass&username={$smarty.get.username}&newpasscode={$smarty.get.newpasscode}"> <input type="password" name="newpass" id="newpass"> <input type="submit" value="Reset"> </form> {include file="tablefoot.tpl"} </td> </tr> </table> |
From: Matt M. <pro...@us...> - 2004-11-05 02:56:55
|
Update of /cvsroot/webschool/webschool/theme/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27223/theme/templates Modified Files: menu.tpl Log Message: Practically done with password reseting thing Index: menu.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/menu.tpl,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** menu.tpl 30 Oct 2004 22:34:43 -0000 1.4 --- menu.tpl 5 Nov 2004 02:56:46 -0000 1.5 *************** *** 24,32 **** {else} <form method="post" action="admin.php?action=login"> ! <tr><td><span style="font-family: sans; font-size: -1; font-weight: bold; ">Username:</span><br> ! <input size="12" type="text" name="username"><br> <span style="font-size: -1; font-weight: bold; font-family: sans;">Password:</span><br> ! <input size="12" type="password" name="pass"><br> ! <input type="submit" value="Login"></td></tr> </form> {/if} --- 24,38 ---- {else} <form method="post" action="admin.php?action=login"> ! <tr><td> ! <table bgcolor="Teal" width="100%"> ! <tr><td> ! <span style="font-family: sans; font-size: -1; font-weight: bold; ">Username:</span><br> ! <center><input size="12" type="text" name="username"></center><br> <span style="font-size: -1; font-weight: bold; font-family: sans;">Password:</span><br> ! <center><input size="12" type="password" name="pass"></center><br> ! <center><input type="submit" value="Login"></center> ! </td></tr> ! </table> ! </td></tr> </form> {/if} |
From: Matt M. <pro...@us...> - 2004-11-05 02:53:34
|
Update of /cvsroot/webschool/webschool/theme/templates In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25609/theme/templates Modified Files: admin.tpl Log Message: Practically done with password reseting thing Index: admin.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** admin.tpl 27 Oct 2004 00:56:44 -0000 1.1 --- admin.tpl 5 Nov 2004 02:53:16 -0000 1.2 *************** *** 24,31 **** </tr></table> {include file="tablefoot.tpl"} ! ! {if $load != true} ! </td> ! </tr> ! {/if} ! --- 24,26 ---- </tr></table> {include file="tablefoot.tpl"} ! \ No newline at end of file |
From: Matt M. <pro...@us...> - 2004-11-05 02:53:31
|
Update of /cvsroot/webschool/webschool/lang/english In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25609/lang/english Modified Files: admin.lang.php Log Message: Practically done with password reseting thing Index: admin.lang.php =================================================================== RCS file: /cvsroot/webschool/webschool/lang/english/admin.lang.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** admin.lang.php 30 Oct 2004 21:56:59 -0000 1.1 --- admin.lang.php 5 Nov 2004 02:53:15 -0000 1.2 *************** *** 3,7 **** //password recovery $lang['passrecover']['emailsubject'] = "Password Recovery"; ! $lang['passrecover']['emailbody'] = "%s %s, <br /><br /> <p> This is an automatically generated mail message sent in response to your request to reset your password. Your old password will continue working untill you visit this link and reset it. **REVISE THIS MESSAGE**: <a href='admin.php?action=resetpass&newpasscode=%s'>Link</a>"; ?> \ No newline at end of file --- 3,7 ---- //password recovery $lang['passrecover']['emailsubject'] = "Password Recovery"; ! $lang['passrecover']['emailbody'] = "%s %s, <br /><br /> <p> This is an automatically generated mail message sent in response to your request to reset your password. Your old password will continue working untill you visit this link and reset it. **REVISE THIS MESSAGE**: <a href='admin.php?action=resetpass&username=%s&newpasscode=%s'>Link</a>"; ?> \ No newline at end of file |
From: Matt M. <pro...@us...> - 2004-11-05 02:53:31
|
Update of /cvsroot/webschool/webschool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25609 Modified Files: admin.php Log Message: Practically done with password reseting thing Index: admin.php =================================================================== RCS file: /cvsroot/webschool/webschool/admin.php,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** admin.php 1 Nov 2004 23:06:37 -0000 1.27 --- admin.php 5 Nov 2004 02:53:15 -0000 1.28 *************** *** 26,30 **** //guest are not allowed! let them log on, though ! if( GetUser() == 1 && ( $_GET['action'] != "login" && $_GET['action'] != "lostpass" ) ) { $smarty->display("adminlogin.tpl"); include("lib/footer.php"); --- 26,30 ---- //guest are not allowed! let them log on, though ! if( GetUser() == 1 && ( $_GET['action'] != "login" && $_GET['action'] != "lostpass" && $_GET['action'] != "resetpass") ) { $smarty->display("adminlogin.tpl"); include("lib/footer.php"); *************** *** 32,35 **** --- 32,75 ---- } + + //recovering lost password + if( $_GET['action'] == "lostpass" ) { + if( !isset( $_POST['username'] ) ){ + $smarty->display("admin.lostpass.tpl"); + die(); + } else { + $newpasscode = rand(1, 9999999999999); + $newpasscode = sha1($newpasscode); + dbn(__FILE__,__LINE__,"UPDATE "._USERS_." SET newpasscode='".$newpasscode."' WHERE username='".$_POST['username']."'"); + db(__FILE__,__LINE__,"SELECT * FROM "._USERS_." WHERE username='".$_POST['username']."'"); + $passto = dbr(); + mail($passto['email'], $lang['passrecover']['emailsubject'], sprintf($lang['passrecover']['emailbody'], $passto['fname'], $passto['lname'], $_POST['username'], $newpasscode )); + $smarty->assign("recoveredusername", $_POST['username']); + $smarty->display("admin.lostpass.tpl"); + die(); + } + } + + if( $_GET['action'] == "resetpass" ) { + + db(__FILE__,__LINE__,"SELECT * FROM "._USERS_." WHERE username='".$_GET['username']."'"); + $test = dbr(); + if( $test['newpasscode'] == "" || $test['newpasscode'] != $_GET['newpasscode']) { + //die hacker + die(); + } + + if( !isset( $_POST['newpass'] ) ){ + $smarty->display("admin.resetpass.tpl"); + } else { + dbn(__FILE__,__LINE__,"UPDATE "._USERS_." SET password='".md5($_POST['newpass'])."' WHERE username='".$_POST['username']."'"); + } + include("lib/footer.php"); + die(); + } + + + + //User Requests Login if( $_GET['action'] == "login" ) { *************** *** 55,82 **** } - if( $_GET['action'] == "lostpass" ) { - if( !isset( $_POST['username'] ) ){ - $smarty->display("admin.lostpass.tpl"); - die(); - } else { - $newpasscode = rand(1, 9999999999999); - $newpasscode = sha1($newpasscode); - dbn(__FILE__,__LINE__,"UPDATE "._USERS_." SET newpasscode='".$newpasscode."' WHERE username='".$_POST['username']."'"); - db(__FILE__,__LINE__,"SELECT * FROM "._USERS_." WHERE username='".$_POST['username']."'"); - $passto = dbr(); - mail($passto['email'], $lang['passrecover']['emailsubject'], sprintf($lang['passrecover']['emailbody'], $passto['fname'], $passto['lname'], $newpasscode )); - $smarty->assign("recoveredusername", $_POST['username']); - $smarty->display("admin.lostpass.tpl"); - die(); - } - } - - if( $_GET['action'] == "resetpass" ) { - if( !isset( $_POST['newpass'] ) ){ - - } else { - } - } //User Requests Redirect --- 95,99 ---- |
From: Matt M. <pro...@us...> - 2004-11-05 02:10:11
|
Update of /cvsroot/webschool/webschool/mysql In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14014/mysql Modified Files: webschool.sql Log Message: I am back... sorta. Still lots of homework.... Anyway: Updated pictures (almost done) Index: webschool.sql =================================================================== RCS file: /cvsroot/webschool/webschool/mysql/webschool.sql,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** webschool.sql 2 Nov 2004 03:57:39 -0000 1.39 --- webschool.sql 5 Nov 2004 02:09:58 -0000 1.40 *************** *** 134,141 **** `type` varchar(25) NOT NULL default '', `name` varchar(25) NOT NULL default '', ! `approved` tinyint(1) NOT NULL default '0', `views` int(11) NOT NULL default '0', `x` int(11) NOT NULL default '0', `y` int(11) NOT NULL default '0', `filename` varchar(255) NOT NULL default '', PRIMARY KEY (`id`) --- 134,142 ---- `type` varchar(25) NOT NULL default '', `name` varchar(25) NOT NULL default '', ! `approved` varchar(25) NOT NULL default '', `views` int(11) NOT NULL default '0', `x` int(11) NOT NULL default '0', `y` int(11) NOT NULL default '0', + `size` int(11) NOT NULL default '0', `filename` varchar(255) NOT NULL default '', PRIMARY KEY (`id`) |
From: Matt M. <pro...@us...> - 2004-11-05 02:10:11
|
Update of /cvsroot/webschool/webschool/theme/templates/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14014/theme/templates/admin Modified Files: pictures.tpl Log Message: I am back... sorta. Still lots of homework.... Anyway: Updated pictures (almost done) Index: pictures.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/pictures.tpl,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** pictures.tpl 30 Oct 2004 17:49:56 -0000 1.2 --- pictures.tpl 5 Nov 2004 02:09:58 -0000 1.3 *************** *** 11,22 **** <tr class="title"> <td>{$lang.pictures.title}</td> ! {if $perm.pictures >= 2} <td>{$lang.pictures.owner}</td> {/if} ! <td>{$lang.pictures.published}</td> ! <td>{$lang.pictures.updated}</td> ! <td>{$lang.pictures.modify}</td> ! <td>{$lang.pictures.delete}</td> ! <td>{$lang.pictures.remove}</td> </tr> --- 11,26 ---- <tr class="title"> <td>{$lang.pictures.title}</td> ! <td>!ID!</td> ! <td>!View!</td> ! <td>!Views!</td> ! <td>!Description!</td> ! {if $perm.articles >= 2} <td>{$lang.pictures.owner}</td> {/if} ! <td>!Dimensions!</td> ! <td>!Size!</td> ! <td>{$lang.pictures.delete}</td> ! <td>!Remove!</td> ! </tr> *************** *** 25,41 **** <tr> <td>{$active[iv].title}</td> ! {if $perm.pictures >= 2} <td>{$active[iv].owner}</td> {/if} ! <td>{$active[iv].published}</td> ! <td>{$active[iv].lastupdated}</td> ! <td><a href="{$AMOD}&op=modify&htmlarea=1&id={$active[iv].id}">{$lang.pictures.modify_symbol}</a></td> ! <td><a href="{$AMOD}&op=delete&id={$active[iv].id}">{$lang.pictures.delete_symbol}</a></td> ! <td><a href="{$AMOD}&op=remove&id={$active[iv].id}">{$lang.pictures.remove_symbol}</a></td> ! </tr> {/section} ! </table> <br><br> --- 29,49 ---- <tr> <td>{$active[iv].title}</td> ! <td>{$active[iv].id}</td> ! <td><a href="pic.php?id={$active[iv].id}">View</a> ! <td><center>{$active[iv].views}</center></td> ! <td>{$active[iv].description}</td> ! ! {if $perm.pictures >= 2} <td>{$active[iv].owner}</td> {/if} ! <td>{$active[iv].dimensions}</td> ! <td>{$active[iv].size} Kb</td> ! <td><center><a href="{$AMOD}&op=delete&id={$active[iv].id}">{$lang.pictures.delete_symbol}</a></center></td> ! <td><a href="{$AMOD}&op=remove&id={$active[iv].id}">!Remove!</a></td> ! </tr> {/section} ! </table> <br><br> *************** *** 48,59 **** <tr class="title"> <td>{$lang.pictures.title}</td> {if $perm.articles >= 2} <td>{$lang.pictures.owner}</td> {/if} ! <td>{$lang.pictures.submitted}</td> ! <td>{$lang.pictures.updated}</td> ! <td>{$lang.pictures.modify}</td> ! <td>{$lang.pictures.delete}</td> ! <td>{$lang.pictures.remove}</td> </tr> --- 56,69 ---- <tr class="title"> <td>{$lang.pictures.title}</td> + <td>!ID!</td> + <td>!View!</td> + <td>!Description!</td> {if $perm.articles >= 2} <td>{$lang.pictures.owner}</td> {/if} ! <td>Dimensions</td> ! <td>Size</td> ! <td>{$lang.pictures.delete}</td> ! </tr> *************** *** 61,73 **** <tr> ! <td>{$active[iv].title}</td> ! {if $perm.pictures >= 2} <td>{$pending[iv].owner}</td> {/if} ! <td>{$pending[iv].submitted}</td> ! <td>{$pending[iv].lastupdated}</td> ! <td><a href="{$AMOD}&op=modify&htmlarea=1&id={$pending[iv].id}">{$lang.pictures.modify_symbol}</a></td> ! <td><a href="{$AMOD}&op=delete&id={$pending[iv].id}">{$lang.pictures.delete_symbol}</a></td> ! <td><a href="{$AMOD}&op=remove&id={$pending[iv].id}">{$lang.pictures.remove_symbol}</a></td> </tr> --- 71,85 ---- <tr> ! <td>{$pending[iv].title}</td> ! <td>{$pending[iv].id}</td> ! <td><a href="pic.php?id={$pending[iv].id}">View</a> ! <td>{$pending[iv].description}</td> ! ! {if $perm.pictures >= 2} <td>{$pending[iv].owner}</td> {/if} ! <td>{$pending[iv].dimensions}</td> ! <td>{$pending[iv].size} Kb</td> ! <td><center><a href="{$AMOD}&op=delete&id={$pending[iv].id}">{$lang.pictures.delete_symbol}</a></center></td> </tr> *************** *** 76,111 **** </table> ! <br><br> ! ! ! ! <p class="over-title">{$lang.pictures.your} {$lang.pictures.picturesprogress} </p> ! ! <table width=100%> ! <tr class="title"> ! <td>{$lang.pictures.title}</td> ! <td>{$lang.pictures.updated}</td> ! <td>{$lang.pictures.modify}</td> ! <td>{$lang.pictures.delete}</td> ! <td>{$lang.pictures.publish}</td> ! </tr> ! ! {section name=iv loop=$progress} ! ! <tr> ! <td>{$progress[iv].title}</td> ! <td>{$progress[iv].lastupdated}</td> ! <td><a href="{$AMOD}&op=modify&htmlarea=1&id={$progress[iv].id}">{$lang.pictures.modify_symbol}</a></td> ! <td><a href="{$AMOD}&op=delete&id={$progress[iv].id}">{$lang.pictures.delete_symbol}</a></td> ! {if $perm.pictures >= 2} ! <td><a href="{$AMOD}&op=publish&id={$progress[iv].id}">{$lang.pictures.publish_symbol}</a></td> ! {elseif $perm.pictures == 1} ! <td><a href="{$AMOD}&op=submit&id={$progress[iv].id}">{$lang.pictures.submit_symbol}</a></td> ! {/if} ! </tr> ! ! {/section} ! ! </table> <a href="{$AMOD}&op=add&htmlarea=1"> {$lang.pictures.addpictures} </a> {/if} --- 88,92 ---- </table> ! <br><br> <a href="{$AMOD}&op=add&htmlarea=1"> {$lang.pictures.addpictures} </a> {/if} |
From: Matt M. <pro...@us...> - 2004-11-05 02:10:07
|
Update of /cvsroot/webschool/webschool/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14014/admin Modified Files: pictures.php Log Message: I am back... sorta. Still lots of homework.... Anyway: Updated pictures (almost done) Index: pictures.php =================================================================== RCS file: /cvsroot/webschool/webschool/admin/pictures.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** pictures.php 4 Nov 2004 04:03:30 -0000 1.3 --- pictures.php 5 Nov 2004 02:09:57 -0000 1.4 *************** *** 32,82 **** if($perm['pictures'] >= 2) { //admin user ! //No QueryTag } elseif($perm['pictures'] == 1) { //standard user ! //QueryTag is additional information $QueryTag = " AND owner='" . $user['id'] . "'"; } ! ///////////////////////////////// // Get Info FROM Database //////////////////////////////// ! //active pictures ! db2(__FILE__,__LINE__,"SELECT * FROM "._PICS_." WHERE approved!=''" . $QueryTag); ! while( $row = dbr2() ){ ! $active['title'] = $row['prettytitle']; ! $active['owner'] = ResolveUserID($row['owner'], true); ! $active['published'] = date("m/d/y", $row['published']); ! $active['lastupdated'] = date("m/d/y",$row['lastupdate']); ! $active['id'] = $row['id']; ! $smarty->append("active", $active); ! } ! ! //pictures pending ! db(__FILE__,__LINE__,"SELECT * FROM "._PICS_." WHERE approved='' " . $QueryTag); ! while( $row = dbr() ){ ! $pending['title'] = $row['prettytitle']; ! $pending['owner'] = ResolveUserID($row['owner'], true); ! $pending['published'] = date("m/d/y", $row['published']); ! $pending['submitted'] = date("m/d/y", $row['submitted']); ! $pending['lastupdated'] = date("m/d/y",$row['lastupdate']); ! $pending['id'] = $row['id']; ! $smarty->append("pending", $pending); ! } ! ! //pictures in progress ! db3(__FILE__,__LINE__,"SELECT * FROM "._PICS_." WHERE approved='' && owner='".$user['id']."'"); ! while( $row = dbr3() ){ ! $progress['title'] = $row['prettytitle']; ! $progress['owner'] = ResolveUserID($row['owner'], true); ! $progress['published'] = date("m/d/y", $row['published']); ! $progress['lastupdated'] = date("m/d/y",$row['lastupdate']); ! $progress['id'] = $row['id']; ! $smarty->append("progress", $progress); ! } ! ////////////////////////////// // My favorite and yours: --- 32,75 ---- if($perm['pictures'] >= 2) { //admin user ! //No QueryTag } elseif($perm['pictures'] == 1) { //standard user ! //QueryTag is additional information $QueryTag = " AND owner='" . $user['id'] . "'"; } ! ///////////////////////////////// // Get Info FROM Database //////////////////////////////// ! //active pictures ! db2(__FILE__,__LINE__,"SELECT * FROM "._PICS_." WHERE approved!=''" . $QueryTag); ! while( $row = dbr2() ){ ! $active['title'] = $row['name']; ! $active['owner'] = ResolveUserID($row['owner'], false); ! $active['approved'] = date("m/d/y", $row['approved']); ! $active['views'] = $row['views']; ! $active['description'] = substr($row['description'],0,25); ! $active['dimensions'] = $row['x']."x".$row['y']; ! $active['size'] = round($row['size']/1024,1); ! $active['id'] = $row['id']; ! $smarty->append("active", $active); ! } ! ! //pictures pending ! db(__FILE__,__LINE__,"SELECT * FROM "._PICS_." WHERE approved='' " . $QueryTag); ! while( $row = dbr() ){ ! $pending['title'] = $row['name']; ! $pending['owner'] = ResolveUserID($row['owner'], false); ! $pending['dimensions'] = $row['x']."x".$row['y']; ! $pending['description'] = substr($row['description'],0,25); ! $pending['size'] = round($row['size']/1024,1); ! $pending['id'] = $row['id']; ! $smarty->append("pending", $pending); ! } ! ! ////////////////////////////// // My favorite and yours: *************** *** 84,97 **** // what they want to do!!! ///////////////////////////// ! if( $_GET['op'] == "add" ){ ! //Operation: Add Picture if( !isset($_GET['upload']) ){ $smarty->display("admin/pictures.add.tpl"); } else { //make sure the picture follows the rules ! //if ( $_FILES['pic']['size'] <= $config['pic_maxsize'] && trim($_POST['picname']) != "" && $_FILES['pic']['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['picname']."-".rand(111,999999); //copy the file to the filename we just made copy($_FILES['pic']['tmp_name'], _fileroot_."images/".$filename); --- 77,90 ---- // what they want to do!!! ///////////////////////////// ! if( $_GET['op'] == "add" ){ ! //Operation: Add Picture if( !isset($_GET['upload']) ){ $smarty->display("admin/pictures.add.tpl"); } else { //make sure the picture follows the rules ! if ( $_FILES['pic']['size'] <= $config['pic_maxsize'] && trim($_POST['picname']) != "" && $_FILES['pic']['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['picname']."-".rand(111,9999999); //copy the file to the filename we just made copy($_FILES['pic']['tmp_name'], _fileroot_."images/".$filename); *************** *** 100,119 **** $content .= "<br> Upload Successful"; //update db ! dbn(__FILE__,__LINE__,"INSERT INTO "._PICS_." 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]."'"); //Header("Location: "._AMOD_); ! //} else { ! // error(__FILE__,__LINE__, "Upload unsucessful", "actioncanceled"); ! // } } ! }elseif( $_GET['op'] == "approve" ) { ! //Operation: Approve Picture if( $perm['pictures'] >= 2 ) { dbn(__FILE__,__LINE__,"UPDATE "._PICS_." SET approved='1' WHERE id='".$_GET['id']."'"); header("Location: "._AMOD_); }else{ die(); } ! }elseif( $_GET['op'] == "delete" ) { ! //Operation: Delete Picture if( $perm['pictures'] >= 2 ) { db(__FILE__,__LINE__,"SELECT filename FROM "._PICS_." WHERE id='".$_GET['id']."'"); --- 93,112 ---- $content .= "<br> Upload Successful"; //update db ! dbn(__FILE__,__LINE__,"INSERT INTO "._PICS_." 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 { ! error(__FILE__,__LINE__, "Upload unsucessful", "actioncanceled"); ! } } ! }elseif( $_GET['op'] == "approve" ) { ! //Operation: Approve Picture if( $perm['pictures'] >= 2 ) { dbn(__FILE__,__LINE__,"UPDATE "._PICS_." SET approved='1' WHERE id='".$_GET['id']."'"); header("Location: "._AMOD_); }else{ die(); } ! }elseif( $_GET['op'] == "delete" ) { ! //Operation: Delete Picture if( $perm['pictures'] >= 2 ) { db(__FILE__,__LINE__,"SELECT filename FROM "._PICS_." WHERE id='".$_GET['id']."'"); *************** *** 121,125 **** unlink(_fileroot_."images/".$res['filename']); dbn(__FILE__,__LINE__,"DELETE FROM "._PICS_." WHERE id='".$_GET['id']."'"); ! header("Location: "._AMOD_); } --- 114,118 ---- unlink(_fileroot_."images/".$res['filename']); dbn(__FILE__,__LINE__,"DELETE FROM "._PICS_." WHERE id='".$_GET['id']."'"); ! header("Location: "._AMOD_); } |
From: Matt M. <pro...@us...> - 2004-11-04 04:03:43
|
Update of /cvsroot/webschool/webschool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25215 Modified Files: pic.php Log Message: Fixed bug in pic.php Supported looking pictures up by username and pic name instead of just id (Which would make people upset) Index: pic.php =================================================================== RCS file: /cvsroot/webschool/webschool/pic.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** pic.php 1 Nov 2004 01:34:28 -0000 1.12 --- pic.php 4 Nov 2004 04:03:31 -0000 1.13 *************** *** 22,26 **** require("lib/auth.php"); ! if(isset( $_GET['id'] ) ){ db(__FILE__,__LINE__,"SELECT * FROM "._PICS_." WHERE id=".$_GET['id'].""); $res = dbr(); --- 22,26 ---- require("lib/auth.php"); ! if( isset( $_GET['id'] ) ) { db(__FILE__,__LINE__,"SELECT * FROM "._PICS_." WHERE id=".$_GET['id'].""); $res = dbr(); *************** *** 51,53 **** --- 51,87 ---- } + if( isset($_GET['uname']) && isset($_GET['picname']) ){ + + db(__FILE__, __LINE__, "SELECT id FROM "._USERS_." WHERE username='".$_GET['uname']."' LIMIT 1"); + $userid = dbr(); + + db(__FILE__,__LINE__,"SELECT * FROM "._PICS_." WHERE owner='".$userid['id']."' & name='".$_GET['picname']."'"); + $res = dbr(); + + if($res['approved'] == 1 || $perm['news'] == 2 || $res['owner'] == $user['id']) { + + + //construct filepath + $filepath = _fileroot_."images/"; + + if( file_exists($filepath."".$res['filename']) ) { + //send the file type header + header("Content-Type: " . $res['type']); + $handle = fopen($filepath."".$res['filename'], "r"); + echo fread( $handle, filesize($filepath."".$res['filename']) ); + fclose($handle); + dbn(__FILE__,__LINE__,"UPDATE "._PICS_." SET views= views+1 WHERE id='".$_GET['id']."'"); + } else { + header("Content-Type: image/png"); + $handle = fopen(_fileroot_."images/picnotfound.png","r"); + echo fread( $handle, filesize($filepath."".$res['filename']) ); + fclose($handle); + } + } else { + header("Content-Type: image/png"); + $handle = fopen(_fileroot_."images/picnotfound.png","r"); + echo fread( $handle, filesize(_fileroot_."images/picnotfound.png") ); + fclose($handle); + } + } ?> \ No newline at end of file |
From: Matt M. <pro...@us...> - 2004-11-04 04:03:43
|
Update of /cvsroot/webschool/webschool/theme/templates/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25215/theme/templates/admin Modified Files: pictures.add.tpl Log Message: Fixed bug in pic.php Supported looking pictures up by username and pic name instead of just id (Which would make people upset) Index: pictures.add.tpl =================================================================== RCS file: /cvsroot/webschool/webschool/theme/templates/admin/pictures.add.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** pictures.add.tpl 27 Oct 2004 00:56:44 -0000 1.1 --- pictures.add.tpl 4 Nov 2004 04:03:32 -0000 1.2 *************** *** 7,15 **** <hr> ! <form action="{$AMOD}&op=add&upload=1" method=\"post\" enctype=\"multipart/form-data\"> ! <br>Picture Name:<input type='text' name="picname" /><br> ! <br>Description: <br> <textarea name="descrip" cols="55" rows="4" /> </textarea> ! <br>Picture: <input type="file' name="pic" /> ! <br><button type=submit>Submit</button> ! {include file="tablefoot.tpl"} \ No newline at end of file --- 7,15 ---- <hr> ! <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> {include file="tablefoot.tpl"} \ No newline at end of file |
From: Matt M. <pro...@us...> - 2004-11-04 04:03:43
|
Update of /cvsroot/webschool/webschool/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25215/admin Modified Files: pictures.php Log Message: Fixed bug in pic.php Supported looking pictures up by username and pic name instead of just id (Which would make people upset) Index: pictures.php =================================================================== RCS file: /cvsroot/webschool/webschool/admin/pictures.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** pictures.php 28 Oct 2004 16:34:34 -0000 1.2 --- pictures.php 4 Nov 2004 04:03:30 -0000 1.3 *************** *** 91,97 **** } else { //make sure the picture follows the rules ! if ( $_FILES['pic']['size'] <= $config['pic_maxsize'] && trim($_POST['picname']) != "" && $_FILES['pic']['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 = $_POST['picname']."-".rand(111,999999); //copy the file to the filename we just made copy($_FILES['pic']['tmp_name'], _fileroot_."images/".$filename); --- 91,97 ---- } else { //make sure the picture follows the rules ! //if ( $_FILES['pic']['size'] <= $config['pic_maxsize'] && trim($_POST['picname']) != "" && $_FILES['pic']['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['picname']."-".rand(111,999999); //copy the file to the filename we just made copy($_FILES['pic']['tmp_name'], _fileroot_."images/".$filename); *************** *** 101,108 **** //update db dbn(__FILE__,__LINE__,"INSERT INTO "._PICS_." 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]."'"); ! Header("Location: "._AMOD_); ! } else { ! $content .= "<br><hr><br>Upload unsuccesful. <a href=\""._AMOD_."\">Back</a>"; ! } } --- 101,108 ---- //update db dbn(__FILE__,__LINE__,"INSERT INTO "._PICS_." 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]."'"); ! //Header("Location: "._AMOD_); ! //} else { ! // error(__FILE__,__LINE__, "Upload unsucessful", "actioncanceled"); ! // } } |
From: Matt M. <pro...@us...> - 2004-11-02 04:29:33
|
Update of /cvsroot/webschool/webschool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9973 Modified Files: CHANGELOG.txt INSTALL.txt README.txt TODO.txt Log Message: Um, nothing major. Stupid little update. Index: CHANGELOG.txt =================================================================== RCS file: /cvsroot/webschool/webschool/CHANGELOG.txt,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** CHANGELOG.txt 2 Oct 2004 18:19:00 -0000 1.12 --- CHANGELOG.txt 2 Nov 2004 04:29:24 -0000 1.13 *************** *** 1,27 **** ! Friday, October 2, 2004 ! -Keep forgetting this is here... ! ! Saturday, September 18, 2004 ! -Lots of changes, forgot about this file. Forget all the changes before today and after last update ! -Articles aMod is now secure/stable!!!! ! ! Thursday, August 26, 2004 ! -Update permissions aMod ! -Started work on Sports mod (finally) ! ! Wednesday, August 25, 2004 ! -Finally got around to adding pics ! -Still putting off the sports module (going to be a lot of work...) ! -Updated menu module ! ! Tuesday, August 24, 2004 ! -Bunch of optimizations and some stuff ! ! Sunday, August 22, 2004 ! -Took a break from adding new stuff and started changing things to comply with my new aMod standard ! -Went through files and started adding extensive comments ! ! Saturday, August 21, 2004 ! -Added Pages aMod. Mod for pages comming! ! -Added Articles Amod. This is basically for teachers and administration to publish information wheras news is for students and their teachers to publish news ! -Reactivated changelog \ No newline at end of file --- 1 ---- ! Largely inactive. \ No newline at end of file Index: TODO.txt =================================================================== RCS file: /cvsroot/webschool/webschool/TODO.txt,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** TODO.txt 28 Oct 2004 16:34:10 -0000 1.10 --- TODO.txt 2 Nov 2004 04:29:24 -0000 1.11 *************** *** 1 **** ! See Roadmap --- 1 ---- ! See docs/Roadmap.html Index: INSTALL.txt =================================================================== RCS file: /cvsroot/webschool/webschool/INSTALL.txt,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** INSTALL.txt 19 Oct 2004 22:55:28 -0000 1.7 --- INSTALL.txt 2 Nov 2004 04:29:24 -0000 1.8 *************** *** 1,10 **** ! Built in installer. No upgrade support yet. Will have to manually do it Upgrade: ========= ! Open mysql/webschool.sql ! Find differencs between it and your database (Structure only) ! Apply Changes ! Copy all files ! Modify config.php ! Done \ No newline at end of file --- 1,9 ---- ! ! Install: ! ========= ! Built in installer. ! Upgrade: ========= ! Not supported. \ No newline at end of file Index: README.txt =================================================================== RCS file: /cvsroot/webschool/webschool/README.txt,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** README.txt 21 Aug 2004 17:15:05 -0000 1.4 --- README.txt 2 Nov 2004 04:29:24 -0000 1.5 *************** *** 1 **** ! Docs relocated to docs directory \ No newline at end of file --- 1 ---- ! Docs relocated to docs/ directory \ No newline at end of file |
From: jsvoyager <jsv...@us...> - 2004-11-02 03:57:49
|
Update of /cvsroot/webschool/webschool/theme In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4542/theme Modified Files: theme.css Log Message: Started Academia aMod...didn't get that far. If you feel like doing some work contact me AIM: LforLutheran Index: theme.css =================================================================== RCS file: /cvsroot/webschool/webschool/theme/theme.css,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** theme.css 31 Oct 2004 19:21:10 -0000 1.1 --- theme.css 2 Nov 2004 03:57:40 -0000 1.2 *************** *** 124,126 **** .field-title { font-family: sans-serif; ! } --- 124,126 ---- .field-title { font-family: sans-serif; ! } \ No newline at end of file |
From: jsvoyager <jsv...@us...> - 2004-11-02 03:57:49
|
Update of /cvsroot/webschool/webschool/theme/templates/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4542/theme/templates/admin Added Files: academia.addclass.tpl academia.tpl Log Message: Started Academia aMod...didn't get that far. If you feel like doing some work contact me AIM: LforLutheran --- NEW FILE: academia.tpl --- {include file="tablehead.tpl" tbtitle=$lang.aca.academia} {if $perm.academia < 1} {$lang.auth_denied} {else} <!-- Classes --> <p class="over-title">{if $perm.academia <= 1}{$lang.aca.your}{/if}{$lang.aca.classes}</p> <table cellpadding="0" cellspacing="0" border="0" width="100%"> <tr class="title"> <td>{$lang.aca.class_name}</td> {if $perm.academia >= 2} <td>{$lang.aca.teacher}</td> {/if} {if $perm.academia >= 3} <td width="75">{$lang.aca.modify}</td> <td width="75">{$lang.aca.delete}</td> {/if} <td>{$lang.aca.clear_assign}</td> <td width="100">{$lang.aca.clear_files}</td> </tr> {section name=i loop=$classes} <tr> <td class="field-title">{$classes[i].name}</td> <td>{$classes[i].teacher}</td> {if $perm.academia >= 3} <td><a href="{$AMOD}&op=modify&aid={$classes[i].aid}">{$lang.aca.modify_token}</a></td> <td><a href="{$AMOD}&op=delete&aid={$classes[i].aid}">{$lang.aca.delete_token}</a></td> {/if} <td><a href="{$AMOD}&op=clearassign&aid={$classes[i].aid}">{$lang.aca.clear_assign_token}</a></td> <td><a href="{$AMOD}&op=clearfiles&aid={$classes[i].aid}">{$lang.aca.clear_files_token}</td> </tr> {/section} {* Final "gloabals" section *} <tr bgcolor="#E6E6FA"> {if $perm.academia >= 3} <td colspan="4"><a href="{$AMOD}&op=addclass">{$lang.aca.add_class}...</a></td> <td><a href="{$AMOD}&op=clearassign">{$lang.aca.clear_all_assign}</a></td> <td><a href="{$AMOD}&op=clearfiles">{$lang.aca.clear_all_files}</a></td> {elseif $perm.academia == 2} <td colspan="2"> </td> <td><a href="{$AMOD}&op=clearassign">{$lang.aca.clear_all_assign}</a></td> <td><a href="{$AMOD}&op=clearfiles">{$lang.aca.clear_all_files}</a></td> {elseif $perm.academia <= 1} <td> </td> <td><a href="{$AMOD}&op=clearassign">{$lang.aca.clear_all_assign}</a></td> <td><a href="{$AMOD}&op=clearfiles">{$lang.aca.clear_all_files}</a></td> {/if} </tr> </table> <!-- Assignments --> <!-- Submited Files --> {/if} {include file="tablefoot.tpl"} --- NEW FILE: academia.addclass.tpl --- {include file="tablehead.tpl" tbtitle=$lang.aca.academia} {if $perm.academia < 3} {$lang.auth_denied} {else} I really did plan to work on this... {/if} {include file="tablefoot.tpl"} |
From: jsvoyager <jsv...@us...> - 2004-11-02 03:57:49
|
Update of /cvsroot/webschool/webschool/lang/english/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4542/lang/english/admin Added Files: academia.lang.php Log Message: Started Academia aMod...didn't get that far. If you feel like doing some work contact me AIM: LforLutheran --- NEW FILE: academia.lang.php --- <? $lang['aca']['academia'] = "Academia"; $lang['aca']['class_name'] = "Class's Name"; $lang['aca']['teacher'] = "Instructor"; $lang['aca']['grades'] = "Grades"; $lang['aca']['credits'] = "Credits"; $lang['aca']['desc'] = "Description"; $lang['aca']['modify'] = "Modify"; $lang['aca']['modify_token'] = "Modify"; $lang['aca']['delete'] = "Delete"; $lang['aca']['delete_token'] = "X"; $lang['aca']['clear_assign'] = "Clear Assignments"; $lang['aca']['clear_assign_token'] = "Clear"; $lang['aca']['clear_files'] = "Clear Files"; $lang['aca']['clear_files_token'] = "Clear"; $lang['aca']['your'] = "Your"; $lang['aca']['classes'] = "Classes"; $lang['aca']['add_class'] = "Add Class"; $lang['aca']['clear_all_assign'] = "Clear All Assignments"; $lang['aca']['clear_all_files'] = "Clear All Files"; ?> |
From: jsvoyager <jsv...@us...> - 2004-11-02 03:57:49
|
Update of /cvsroot/webschool/webschool/mods/StudentCenter In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4542/mods/StudentCenter Modified Files: index.php Log Message: Started Academia aMod...didn't get that far. If you feel like doing some work contact me AIM: LforLutheran Index: index.php =================================================================== RCS file: /cvsroot/webschool/webschool/mods/StudentCenter/index.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** index.php 1 Nov 2004 03:33:49 -0000 1.2 --- index.php 2 Nov 2004 03:57:39 -0000 1.3 *************** *** 33,37 **** if (isset($_POST['period']) && isset($_POST['aid'])){ //Add the given class to their schedule ! $query = "INSERT INTO "._STUD_ACADEMIA_." (uid,aid,period) VALUES ('" . $user['id'] . "','" . $_REQUEST['aid'] . "','" . $_REQUEST['period'] . "')"; dbn(__FILE__,__LINE__, $query); --- 33,37 ---- if (isset($_POST['period']) && isset($_POST['aid'])){ //Add the given class to their schedule ! $query = "INSERT INTO "._USER_ACADEMIA_." (uid,aid,period) VALUES ('" . $user['id'] . "','" . $_REQUEST['aid'] . "','" . $_REQUEST['period'] . "')"; dbn(__FILE__,__LINE__, $query); |
From: jsvoyager <jsv...@us...> - 2004-11-02 03:57:49
|
Update of /cvsroot/webschool/webschool/mysql In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4542/mysql Modified Files: webschool.sql Log Message: Started Academia aMod...didn't get that far. If you feel like doing some work contact me AIM: LforLutheran Index: webschool.sql =================================================================== RCS file: /cvsroot/webschool/webschool/mysql/webschool.sql,v retrieving revision 1.38 retrieving revision 1.39 diff -C2 -d -r1.38 -r1.39 *** webschool.sql 2 Nov 2004 01:53:46 -0000 1.38 --- webschool.sql 2 Nov 2004 03:57:39 -0000 1.39 *************** *** 245,249 **** PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`) ! ) TYPE=MyISAM AUTO_INCREMENT=10 ; INSERT INTO `table_amods` VALUES (1, 'News', 'The News aModule', 'news', 'news.php', ''); --- 245,249 ---- PRIMARY KEY (`id`), UNIQUE KEY `id` (`id`) ! ) TYPE=MyISAM AUTO_INCREMENT=11 ; INSERT INTO `table_amods` VALUES (1, 'News', 'The News aModule', 'news', 'news.php', ''); *************** *** 257,261 **** INSERT INTO `table_amods` VALUES (9, 'Sports', 'The Sports aModule', 'sports', 'sports.php', ''); INSERT INTO `table_amods` VALUES (10, 'Config', 'The configuration editor', 'config', 'config.php', ''); ! DROP TABLE IF EXISTS `table_mods`; --- 257,261 ---- INSERT INTO `table_amods` VALUES (9, 'Sports', 'The Sports aModule', 'sports', 'sports.php', ''); INSERT INTO `table_amods` VALUES (10, 'Config', 'The configuration editor', 'config', 'config.php', ''); ! INSERT INTO `table_amods` VALUES (11, 'Academia', 'The Academia Editor', 'academia', 'academia.php', ''); DROP TABLE IF EXISTS `table_mods`; |
From: jsvoyager <jsv...@us...> - 2004-11-02 03:57:48
|
Update of /cvsroot/webschool/webschool/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4542/admin Added Files: academia.php Log Message: Started Academia aMod...didn't get that far. If you feel like doing some work contact me AIM: LforLutheran --- NEW FILE: academia.php --- <?PHP /* Webschool Copyright (C) 2004 ProgrammerMatt Developers & Contributors: ProgrammerMatt Pro...@bl... jsvoyager Gen...@gm... This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. (license.txt) */ //we don't want unwanted veiwing! if( !defined("_AUTHLOADED_") ) { die(); } define("_AMOD_", "admin.php?amod=Academia"); $smarty->assign("AMOD", "admin.php?amod=Academia"); include(_fileroot_."/lang/".$config['lang']."/admin/academia.lang.php"); $smarty->assign("lang", $lang); if ($perm['academia'] >= 0){ //////////////////////////// // Once again, here we are // figuring out what to // do... ////////////////////////// if ($_GET['op'] == "addclass"){ if (isset($_POST['classname'])){ //Add Class to DB }else{ //Show the add class page $smarty->display("admin/academia.addclass.tpl"); } } //+++Logic for academia.tpl+++ //Get all classes from database $query = "SELECT * FROM "._ACADEMIA_; if ($perm['academia'] <= 1){ $query .= " WHERE id='" . $user[id] . "'"; } db3(__FILE__,__LINE__,$query); $i = 0; while ($class = dbr3()){ $classes[$i]['aid'] = $class['id']; $classes[$i]['name'] = $class['classname']; $name = ResolveUserID($class['instructor'], true); $name = $name['fname'] . " " . $name['lname']; $classes[$i]['teacher'] = $name; $i++; } $smarty->assign("classes", $classes); } $smarty->display("admin/academia.tpl"); ?> |
From: Matt M. <pro...@us...> - 2004-11-02 01:53:57
|
Update of /cvsroot/webschool/webschool/install In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14269/install Modified Files: step3.php Log Message: Database Table fix Index: step3.php =================================================================== RCS file: /cvsroot/webschool/webschool/install/step3.php,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** step3.php 31 Oct 2004 01:42:23 -0000 1.20 --- step3.php 2 Nov 2004 01:53:46 -0000 1.21 *************** *** 244,248 **** $query = eregi_replace("table_mods", $_REQUEST['dbprefix']."mods", $query); $query = eregi_replace("table_assignments", $_REQUEST['dbprefix']."assignments", $query); ! $query = eregi_replace("table_stud_academia", $_REQUEST['dbprefix']."stud_academia", $query); return $query; } --- 244,248 ---- $query = eregi_replace("table_mods", $_REQUEST['dbprefix']."mods", $query); $query = eregi_replace("table_assignments", $_REQUEST['dbprefix']."assignments", $query); ! $query = eregi_replace("table_user_academia", $_REQUEST['dbprefix']."user_academia", $query); return $query; } |
From: Matt M. <pro...@us...> - 2004-11-02 01:53:57
|
Update of /cvsroot/webschool/webschool/mysql In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv14269/mysql Modified Files: webschool.sql Log Message: Database Table fix Index: webschool.sql =================================================================== RCS file: /cvsroot/webschool/webschool/mysql/webschool.sql,v retrieving revision 1.37 retrieving revision 1.38 diff -C2 -d -r1.37 -r1.38 *** webschool.sql 1 Nov 2004 23:06:40 -0000 1.37 --- webschool.sql 2 Nov 2004 01:53:46 -0000 1.38 *************** *** 291,295 **** DROP TABLE IF EXISTS `table_user_academia`; ! CREATE TABLE `table_stud_academia` ( `uid` int(11) NOT NULL default '0', `aid` int(11) NOT NULL default '0', --- 291,295 ---- DROP TABLE IF EXISTS `table_user_academia`; ! CREATE TABLE `table_user_academia` ( `uid` int(11) NOT NULL default '0', `aid` int(11) NOT NULL default '0', *************** *** 299,301 **** INSERT INTO `table_user_academia` VALUES (3, 1, '1'); INSERT INTO `table_user_academia` VALUES (3, 2, '2'); ! INSERT INTO `table_user_academia` VALUES (3, 3, '3'); \ No newline at end of file --- 299,301 ---- INSERT INTO `table_user_academia` VALUES (3, 1, '1'); INSERT INTO `table_user_academia` VALUES (3, 2, '2'); ! INSERT INTO `table_user_academia` VALUES (3, 3, '3'); |