wuug-cvs Mailing List for wuug_engine (Page 2)
Status: Inactive
Brought to you by:
loginx
You can subscribe to this list here.
2003 |
Jan
(29) |
Feb
(25) |
Mar
(2) |
Apr
(4) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|
From: <lo...@us...> - 2003-02-15 19:50:18
|
Update of /cvsroot/wuug/wuug/i18n/en In directory sc8-pr-cvs1:/tmp/cvs-serv5758/i18n/en Log Message: Directory /cvsroot/wuug/wuug/i18n/en added to the repository |
From: <lo...@us...> - 2003-02-15 19:50:18
|
Update of /cvsroot/wuug/wuug/i18n/fr In directory sc8-pr-cvs1:/tmp/cvs-serv5758/i18n/fr Log Message: Directory /cvsroot/wuug/wuug/i18n/fr added to the repository |
From: <lo...@us...> - 2003-02-15 19:49:52
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv5549 Modified Files: news.php Log Message: *NEW* i18n support - templating support Index: news.php =================================================================== RCS file: /cvsroot/wuug/wuug/news.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** news.php 15 Feb 2003 19:46:51 -0000 1.6 --- news.php 15 Feb 2003 19:49:49 -0000 1.7 *************** *** 6,10 **** $tpl = $cf[tpl_dir]; $template = new Parser; - $template->set("txt", "Hello!!!!!"); print $template->parse("$tpl/intro.tpl"); ?><center><img src="news.png" align="center" border="0" align="news"></center><br><?php --- 6,9 ---- |
From: <lo...@us...> - 2003-02-15 19:47:27
|
Update of /cvsroot/wuug/wuug/i18n In directory sc8-pr-cvs1:/tmp/cvs-serv4597/i18n Log Message: Directory /cvsroot/wuug/wuug/i18n added to the repository |
From: <lo...@us...> - 2003-02-15 19:46:54
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv4275 Modified Files: config.inc.php confirm.php news.php right.php wuug.class.php Log Message: *NEW* i18n support - templating support Index: config.inc.php =================================================================== RCS file: /cvsroot/wuug/wuug/config.inc.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** config.inc.php 14 Feb 2003 18:51:47 -0000 1.8 --- config.inc.php 15 Feb 2003 19:46:51 -0000 1.9 *************** *** 5,8 **** --- 5,14 ---- define("ROOT", dirname(__FILE__)); + // App Default language + // Possible choices are: + // - en - fr - es - it - redneck + $cf[lang] = "en"; + $cf[tpl_dir] = ROOT . "/i18n/" . $cf[lang] . "/templates"; + // how many news to display at a time (rest will go to archives) $cf[news_numb] = 5; *************** *** 73,76 **** --- 79,83 ---- require_once("DB.php" ); require_once("wuug.class.php"); + require_once("i18n/" . $cf[lang] . "/messages.inc.php"); Index: confirm.php =================================================================== RCS file: /cvsroot/wuug/wuug/confirm.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** confirm.php 7 Jan 2003 02:19:14 -0000 1.1.1.1 --- confirm.php 15 Feb 2003 19:46:51 -0000 1.2 *************** *** 33,37 **** Hi there " . $user_data[first_name] . ", ! You have just confirmed your request to join the Windsor Unix Users Group, thank you very much for taking the time to register, it means a lot to us. --- 33,39 ---- Hi there " . $user_data[first_name] . ", ! Please read the whole message, this is important. ! ! You have just confirmed your *REQUEST* to join the Windsor Unix Users Group, thank you very much for taking the time to register, it means a lot to us. *************** *** 49,53 **** mail($user_data[email], ! "WUUG - confirmation", $confirm_message, "From: WUUG <ph...@wu...>"); --- 51,55 ---- mail($user_data[email], ! "Confirmation", $confirm_message, "From: WUUG <ph...@wu...>"); Index: news.php =================================================================== RCS file: /cvsroot/wuug/wuug/news.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** news.php 14 Feb 2003 18:51:47 -0000 1.5 --- news.php 15 Feb 2003 19:46:51 -0000 1.6 *************** *** 4,20 **** require_once("config.inc.php"); ! ! ! ?> ! <!-- This is hardcoded, we'll get rid of it... --> ! <b><center>Welcome to the Windsor Unix Users Group</center></b><br> ! For more information about us, <a href="?content=faqs">click here</a>.<br> ! If you would like to join, <a href="?content=join">click here</a>.<br> ! Our meetings usually take place on the second <b>Thursday</b> of the month<br> ! at our new location - St Clair College - Room 76 (Basement) around 7:00pm<br> ! <center><img src="news.png" align="center" border="0" align="news"></center><br> ! ! ! <?php $events = new NewsClass(); --- 4,12 ---- require_once("config.inc.php"); ! $tpl = $cf[tpl_dir]; ! $template = new Parser; ! $template->set("txt", "Hello!!!!!"); ! print $template->parse("$tpl/intro.tpl"); ! ?><center><img src="news.png" align="center" border="0" align="news"></center><br><?php $events = new NewsClass(); Index: right.php =================================================================== RCS file: /cvsroot/wuug/wuug/right.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** right.php 15 Jan 2003 22:59:57 -0000 1.5 --- right.php 15 Feb 2003 19:46:51 -0000 1.6 *************** *** 53,61 **** <tr> <td>Login</td> ! <td><input type="text" class="wuug_txtbox" name="wuug_login" size="15"></td> </tr> <tr> <td>Pass</td> ! <td><input type="password" class="wuug_txtbox" name="wuug_password" size="15"></td> </tr> <tr> --- 53,61 ---- <tr> <td>Login</td> ! <td><input type="text" class="wuug_txtbox" name="wuug_login" size="10"></td> </tr> <tr> <td>Pass</td> ! <td><input type="password" class="wuug_txtbox" name="wuug_password" size="10"></td> </tr> <tr> *************** *** 64,67 **** --- 64,68 ---- </table> </form> + <br> <?php } ?> <!--------------------------- Search engine table ----------------------------> *************** *** 88,92 **** <!--------------------------- Poll table -------------------------------------> <? if (($_POST[wuug_poll]) || ($_COOKIE[wuug_poll])) { ?> - <table width="94%" align="center" bgcolor="#eeeeee" style="border-style: inset; border-width: 3"> <tr> --- 89,92 ---- *************** *** 109,113 **** if ($poll_info[question]) { ?> - <form method="POST" action="<?=$cf[top_level_url]?>/?content=vote"> <table width="94%" align="center" bgcolor="#eeeeee" style="border-style: inset; border-width: 3"> --- 109,112 ---- Index: wuug.class.php =================================================================== RCS file: /cvsroot/wuug/wuug/wuug.class.php,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** wuug.class.php 30 Jan 2003 07:17:33 -0000 1.17 --- wuug.class.php 15 Feb 2003 19:46:51 -0000 1.18 *************** *** 9,41 **** define("ANY" , 4); class Poll { ! var $row_id; ! var $question; ! var $c1_text; ! var $c2_text; ! var $c3_text; ! var $c4_text; ! var $c5_text; [...1753 lines suppressed...] ! return($ret_colour); ! } ! ! function send_header() { ! header("Content-type: image/png"); ! } ! ! function fillrectangle($x1, $y1, $x2, $y2, $colour) { ! imagefilledrectangle($this->handle, $x1, $y1, $x2, $y2, $colour); ! } ! ! function destroy() { ! imagedestroy($this->handle); ! } ! ! function center_text($text, $color) { ! imagestring($this->handle, 3, (($this->width/2)-imagefontwidth(3)/2), (($this->height/2)-imagefontheight(3)/2), "$text", $color); ! } } |
From: <lo...@us...> - 2003-02-14 18:51:51
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv31912 Modified Files: config.inc.php news.php Log Message: Changed location Index: config.inc.php =================================================================== RCS file: /cvsroot/wuug/wuug/config.inc.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** config.inc.php 15 Jan 2003 03:44:21 -0000 1.7 --- config.inc.php 14 Feb 2003 18:51:47 -0000 1.8 *************** *** 45,49 **** $cf[default_home] = "news.php"; // App's Top level URL (Very important) - Will soon be obsolete ; ! $cf[top_level_url] = "http://192.168.1.100/wuug" ; $cf[app_version] = "0.1-cvs" ; $cf[option_marker] = "<font color=\"#ff0000\"><B>*</B></font>" ; --- 45,49 ---- $cf[default_home] = "news.php"; // App's Top level URL (Very important) - Will soon be obsolete ; ! $cf[top_level_url] = "http://www.linkadmin.org/wuug" ; $cf[app_version] = "0.1-cvs" ; $cf[option_marker] = "<font color=\"#ff0000\"><B>*</B></font>" ; Index: news.php =================================================================== RCS file: /cvsroot/wuug/wuug/news.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** news.php 14 Jan 2003 20:37:28 -0000 1.4 --- news.php 14 Feb 2003 18:51:47 -0000 1.5 *************** *** 11,16 **** For more information about us, <a href="?content=faqs">click here</a>.<br> If you would like to join, <a href="?content=join">click here</a>.<br> ! Our meetings usually take place on the second wednesday of the month<br> ! at our usual location at University of Windsor (Essex Hall).<br> <center><img src="news.png" align="center" border="0" align="news"></center><br> --- 11,16 ---- For more information about us, <a href="?content=faqs">click here</a>.<br> If you would like to join, <a href="?content=join">click here</a>.<br> ! Our meetings usually take place on the second <b>Thursday</b> of the month<br> ! at our new location - St Clair College - Room 76 (Basement) around 7:00pm<br> <center><img src="news.png" align="center" border="0" align="news"></center><br> |
From: <lo...@us...> - 2003-01-30 07:17:36
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv20171 Modified Files: admin.php wuug.class.php Log Message: bugfixes Index: admin.php =================================================================== RCS file: /cvsroot/wuug/wuug/admin.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** admin.php 15 Jan 2003 03:44:21 -0000 1.9 --- admin.php 30 Jan 2003 07:17:33 -0000 1.10 *************** *** 106,110 **** $event = new EventClass(); $event->location = $_POST[location]; ! $event->contact_email = $_POST[contact_email]; $event->contact_phone = $_POST[contact_phone]; $event->start_date = $_POST[start_date]; --- 106,110 ---- $event = new EventClass(); $event->location = $_POST[location]; ! $event->contact_email = $_POST[contact_email]; $event->contact_phone = $_POST[contact_phone]; $event->start_date = $_POST[start_date]; *************** *** 115,118 **** --- 115,123 ---- $event->commit(); $event->reset(); + + $event->description = stripslashes($event->description); + $event->location = stripslashes($event->location); + $event->title = stripslashes($event->location); + $event->detailedView($event->get_last_event_id()); Index: wuug.class.php =================================================================== RCS file: /cvsroot/wuug/wuug/wuug.class.php,v retrieving revision 1.16 retrieving revision 1.17 diff -C2 -d -r1.16 -r1.17 *** wuug.class.php 20 Jan 2003 14:51:36 -0000 1.16 --- wuug.class.php 30 Jan 2003 07:17:33 -0000 1.17 *************** *** 352,361 **** function commit() { require("config.inc.php"); ! magic_quotes_runtime(TRUE); $query = "INSERT INTO `" . $cf[tables][events] . "` (title,date_start,date_end,info_email,info_phone,location,description) ! VALUES ('" . $this->event_title . "', '" . $this->start_date . "', '" . $this->end_date . ! "', '" . $this->contact_email . "', '" . $this->contact_phone . "', '" . $this->location . ! "', '" . $this->description . "')"; $datalink = wuug_dbconnect(); --- 352,362 ---- function commit() { require("config.inc.php"); ! // magic_quotes_runtime(TRUE); ! // Either that didn't work or I'm really stonned... $query = "INSERT INTO `" . $cf[tables][events] . "` (title,date_start,date_end,info_email,info_phone,location,description) ! VALUES ('" . addslashes($this->event_title) . "', '" . $this->start_date . "', '" . $this->end_date . ! "', '" . $this->contact_email . "', '" . $this->contact_phone . "', '" . addslashes($this->location) . ! "', '" . addslashes($this->description) . "')"; $datalink = wuug_dbconnect(); |
From: <lo...@us...> - 2003-01-23 23:03:17
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv17578 Modified Files: links.php Log Message: Fixed links fatal error Index: links.php =================================================================== RCS file: /cvsroot/wuug/wuug/links.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** links.php 14 Jan 2003 20:37:27 -0000 1.2 --- links.php 23 Jan 2003 23:03:11 -0000 1.3 *************** *** 20,24 **** for ($i = 0; $i < sizeof($ids); $i++) { echo "<li>"; ! $link->linkView($ids[$i][id]); echo "</li>"; } --- 20,24 ---- for ($i = 0; $i < sizeof($ids); $i++) { echo "<li>"; ! $links->linkView($ids[$i][id]); echo "</li>"; } |
From: <lo...@us...> - 2003-01-20 14:51:40
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv10775 Modified Files: index.php wuug.class.php Log Message: Fix annoying bug with denied accounts Index: index.php =================================================================== RCS file: /cvsroot/wuug/wuug/index.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** index.php 15 Jan 2003 03:44:21 -0000 1.4 --- index.php 20 Jan 2003 14:51:36 -0000 1.5 *************** *** 1,4 **** <?php ! // index.php --- 1,4 ---- <?php ! session_start(); // index.php Index: wuug.class.php =================================================================== RCS file: /cvsroot/wuug/wuug/wuug.class.php,v retrieving revision 1.15 retrieving revision 1.16 diff -C2 -d -r1.15 -r1.16 *** wuug.class.php 15 Jan 2003 15:52:21 -0000 1.15 --- wuug.class.php 20 Jan 2003 14:51:36 -0000 1.16 *************** *** 928,931 **** --- 928,932 ---- */ function deny($id) { + require "config.inc.php"; ?> |
From: <lo...@us...> - 2003-01-15 23:00:00
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv30154 Modified Files: right.php Log Message: Index: right.php =================================================================== RCS file: /cvsroot/wuug/wuug/right.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** right.php 13 Jan 2003 03:28:34 -0000 1.4 --- right.php 15 Jan 2003 22:59:57 -0000 1.5 *************** *** 144,146 **** --- 144,147 ---- } } + ?> |
From: <lo...@us...> - 2003-01-15 15:52:24
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv31001 Modified Files: wuug.class.php Log Message: Little syntax fix Index: wuug.class.php =================================================================== RCS file: /cvsroot/wuug/wuug/wuug.class.php,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** wuug.class.php 15 Jan 2003 05:05:04 -0000 1.14 --- wuug.class.php 15 Jan 2003 15:52:21 -0000 1.15 *************** *** 467,471 **** $this->tooltip = stripslashes($values[tooltip]); ! $datalink->disconnect; } --- 467,471 ---- $this->tooltip = stripslashes($values[tooltip]); ! $datalink->disconnect(); } |
From: <lo...@us...> - 2003-01-15 05:05:07
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv1833 Modified Files: wuug.class.php Log Message: More bugfixes Index: wuug.class.php =================================================================== RCS file: /cvsroot/wuug/wuug/wuug.class.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** wuug.class.php 15 Jan 2003 03:44:21 -0000 1.13 --- wuug.class.php 15 Jan 2003 05:05:04 -0000 1.14 *************** *** 380,384 **** require "config.inc.php"; ! $query = "SELECT id FROM `" . $cf[tables][links] . "` ORDER BY " . $cf[tables][links] . ".category DESC"; $datalink = wuug_dbconnect(); $result = $datalink->getAll($query, DB_FETCHMODE_ASSOC); --- 380,384 ---- require "config.inc.php"; ! $query = "SELECT id FROM `" . $cf[tables][links] . "` ORDER BY category DESC"; $datalink = wuug_dbconnect(); $result = $datalink->getAll($query, DB_FETCHMODE_ASSOC); *************** *** 448,452 **** $query = " SELECT " . $a . ".name, " . $a . ".uri, " . $b . ".text AS category, " . $a . ".id as ID ! FROM `$a`, `$b`, `$c` WHERE " . $a . ".id = " . $id . " AND " . $b . ".id = " . $a . ".category --- 448,452 ---- $query = " SELECT " . $a . ".name, " . $a . ".uri, " . $b . ".text AS category, " . $a . ".id as ID ! FROM `$a`, `$b` WHERE " . $a . ".id = " . $id . " AND " . $b . ".id = " . $a . ".category *************** *** 495,499 **** if ($id) { $this->pop($id); } ?> ! <a href="<?=$this->uri?>"><?=$this->name?></a> - <?=$this->tooltip?><br> <? } --- 495,499 ---- if ($id) { $this->pop($id); } ?> ! <acronym title="<?=$this->tooltip?>"><a href="<?=$this->uri?>"><?=$this->name . " (" . $this->uri . ")"?></a></acronym><br> <? } |
From: <lo...@us...> - 2003-01-15 03:44:24
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv28465 Modified Files: admin.php config.inc.php index.php vote.php wuug.class.php Log Message: Bugfix Index: admin.php =================================================================== RCS file: /cvsroot/wuug/wuug/admin.php,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** admin.php 14 Jan 2003 20:37:26 -0000 1.8 --- admin.php 15 Jan 2003 03:44:21 -0000 1.9 *************** *** 20,24 **** - <a href="<?=$cf[top_level_url] . "/?content=admin§ion=users"?>">Users modifications</a> (security levels, etc...)<br> - <a href="<?=$cf[top_level_url] . "/?content=admin§ion=events"?>">Events manager</a><br> ! - <a href="<?=$cf[top_level_url] . "/?content=admin§ion=links"?>">Links Manager</a><br> - <a href="<?=$cf[top_level_url] . "/?content=admin§ion=faqs"?>">FAQs manager</a><br> - <a href="<?=$cf[top_level_url] . "/?content=admin§ion=all"?>">All these sections</a><br> --- 20,24 ---- - <a href="<?=$cf[top_level_url] . "/?content=admin§ion=users"?>">Users modifications</a> (security levels, etc...)<br> - <a href="<?=$cf[top_level_url] . "/?content=admin§ion=events"?>">Events manager</a><br> ! - <a href="<?=$cf[top_level_url] . "/?content=admin§ion=links&action=add"?>">Links Manager</a><br> - <a href="<?=$cf[top_level_url] . "/?content=admin§ion=faqs"?>">FAQs manager</a><br> - <a href="<?=$cf[top_level_url] . "/?content=admin§ion=all"?>">All these sections</a><br> *************** *** 157,166 **** } } if (($_GET[section] == "links") || ($_GET[section] == "all")) { - $link = new Link; ! if ($_GET[action] = "add") { if (!$_POST[link_submit]) { $link->skel(); --- 157,166 ---- } } + if (($_GET[section] == "links") || ($_GET[section] == "all")) { $link = new Link; ! if ($_GET[action] == "add") { if (!$_POST[link_submit]) { $link->skel(); *************** *** 175,181 **** $link->skel(); } ! } elseif ($_GET[action] = "del") { $link->delete($_GET[id]); ! } elseif ($_GET[action] = "edit") { if (!$_POST[link_submit]) { if ($_GET[id]) { --- 175,181 ---- $link->skel(); } ! } elseif ($_GET[action] == "del") { $link->delete($_GET[id]); ! } elseif ($_GET[action] == "edit") { if (!$_POST[link_submit]) { if ($_GET[id]) { *************** *** 193,195 **** --- 193,196 ---- } } + if (($_GET[section] == "users") || ($_GET[section] == "all")) { ;; } } Index: config.inc.php =================================================================== RCS file: /cvsroot/wuug/wuug/config.inc.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** config.inc.php 11 Jan 2003 08:37:44 -0000 1.6 --- config.inc.php 15 Jan 2003 03:44:21 -0000 1.7 *************** *** 3,7 **** // config.inc.php ! // how many news to display at a time (rest will go to archives) --- 3,7 ---- // config.inc.php ! define("ROOT", dirname(__FILE__)); // how many news to display at a time (rest will go to archives) Index: index.php =================================================================== RCS file: /cvsroot/wuug/wuug/index.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** index.php 14 Jan 2003 02:26:47 -0000 1.3 --- index.php 15 Jan 2003 03:44:21 -0000 1.4 *************** *** 3,7 **** // index.php - // Handling logon require_once("config.inc.php"); --- 3,6 ---- Index: vote.php =================================================================== RCS file: /cvsroot/wuug/wuug/vote.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** vote.php 14 Jan 2003 02:26:47 -0000 1.5 --- vote.php 15 Jan 2003 03:44:21 -0000 1.6 *************** *** 42,44 **** <td colspan="2" align="center"><B><?=$total?></B> Registered Votes</td> </tr> ! </table><? \ No newline at end of file --- 42,44 ---- <td colspan="2" align="center"><B><?=$total?></B> Registered Votes</td> </tr> ! </table> \ No newline at end of file Index: wuug.class.php =================================================================== RCS file: /cvsroot/wuug/wuug/wuug.class.php,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** wuug.class.php 14 Jan 2003 20:37:28 -0000 1.12 --- wuug.class.php 15 Jan 2003 03:44:21 -0000 1.13 *************** *** 384,388 **** $result = $datalink->getAll($query, DB_FETCHMODE_ASSOC); $datalink->disconnect(); ! return($result) } --- 384,388 ---- $result = $datalink->getAll($query, DB_FETCHMODE_ASSOC); $datalink->disconnect(); ! return($result); } *************** *** 394,398 **** require "config.inc.php"; ?> ! <form method="POST" action="<?=$cf[top_level_url]?>/?content=admin§ion=links"> <table cellpadding="2" cellspacing="0" border="0" width="75%" align="center"> <tr> --- 394,398 ---- require "config.inc.php"; ?> ! <form method="POST" action="<?=$cf[top_level_url]?>/?content=admin§ion=links&action=add"> <table cellpadding="2" cellspacing="0" border="0" width="75%" align="center"> <tr> |
From: <dj...@us...> - 2003-01-14 20:37:37
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv21355/wuug Modified Files: CHANGELOG TODO admin.php links.php news.php wuug.class.php Log Message: Added basic Link stuff Index: CHANGELOG =================================================================== RCS file: /cvsroot/wuug/wuug/CHANGELOG,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** CHANGELOG 11 Jan 2003 08:05:31 -0000 1.4 --- CHANGELOG 14 Jan 2003 20:37:26 -0000 1.5 *************** *** 1,8 **** CHANGELOG - wuug-engine v0.1-alpha1 - 10/01/03 - GD-based graphs for votes (Xavier) - 10/01/03 - New Graphics manipulation class (Xavier) - 10/01/03 - Graphs for votes (Aaron) ! - 10/01/03 - New Developer - Aaron Mavrignac - 09/01/03 - Dozens of little bugfixes - 09/01/03 - Administration class and interface for FAQs ready --- 1,9 ---- CHANGELOG - wuug-engine v0.1-alpha1 + - 14/01/03 - Basics of Link class (Aaron) - 10/01/03 - GD-based graphs for votes (Xavier) - 10/01/03 - New Graphics manipulation class (Xavier) - 10/01/03 - Graphs for votes (Aaron) ! - 10/01/03 - New Developer - Aaron Mavrinac - 09/01/03 - Dozens of little bugfixes - 09/01/03 - Administration class and interface for FAQs ready Index: TODO =================================================================== RCS file: /cvsroot/wuug/wuug/TODO,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** TODO 11 Jan 2003 08:03:20 -0000 1.2 --- TODO 14 Jan 2003 20:37:26 -0000 1.3 *************** *** 7,11 **** - Implement administration section ! - Admin for Links QA --- 7,13 ---- - Implement administration section ! - Add edit/delete functions ! ! - Categorized links page QA Index: admin.php =================================================================== RCS file: /cvsroot/wuug/wuug/admin.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** admin.php 14 Jan 2003 02:26:47 -0000 1.7 --- admin.php 14 Jan 2003 20:37:26 -0000 1.8 *************** *** 158,161 **** } ! if (($_GET[section] == "links") || ($_GET[section] == "all")) { ; } ! } \ No newline at end of file --- 158,195 ---- } ! if (($_GET[section] == "links") || ($_GET[section] == "all")) { ! ! $link = new Link; ! ! if ($_GET[action] = "add") { ! if (!$_POST[link_submit]) { ! $link->skel(); ! } else { ! $link->uri = $_POST[link_uri]; ! $link->name = $_POST[link_name]; ! $link->tooltip = $_POST[link_tooltip]; ! $link->category = $_POST[link_category]; ! ! $link->commit(); ! $link->reset(); ! $link->skel(); ! } ! } elseif ($_GET[action] = "del") { ! $link->delete($_GET[id]); ! } elseif ($_GET[action] = "edit") { ! if (!$_POST[link_submit]) { ! if ($_GET[id]) { ! $link->list_edit(); ! } else { ! $link->edit($_GET[id]); ! } ! } else { ! $link->uri = $_POST[link_uri]; ! $link->name = $_POST[link_name]; ! $link->tooltip = $_POST[link_tooltip]; ! $link->category = $_POST[link_category]; ! $link->update($id); ! } ! } ! } ! } Index: links.php =================================================================== RCS file: /cvsroot/wuug/wuug/links.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** links.php 7 Jan 2003 02:19:14 -0000 1.1.1.1 --- links.php 14 Jan 2003 20:37:27 -0000 1.2 *************** *** 4,68 **** ?> <table><tr> ! <td><p>This page contains links to various Unix ! resources for different variants. A very comprehensive Unix information site can be found at <a href="http://www.unixpower.org">UnixPower.Org</a>.</p></td></tr> ! <tr><td><center><font size="+1" color="#000099">Linux</font></center></td></tr> ! <tr><td> ! <ul> ! <li><a href="http://slashdot.org" target="top">Slashdot.org</a> ! </li><li><a href="http://www.linuxtoday.com" target="top">Linux Today</a> ! </li><li><a href="http://freshmeat.net" target="top">Freshmeat.net Software Archive</a> ! </li><li><a href="http://rufus.w3.org/linux/RPM" target="top">Rufus RPM Archive</a> ! ! </li><li><a href="http://www.cyber.bc.ca" target="top">Cyberstation</a> ! </li><li><a href="http://www.themes.org" target="top">Themes.org</a> ! </li><li><a href="http://webwatcher.org" target="top">Linux WebWatcher</a> ! </li><li><a href="http://daily.daemonnews.org/" target="top">The Daily BSD News</a> ! </li><li><a href="http://www.sysadmin.com/" target="top">Sys Admin Magazine</a> ! </li></ul> ! </td></tr> ! ! <tr><td><center><font size="+1" color="#000099">FreeBSD</font></center></td></tr> ! <tr><td> ! <ul> ! ! <li><a href="http://www.freebsd.org" target="top">FreeBSD Official Site</a> ! </li><li><a href="http://www.freebsdforums.org/" target="top">FreeBSD Forums</a> ! </li><li><a href="http://freebsd.unixhelp.org" target="top">FreeBSD Online</a> ! </li><li><a href="http://www.freebsdrocks.com" target="top">FreeBSD Rocks!</a> ! </li><li><a href="http://www.freebsddiary.com/freebsd" target="top">FreeBSD Diary</a> ! </li><li><a href="http://www.daemonnews.org" target="top">Daemon News</a> ! </li><li><a href="http://www.freebsdmall.com" target="top">The FreeBSD Mall</a> ! </li></ul> ! </td></tr> ! <tr><td><center><font size="+1" color="#000099">Solaris</font></center></td></tr> ! <tr><td> ! <ul> ! <li><a href="http://www.sun.com" target="top">Sun Microsystems</a> ! </li><li><a href="http://www.sun.com/solaris" target="top">Official Solaris Site</a> ! </li><li><a href="http://www.solariscentral.org" target="top">Solaris Central</a> ! </li><li><a href="http://oak.ece.ul.ie/%7Egriffini/solaris.html" target="top">Solaris WWW Resources</a> ! </li><li><a href="http://sun.icsnet.com" target="top">Unofficial Guide to Solaris</a> ! </li><li><a href="http://www.sunfreeware.com" target="top">Solaris FreeWare</a> ! </li><li><a href="http://www.zdtips.com/sun/sun-f.htm" target="top">Solaris Tip of the Week</a> ! </li></ul> ! </td></tr> ! <tr><td><center><font size="+1" color="#000099">IRIX</font></center></td></tr> ! <tr><td> ! <ul> ! <li><a href="http://www.sgi.com" target="top">Silicon Graphics Inc.</a> ! </li><li><a href="http://www.sgi.com/developers/technology/irix653.html" target="top">IRIX 6.5.3 Information</a> ! </li></ul> </td></tr> ! ! <tr><td><center><font size="+1" color="#000099">Miscellaneous</font></center></td></tr> ! <tr><td> ! ! <ul> ! <li><a href="http://www.unixpower.org" target="top">UnixPower.Org</a> ! </table> \ No newline at end of file --- 4,32 ---- ?> + <!--Hardcoded garbage--> <table><tr> ! <td><p>This page contains links to various UNIX ! resources for different variants. A very comprehensive UNIX information site can be found at <a href="http://www.unixpower.org">UnixPower.Org</a>.</p></td></tr> ! <?php ! require "config.inc.php"; ! $links = new Link(); ! $ids = $links->getAll(); ! if ($ids) { ! ?> <ul> <? ! for ($i = 0; $i < sizeof($ids); $i++) { ! echo "<li>"; ! $link->linkView($ids[$i][id]); ! echo "</li>"; ! } ! ?> </ul> <? ! } else { ! ?> There are currently no links, please check back later <? ! } ! ?> </td></tr> ! </table> Index: news.php =================================================================== RCS file: /cvsroot/wuug/wuug/news.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** news.php 7 Jan 2003 23:10:14 -0000 1.3 --- news.php 14 Jan 2003 20:37:28 -0000 1.4 *************** *** 9,16 **** <!-- This is hardcoded, we'll get rid of it... --> <b><center>Welcome to the Windsor Unix Users Group</center></b><br> ! <!-- For more information about us, <a href="?content=faqs">click here</a><br> --> ! If you would like to join, <a href="?content=join">click here</a><br> Our meetings usually take place on the second wednesday of the month<br> ! at our usual location at University of Windsor (Essex Hall)<br> <center><img src="news.png" align="center" border="0" align="news"></center><br> --- 9,16 ---- <!-- This is hardcoded, we'll get rid of it... --> <b><center>Welcome to the Windsor Unix Users Group</center></b><br> ! For more information about us, <a href="?content=faqs">click here</a>.<br> ! If you would like to join, <a href="?content=join">click here</a>.<br> Our meetings usually take place on the second wednesday of the month<br> ! at our usual location at University of Windsor (Essex Hall).<br> <center><img src="news.png" align="center" border="0" align="news"></center><br> Index: wuug.class.php =================================================================== RCS file: /cvsroot/wuug/wuug/wuug.class.php,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** wuug.class.php 11 Jan 2003 08:03:23 -0000 1.11 --- wuug.class.php 14 Jan 2003 20:37:28 -0000 1.12 *************** *** 365,368 **** --- 365,515 ---- } + class Link { + + var $id; + var $uri; + var $name; + var $tooltip; + var $category; + + /** + * @return array + * @desc Return an associative array filled with link IDs + */ + function getAll() { + require "config.inc.php"; + + $query = "SELECT id FROM `" . $cf[tables][links] . "` ORDER BY " . $cf[tables][links] . ".category DESC"; + $datalink = wuug_dbconnect(); + $result = $datalink->getAll($query, DB_FETCHMODE_ASSOC); + $datalink->disconnect(); + return($result) + } + + /** + * @return void + * @desc Prints a skeleton form to create new links. + */ + function skel() { + require "config.inc.php"; + ?> + <form method="POST" action="<?=$cf[top_level_url]?>/?content=admin§ion=links"> + <table cellpadding="2" cellspacing="0" border="0" width="75%" align="center"> + <tr> + <td colspan="2" align="center" bgcolor="#505050"><b><font color="#ffffff">Add a Link</font></b></td> + </tr> + <tr> + <td align="right"><i>Link Name:</td> + <td align="center"><input type="text" name="link_name" class="wuug_txtbox" size="50"> + </tr> + <tr> + <td align="right"><i>URL:</td> + <td align="center"><input type="text" name="link_uri" class="wuug_txtbox" size="50"> + </tr> + <tr> + <td align="right"><i>ToolTip:</td> + <td align="center"><input type="text" name="link_tooltip" class="wuug_txtbox" size="50"> + </tr> + <tr> + <td align="right"><i>Category:</td> + <td align="center"><select name="link_category" class="wuug_txtbox"> + <?php + $datalink = wuug_dbonnect(); + $result = $datalink->query("SELECT text, id FROM `" . $cf[tables][links_categories] . "`"); + + while ($result->fetchInto($text, DB_FETCHMODE_ASSOC)) { + echo "\n<option value=\"" . $text[id] . "\">" . $text[text] . "</option>"; + } + echo "\n</select>\n</td>\n"; + $datalink->disconnect(); + ?> + </tr> + <tr> + <td colspan="2" align="center"><input type="submit" name="links_submit" value="-- [ POST ] --" + class="wuug_button" onmouseover="this.className='wuug_buttonover';" onmouseout="this.className='wuug_button';"></td> + </tr> + </table> + </form> + <? + } + + /** + * @return void + * @param id int + * @desc Fills object's properties with the values from the table associated with link #id + */ + function pop($id) { + require "config.inc.php"; + $values = array(); + + $a = $cf[tables][links]; + $b = $cf[tables][links_categories]; + + $query = " + SELECT " . $a . ".name, " . $a . ".uri, " . $b . ".text AS category, " . $a . ".id as ID + FROM `$a`, `$b`, `$c` + WHERE " . $a . ".id = " . $id . " + AND " . $b . ".id = " . $a . ".category + ORDER BY " . $a . ".category DESC"; + $datalink = wuug_dbconnect(); + $result = $datalink->query($query); + + $result->fetchInto($values, DB_FETCHMODE_ASSOC); + + foreach (array_keys($values) as $key) { + if ($values[$key] == "") { $values[$key] = "N/A"; } + } + + $this->id = $values[ID]; + $this->name = stripslashes($values[name]); + $this->uri = stripslashes($values[uri]); + $this->category = $values[category]; + $this->tooltip = stripslashes($values[tooltip]); + + $datalink->disconnect; + + } + + /** + * @return void + * @desc Commits the link stored in object's properties to the database. + */ + function commit() { + require "config.inc.php"; + + $query = "INSERT INTO `" . $cf[tables][links] . "` + (uri, name, tooltip, category) + VALUES('" . $this->uri . "', '" . $this->name . "', '" . $this->tooltip . "', '" . $this->category . "')"; + + $datalink = wuug_dbconnect(); + $datalink->query($query); + $datalink->disconnect(); + } + + /** + * @return void + * @param id = null int + * @desc Displays individual links + */ + function linkView($id = null) { + if ($id) { $this->pop($id); } + ?> + <a href="<?=$this->uri?>"><?=$this->name?></a> - <?=$this->tooltip?><br> + <? + } + + /** + * @return void + * @desc Resets all the current class' instance's properties to NULL values + */ + function reset() { + unset($this->id); + unset($this->name); + unset($this->uri); + unset($this->category); + unset($this->tooltip); + } + } + class NewsClass { *************** *** 387,391 **** require "config.inc.php"; ! $query = "SELECT id FROM `" . $cf[tables][news]. "`"; $datalink = wuug_dbconnect(); $result = $datalink->getAll($query, DB_FETCHMODE_ASSOC); --- 534,538 ---- require "config.inc.php"; ! $query = "SELECT id FROM `" . $cf[tables][news] . "`"; $datalink = wuug_dbconnect(); $result = $datalink->getAll($query, DB_FETCHMODE_ASSOC); *************** *** 404,408 **** <table cellpadding="2" cellspacing="0" border="0" width="75%" align="center"> <tr> ! <td colspan="2" align="center" bgcolor="#505050"><b><font color="#ffffff">Post news</font></b></td> </tr> <tr> --- 551,555 ---- <table cellpadding="2" cellspacing="0" border="0" width="75%" align="center"> <tr> ! <td colspan="2" align="center" bgcolor="#505050"><b><font color="#ffffff">Post News</font></b></td> </tr> <tr> *************** *** 564,568 **** function commit() { require "config.inc.php"; ! require "config.inc.php"; $query = "INSERT INTO " . $cf[tables][news] . "(author_id, title, text, timestamp, category, display_flag) VALUES('" . $this->author_id . "', '" . addslashes($this->title) . "', '" . --- 711,715 ---- function commit() { require "config.inc.php"; ! $query = "INSERT INTO " . $cf[tables][news] . "(author_id, title, text, timestamp, category, display_flag) VALUES('" . $this->author_id . "', '" . addslashes($this->title) . "', '" . |
From: <lo...@us...> - 2003-01-14 02:26:49
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv10277 Modified Files: admin.php index.php vote.php Log Message: update Index: admin.php =================================================================== RCS file: /cvsroot/wuug/wuug/admin.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** admin.php 13 Jan 2003 01:18:06 -0000 1.6 --- admin.php 14 Jan 2003 02:26:47 -0000 1.7 *************** *** 133,137 **** $faq->priority = Faq::interpret($_POST[faq_priority]); $faq->commit(); - ##################################################### $faq->answer = stripslashes($faq->answer); $faq->question = stripslashes($faq->question); --- 133,136 ---- Index: index.php =================================================================== RCS file: /cvsroot/wuug/wuug/index.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** index.php 9 Jan 2003 07:27:13 -0000 1.2 --- index.php 14 Jan 2003 02:26:47 -0000 1.3 *************** *** 124,128 **** ?> <tr><td align="center" class="wuug_css_menuitem" onMouseOver="this.className='wuug_css_menuover';" onmouseout="this.className='wuug_css_menuitem';" onclick="document.location='<?=$menu_urls[$i]?>'"><?=$menu_links[$i]?></td></tr> <? } ?> ! <tr><td align="center" class="wuug_css_menuitem" onMouseOver="this.className='wuug_css_menuover';" onmouseout="this.className='wuug_css_menuitem';" onclick="window.open('temp_forum/')">Forum</td></tr> </table> </td> --- 124,128 ---- ?> <tr><td align="center" class="wuug_css_menuitem" onMouseOver="this.className='wuug_css_menuover';" onmouseout="this.className='wuug_css_menuitem';" onclick="document.location='<?=$menu_urls[$i]?>'"><?=$menu_links[$i]?></td></tr> <? } ?> ! <tr><td align="center" class="wuug_css_menuitem" onMouseOver="this.className='wuug_css_menuover';" onmouseout="this.className='wuug_css_menuitem';" onclick="window.open('temp_forum/');"">Forum</td></tr> </table> </td> Index: vote.php =================================================================== RCS file: /cvsroot/wuug/wuug/vote.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** vote.php 11 Jan 2003 19:42:01 -0000 1.4 --- vote.php 14 Jan 2003 02:26:47 -0000 1.5 *************** *** 8,13 **** $result = $datalink->query($query); $result->fetchinto($poll_info); ! $total = 0; ! $winner = 0; ?> --- 8,12 ---- $result = $datalink->query($query); $result->fetchinto($poll_info); ! $total = $winner = 0; ?> *************** *** 41,45 **** ?> <tr> ! <td colspan="2" align="center"><B><?=$total?></B> Total Votes</td> </tr> </table><? --- 40,44 ---- ?> <tr> ! <td colspan="2" align="center"><B><?=$total?></B> Registered Votes</td> </tr> </table><? |
From: <lo...@us...> - 2003-01-13 03:28:36
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv31063 Modified Files: right.php Log Message: Added OS to stats Index: right.php =================================================================== RCS file: /cvsroot/wuug/wuug/right.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** right.php 13 Jan 2003 03:24:13 -0000 1.3 --- right.php 13 Jan 2003 03:28:34 -0000 1.4 *************** *** 33,37 **** <?=$_SERVER[HTTP_HOST]?><br \> <b>OS: </b><?=PHP_OS?><br \> ! <?=$myuptime?><br \> <B><?=$myusers?></B> user<?php if ($myusers > 1) { echo "s"; }?> online<br \> <B>Version:</B> <?=$cf[app_version]?><br \> --- 33,37 ---- <?=$_SERVER[HTTP_HOST]?><br \> <b>OS: </b><?=PHP_OS?><br \> ! <?=str_replace("up", "<b>up:</b>", $myuptime);?><br \> <B><?=$myusers?></B> user<?php if ($myusers > 1) { echo "s"; }?> online<br \> <B>Version:</B> <?=$cf[app_version]?><br \> |
From: <lo...@us...> - 2003-01-13 03:24:17
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv29890 Modified Files: right.php Log Message: Added OS to stats Index: right.php =================================================================== RCS file: /cvsroot/wuug/wuug/right.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** right.php 11 Jan 2003 08:10:40 -0000 1.2 --- right.php 13 Jan 2003 03:24:13 -0000 1.3 *************** *** 30,38 **** <tr> <td> ! <center><font color="#000000"><b><u>Server Info:</u></b></center><br> ! <?=$_SERVER[HTTP_HOST]?><br> ! <?=$myuptime?><br> ! <B><?=$myusers?></B> user<?php if ($myusers > 1) { echo "s"; }?> online<br> ! <B>Version:</B> <?=$cf[app_version]?><br> </td> </tr> --- 30,39 ---- <tr> <td> ! <center><font color="#000000"><b><u>Server Info:</u></b></center><br \> ! <?=$_SERVER[HTTP_HOST]?><br \> ! <b>OS: </b><?=PHP_OS?><br \> ! <?=$myuptime?><br \> ! <B><?=$myusers?></B> user<?php if ($myusers > 1) { echo "s"; }?> online<br \> ! <B>Version:</B> <?=$cf[app_version]?><br \> </td> </tr> |
From: <lo...@us...> - 2003-01-13 01:18:10
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv20729 Modified Files: admin.php bar.php Log Message: Got rid of news previews (for now) Index: admin.php =================================================================== RCS file: /cvsroot/wuug/wuug/admin.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** admin.php 11 Jan 2003 08:03:21 -0000 1.5 --- admin.php 13 Jan 2003 01:18:06 -0000 1.6 *************** *** 58,107 **** $news->author_lname = $_SESSION[last_name]; $news->timestamp = date("m/d/Y"); - $news->detailedView(); - - ?> - - <table bgcolor="#505050" align="center" width="75%"> - <tr> - <td align="center"><b><font color="#ffffff">Are you sure you wish to post this crap ?!?</font></b></td> - </tr> - <tr> - <td align="center"> - - <form method="POST" action="<?=$cf[top_level_url] . "/?content=admin§ion=post_news"?>"> - - <input type="hidden" name="title" value="<?=$news->title?>"> - <input type="hidden" name="description" value="<?=$news->text?>"> - <input type="hidden" name="category" value="<?=intval($news->category)?>"> - - <input type="submit" value="Yes, I confirm and I take all responsability" - class="wuug_button" - onmouseover="this.className='wuug_buttonover';" - onmouseout="this.className='wuug_button';"> - </form> - - </td> - </tr> - </table> - <? } } - if ($_GET[section] == "post_news") { - $news = new NewsClass(); - - $news->title = stripslashes($_POST[title]); - $news->text = stripslashes($_POST[description]); - $news->category = $_POST[category]; - $news->author_id = $_SESSION[id]; - $news->display_flag = TRUE; - - - $news->commit(); - - echo "All done..."; - } if (($_GET[section] == "poll") || ($_GET[section] == "all")) { --- 58,72 ---- $news->author_lname = $_SESSION[last_name]; $news->timestamp = date("m/d/Y"); + $news->display_flag = TRUE; + $news->author_id = $_SESSION[id]; + $news->commit(); + echo "The following news has just been posted:<br \>\n"; + $news->detailedView(); + } } if (($_GET[section] == "poll") || ($_GET[section] == "all")) { Index: bar.php =================================================================== RCS file: /cvsroot/wuug/wuug/bar.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** bar.php 12 Jan 2003 19:02:20 -0000 1.7 --- bar.php 13 Jan 2003 01:18:06 -0000 1.8 *************** *** 3,9 **** ! $total = $_GET[total]; ! $value = $_GET[value]; ! $percent = round($value*100/$total); --- 3,7 ---- ! $percent = round($_GET[value]*100/$_GET[total]); |
From: <lo...@us...> - 2003-01-12 19:02:25
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv28868 Modified Files: bar.php Log Message: Beveled look Index: bar.php =================================================================== RCS file: /cvsroot/wuug/wuug/bar.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** bar.php 12 Jan 2003 18:58:59 -0000 1.6 --- bar.php 12 Jan 2003 19:02:20 -0000 1.7 *************** *** 16,20 **** $im->send_header(); $im->fillrectangle(0, 0, ($im->width-1), ($im->height-1), $black); ! $im->fillrectangle(1, 1, ($im->width-2), ($im->height-2), $grey); $im->fillrectangle(1, 1, ($im->width*$percent/100)-2, ($im->height)-2, $fill); --- 16,20 ---- $im->send_header(); $im->fillrectangle(0, 0, ($im->width-1), ($im->height-1), $black); ! $im->fillrectangle(0, 0, ($im->width-2), ($im->height-2), $grey); $im->fillrectangle(1, 1, ($im->width*$percent/100)-2, ($im->height)-2, $fill); |
From: <lo...@us...> - 2003-01-12 18:59:02
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv27301 Modified Files: bar.php Log Message: Beveled look Index: bar.php =================================================================== RCS file: /cvsroot/wuug/wuug/bar.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** bar.php 11 Jan 2003 19:42:01 -0000 1.5 --- bar.php 12 Jan 2003 18:58:59 -0000 1.6 *************** *** 24,26 **** imagepng($im->handle); $im->destroy(); ! ?> \ No newline at end of file --- 24,26 ---- imagepng($im->handle); $im->destroy(); ! ?> |
From: <lo...@us...> - 2003-01-11 19:42:04
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv14910 Modified Files: bar.php vote.php Log Message: Winning vote in red Index: bar.php =================================================================== RCS file: /cvsroot/wuug/wuug/bar.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** bar.php 11 Jan 2003 08:37:44 -0000 1.4 --- bar.php 11 Jan 2003 19:42:01 -0000 1.5 *************** *** 10,14 **** $im = new Graphic(400, 15); $grey = $im->alloc("#eeeeee"); ! $blue = $im->alloc("#3399ff"); $black = $im->alloc("#000000"); $white = $im->alloc("#ffffff"); --- 10,14 ---- $im = new Graphic(400, 15); $grey = $im->alloc("#eeeeee"); ! if ($_GET[pri]) { $fill = $im->alloc("#ff0000"); } else { $fill = $im->alloc("#3399ff"); } $black = $im->alloc("#000000"); $white = $im->alloc("#ffffff"); *************** *** 17,21 **** $im->fillrectangle(0, 0, ($im->width-1), ($im->height-1), $black); $im->fillrectangle(1, 1, ($im->width-2), ($im->height-2), $grey); ! $im->fillrectangle(1, 1, ($im->width*$percent/100)-2, ($im->height)-2, $blue); if ($percent > 51) { $txtcolor = $white; } else { $txtcolor = $black; } --- 17,21 ---- $im->fillrectangle(0, 0, ($im->width-1), ($im->height-1), $black); $im->fillrectangle(1, 1, ($im->width-2), ($im->height-2), $grey); ! $im->fillrectangle(1, 1, ($im->width*$percent/100)-2, ($im->height)-2, $fill); if ($percent > 51) { $txtcolor = $white; } else { $txtcolor = $black; } Index: vote.php =================================================================== RCS file: /cvsroot/wuug/wuug/vote.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** vote.php 11 Jan 2003 08:03:23 -0000 1.3 --- vote.php 11 Jan 2003 19:42:01 -0000 1.4 *************** *** 9,12 **** --- 9,13 ---- $result->fetchinto($poll_info); $total = 0; + $winner = 0; ?> *************** *** 18,22 **** for ($i = 0; $i <= (sizeof($poll_info)-2)/2; $i++) { ! eval("\$total += \$poll_info[c" . $i . "_votes];"); } --- 19,25 ---- for ($i = 0; $i <= (sizeof($poll_info)-2)/2; $i++) { ! eval("\$current = \$poll_info[c" . $i . "_votes];"); ! if ($current > $winner) { $winner = $current; } ! $total += $current; } *************** *** 24,33 **** eval("\$text = \$poll_info[c" . $i . "_text];"); eval("\$votes = \$poll_info[c" . $i . "_votes];"); ! if ($text) { ?> <tr> <td align="right"><?=stripslashes($text);?> (<?=intval($votes);?>)</td> ! <td><img src="bar.php?value=<?=$votes?>&total=<?=$total?>"></td> </tr> --- 27,37 ---- eval("\$text = \$poll_info[c" . $i . "_text];"); eval("\$votes = \$poll_info[c" . $i . "_votes];"); ! if ($text) { ?> <tr> <td align="right"><?=stripslashes($text);?> (<?=intval($votes);?>)</td> ! <td><img src="bar.php?value=<?=$votes?>&total=<?=$total?> ! <?php if ($winner == $votes) { echo "&pri=1"; }?>"></td> </tr> |
From: <lo...@us...> - 2003-01-11 08:37:47
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv22276 Modified Files: README bar.php config.inc.php Log Message: README Index: README =================================================================== RCS file: /cvsroot/wuug/wuug/README,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** README 7 Jan 2003 04:48:33 -0000 1.1 --- README 11 Jan 2003 08:37:44 -0000 1.2 *************** *** 1,4 **** --- 1,5 ---- This document contains the following sections: + - Requirements - Installation Instructions - Support *************** *** 6,9 **** --- 7,49 ---- - Links - Legal Information + + + -- REQUIREMENTS: -- + + wuug_engine is based on a set of different technologies that are necessary for proper + functionment of the engine. + In order to run the wuug_engine, you will need: + + - A web server (Either apache or IIS or Zeus, any webserver that supports PHP really) - Apache recommended + http://httpd.apache.org + + - A SQL database (ms-sql, oracle, mysql, postgresql) - MySQL recommended for the moment + http://www.mysql.com + + - PHP - php 4.3.0 is available for production environment, if you want to have the bleeding-edge + version, you may download a cvs snapshot of PHP5 with Zend Engine 2.0 at http://snaps.php.net + http://www.php.net + + - libpng (http://www.libpng.org/pub/png/libpng.html) + + The recommended configuration for PHP is as follow: + ./configure \ + --enable-trans-sid \ + --with-apache=../apache_1.3.27/ \ + --enable-exif \ + --enable-ftp \ + --with-mysql=/usr/local/mysql/ \ + --enable-sockets \ + --with-zlib \ + --with-gd + + You might have to change the paths for apache and mysql. + + The recommended configuration for apache after this is: + ./configure --with-layout=Apache \ + --activate-module=src/modules/php4/libphp4.a \ + --enable-module=so \ + --enable-module=most + -- INSTALLATION INSTRUCTIONS: -- Index: bar.php =================================================================== RCS file: /cvsroot/wuug/wuug/bar.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** bar.php 11 Jan 2003 08:10:40 -0000 1.3 --- bar.php 11 Jan 2003 08:37:44 -0000 1.4 *************** *** 16,21 **** $im->send_header(); $im->fillrectangle(0, 0, ($im->width-1), ($im->height-1), $black); ! $im->fillrectangle(0, 0, ($im->width-2), ($im->height-2), $grey); ! $im->fillrectangle(1, 1, ($im->width*$percent/100)-2, ($im->height-2), $blue); if ($percent > 51) { $txtcolor = $white; } else { $txtcolor = $black; } --- 16,21 ---- $im->send_header(); $im->fillrectangle(0, 0, ($im->width-1), ($im->height-1), $black); ! $im->fillrectangle(1, 1, ($im->width-2), ($im->height-2), $grey); ! $im->fillrectangle(1, 1, ($im->width*$percent/100)-2, ($im->height)-2, $blue); if ($percent > 51) { $txtcolor = $white; } else { $txtcolor = $black; } Index: config.inc.php =================================================================== RCS file: /cvsroot/wuug/wuug/config.inc.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** config.inc.php 9 Jan 2003 06:22:35 -0000 1.5 --- config.inc.php 11 Jan 2003 08:37:44 -0000 1.6 *************** *** 10,14 **** // We can change the logo from here. $cf[logo_path] = "images/wuug_logo.png" ; ! $cf[top_domain] = "wuug.org" ; $cf[logfile] = "/usr/local/php_env/wuug.log"; --- 10,14 ---- // We can change the logo from here. $cf[logo_path] = "images/wuug_logo.png" ; ! $cf[top_domain] = $_SERVER[HTTP_HOST] ; $cf[logfile] = "/usr/local/php_env/wuug.log"; |
From: <lo...@us...> - 2003-01-11 08:10:43
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv16854 Modified Files: bar.php right.php Log Message: Minor bugfix Index: bar.php =================================================================== RCS file: /cvsroot/wuug/wuug/bar.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** bar.php 11 Jan 2003 07:17:44 -0000 1.2 --- bar.php 11 Jan 2003 08:10:40 -0000 1.3 *************** *** 16,20 **** $im->send_header(); $im->fillrectangle(0, 0, ($im->width-1), ($im->height-1), $black); ! $im->fillrectangle(1, 1, ($im->width-2), ($im->height-2), $grey); $im->fillrectangle(1, 1, ($im->width*$percent/100)-2, ($im->height-2), $blue); --- 16,20 ---- $im->send_header(); $im->fillrectangle(0, 0, ($im->width-1), ($im->height-1), $black); ! $im->fillrectangle(0, 0, ($im->width-2), ($im->height-2), $grey); $im->fillrectangle(1, 1, ($im->width*$percent/100)-2, ($im->height-2), $blue); Index: right.php =================================================================== RCS file: /cvsroot/wuug/wuug/right.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** right.php 7 Jan 2003 02:19:14 -0000 1.1.1.1 --- right.php 11 Jan 2003 08:10:40 -0000 1.2 *************** *** 93,97 **** </tr> <tr> ! <td><center><a href="<?=$cf[top_level_url]?>?content=vote">View poll results</a></center></td> </tr> </table> --- 93,97 ---- </tr> <tr> ! <td><center><a href="<?=$cf[top_level_url]?>/?content=vote">View poll results</a></center></td> </tr> </table> |
From: <lo...@us...> - 2003-01-11 08:05:35
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv15891 Modified Files: CHANGELOG Log Message: Revision Index: CHANGELOG =================================================================== RCS file: /cvsroot/wuug/wuug/CHANGELOG,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** CHANGELOG 11 Jan 2003 08:03:20 -0000 1.3 --- CHANGELOG 11 Jan 2003 08:05:31 -0000 1.4 *************** *** 1,4 **** ! CHANGELOG - wuug-engine v2.0-pre2 ! Last Change on 07/01/2003 @ 00:54 - 10/01/03 - GD-based graphs for votes (Xavier) --- 1,3 ---- ! CHANGELOG - wuug-engine v0.1-alpha1 - 10/01/03 - GD-based graphs for votes (Xavier) |
From: <lo...@us...> - 2003-01-11 08:03:30
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv15447 Modified Files: CHANGELOG TODO admin.php join.php vote.php wuug.class.php Log Message: Turned debugging off Index: CHANGELOG =================================================================== RCS file: /cvsroot/wuug/wuug/CHANGELOG,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** CHANGELOG 10 Jan 2003 21:25:17 -0000 1.2 --- CHANGELOG 11 Jan 2003 08:03:20 -0000 1.3 *************** *** 2,5 **** --- 2,9 ---- Last Change on 07/01/2003 @ 00:54 + - 10/01/03 - GD-based graphs for votes (Xavier) + - 10/01/03 - New Graphics manipulation class (Xavier) + - 10/01/03 - Graphs for votes (Aaron) + - 10/01/03 - New Developer - Aaron Mavrignac - 09/01/03 - Dozens of little bugfixes - 09/01/03 - Administration class and interface for FAQs ready Index: TODO =================================================================== RCS file: /cvsroot/wuug/wuug/TODO,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** TODO 7 Jan 2003 05:59:00 -0000 1.1 --- TODO 11 Jan 2003 08:03:20 -0000 1.2 *************** *** 1,20 **** ! wuug-engine TODO before 2.0.0-release and beyond. ! Currently in 2.0.0-pre2 - Various database cleanups in progress (cron job every hour) - Implement administration section - - Admin for FAQs - Admin for Links - - Admin for Events - - - Email notification for denied account request ! - QA process for 2.0.0-pre3 -> pre3-RC1 ! ! ------ Milestone - 2.0.0-pre3 ------ - INSTALL SCRIPT (including database) --- 1,15 ---- ! wuug-engine TODO before 1.0.0-release ! Currently in 0.1-alpha1 - Various database cleanups in progress (cron job every hour) - Implement administration section - Admin for Links + QA ! ------ Milestone - 0.1-beta ------ - INSTALL SCRIPT (including database) *************** *** 25,29 **** - Modify preferences (news alert, events alert, look & feel, etc...) - Enable moderators ! - Poll results use graphs - RSS/RDF News system - Use transactions where possible to reduce database server load (I'll have to upgrade my MySQL development server first) --- 20,24 ---- - Modify preferences (news alert, events alert, look & feel, etc...) - Enable moderators ! - Skins engine - RSS/RDF News system - Use transactions where possible to reduce database server load (I'll have to upgrade my MySQL development server first) *************** *** 40,44 **** - QA process for 2.0.0-release ! ------ Milestone - 2.0.0-release ------ Open Source release - Stats engine class --- 35,39 ---- - QA process for 2.0.0-release ! ------ Milestone - 0.2-release ------ - Stats engine class Index: admin.php =================================================================== RCS file: /cvsroot/wuug/wuug/admin.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** admin.php 9 Jan 2003 08:21:46 -0000 1.4 --- admin.php 11 Jan 2003 08:03:21 -0000 1.5 *************** *** 34,38 **** if ($_GET[action] == "accept") { - wuug_log("accept"); $queue = new JoinQueue(); $queue->accept($_GET[id]); --- 34,37 ---- *************** *** 122,126 **** $datalink = wuug_dbconnect(); $result = $datalink->query($query); - wuug_log($query); $datalink->disconnect(); echo "All set, the poll has been updated, thank you"; --- 121,124 ---- Index: join.php =================================================================== RCS file: /cvsroot/wuug/wuug/join.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** join.php 7 Jan 2003 02:19:14 -0000 1.1.1.1 --- join.php 11 Jan 2003 08:03:22 -0000 1.2 *************** *** 179,183 **** '" . addslashes($_POST[platforms]) . "' )"; - wuug_log($query); $datalink = wuug_dbconnect(); $result = $datalink->query($query); --- 179,182 ---- Index: vote.php =================================================================== RCS file: /cvsroot/wuug/wuug/vote.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** vote.php 11 Jan 2003 07:17:44 -0000 1.2 --- vote.php 11 Jan 2003 08:03:23 -0000 1.3 *************** *** 6,10 **** $datalink = wuug_dbconnect(); $query = "SELECT * FROM `" . $cf[tables][polls] . "` ORDER BY row_id DESC LIMIT 1"; - wuug_log($query); $result = $datalink->query($query); $result->fetchinto($poll_info); --- 6,9 ---- Index: wuug.class.php =================================================================== RCS file: /cvsroot/wuug/wuug/wuug.class.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** wuug.class.php 11 Jan 2003 06:53:31 -0000 1.10 --- wuug.class.php 11 Jan 2003 08:03:23 -0000 1.11 *************** *** 10,14 **** class Poll { - var $row_id; var $question; --- 10,13 ---- *************** *** 49,53 **** <td align="center"><input type="text" class="wuug_txtbox" name="poll_question" value="<?=$poll_info[question]?>"></td> </tr> ! <? for ($i = 1; $i <= 6; $i++) { --- 48,52 ---- <td align="center"><input type="text" class="wuug_txtbox" name="poll_question" value="<?=$poll_info[question]?>"></td> </tr> ! <?php for ($i = 1; $i <= 6; $i++) { *************** *** 57,61 **** <td align="center"><input type="text" class="wuug_txtbox" name="poll_choice<?=$i?>" value="<? eval("echo stripslashes(\"\$poll_info[c" . $i . "_text]\");"); ?>"> </tr> ! <? } ?> --- 56,60 ---- <td align="center"><input type="text" class="wuug_txtbox" name="poll_choice<?=$i?>" value="<? eval("echo stripslashes(\"\$poll_info[c" . $i . "_text]\");"); ?>"> </tr> ! <?php } ?> *************** *** 66,75 **** </table> </form> ! <? } - } Class JobClass { --- 65,75 ---- </table> </form> ! <?php } } + + Class JobClass { *************** *** 458,462 **** AND " . $c . ".id = " . $a . ".author_id ORDER BY " . $a . ".id DESC"; - wuug_log($query); $datalink = wuug_dbconnect(); $result = $datalink->query($query); --- 458,461 ---- *************** *** 1074,1078 **** function center_text($text, $color) { imagestring($this->handle, 3, (($this->width/2)-imagefontwidth(3)/2), (($this->height/2)-imagefontheight(3)/2), "$text", $color); ! } } --- 1073,1077 ---- function center_text($text, $color) { imagestring($this->handle, 3, (($this->width/2)-imagefontwidth(3)/2), (($this->height/2)-imagefontheight(3)/2), "$text", $color); ! } } |