wuug-cvs Mailing List for wuug_engine
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-04-05 21:18:39
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv23453 Modified Files: wuug.class.php Log Message: minor bugfix Index: wuug.class.php =================================================================== RCS file: /cvsroot/wuug/wuug/wuug.class.php,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** wuug.class.php 5 Apr 2003 21:14:22 -0000 1.25 --- wuug.class.php 5 Apr 2003 21:18:36 -0000 1.26 *************** *** 722,726 **** ?> <a href="<?=$cf[top_level_url] . "/?content=archives&item=" . $event_id?>"> ! <B><?=$this->title?></B></a>, by <?=$this->author_lname . " " . $this->author_lname?> - <i><font color="#bbbbbb">on <?=date("Y-m-d", strtotime($this->timestamp))?></font></i>.<br> <? --- 722,726 ---- ?> <a href="<?=$cf[top_level_url] . "/?content=archives&item=" . $event_id?>"> ! <B><?=$this->title?></B></a>, by <?=$this->author_fname . " " . $this->author_lname?> - <i><font color="#bbbbbb">on <?=date("Y-m-d", strtotime($this->timestamp))?></font></i>.<br> <? |
From: <lo...@us...> - 2003-04-05 21:16:17
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv22646 Modified Files: archives.php Log Message: archiving support Index: archives.php =================================================================== RCS file: /cvsroot/wuug/wuug/archives.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** archives.php 5 Apr 2003 21:14:22 -0000 1.3 --- archives.php 5 Apr 2003 21:16:15 -0000 1.4 *************** *** 5,9 **** $events = new NewsClass(); ! if (!$_GET[item]) { $ids = $events->getAll(); --- 5,20 ---- $events = new NewsClass(); ! if ($_GET[item]) { ! $events->detailedView($_GET[item]); ! } ! ! ?> ! <table cellpadding="2" cellspacing="0" border="0" width="75%" align="center"> ! <tr> ! <td bgcolor="#505050" colspan="2" align="center"><b><font color="#ffffff">Previous Archives</font></b></td> ! </tr> ! </table> ! <?php ! $ids = $events->getAll(); *************** *** 12,17 **** $events->shortView($ids[$i][id]); } ! } else { ! $events->detailedView($_GET[item]); ! } ?> --- 23,26 ---- $events->shortView($ids[$i][id]); } ! ?> |
From: <lo...@us...> - 2003-04-05 21:14:24
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv22063 Modified Files: archives.php wuug.class.php Log Message: archiving support Index: archives.php =================================================================== RCS file: /cvsroot/wuug/wuug/archives.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** archives.php 5 Apr 2003 21:10:36 -0000 1.2 --- archives.php 5 Apr 2003 21:14:22 -0000 1.3 *************** *** 5,14 **** $events = new NewsClass(); ! $ids = $events->getAll(); ! ! if (sizeof($ids) == 0) { echo "There are no archives available at the moment"; } ! for ($i = sizeof($ids)-1; $i >= 1 ; $i--) { ! $events->shortView($ids[$i][id]); } - ?> --- 5,17 ---- $events = new NewsClass(); ! if (!$_GET[item]) { ! $ids = $events->getAll(); ! ! if (sizeof($ids) == 0) { echo "There are no archives available at the moment"; } ! for ($i = sizeof($ids)-1; $i >= 1 ; $i--) { ! $events->shortView($ids[$i][id]); ! } ! } else { ! $events->detailedView($_GET[item]); } ?> Index: wuug.class.php =================================================================== RCS file: /cvsroot/wuug/wuug/wuug.class.php,v retrieving revision 1.24 retrieving revision 1.25 diff -C2 -d -r1.24 -r1.25 *** wuug.class.php 3 Apr 2003 23:03:31 -0000 1.24 --- wuug.class.php 5 Apr 2003 21:14:22 -0000 1.25 *************** *** 714,718 **** /** * @return void ! * @param event_id unknown * @desc Displays a short view of the news identified by $id or the news in object properties */ --- 714,718 ---- /** * @return void ! * @param event_id int * @desc Displays a short view of the news identified by $id or the news in object properties */ *************** *** 721,725 **** ?> ! <a href="<?=$cf[top_level_url] . "/?content=news&item=" . $event_id?>"> <B><?=$this->title?></B></a>, by <?=$this->author_lname . " " . $this->author_lname?> - <i><font color="#bbbbbb">on <?=date("Y-m-d", strtotime($this->timestamp))?></font></i>.<br> --- 721,725 ---- ?> ! <a href="<?=$cf[top_level_url] . "/?content=archives&item=" . $event_id?>"> <B><?=$this->title?></B></a>, by <?=$this->author_lname . " " . $this->author_lname?> - <i><font color="#bbbbbb">on <?=date("Y-m-d", strtotime($this->timestamp))?></font></i>.<br> |
From: <lo...@us...> - 2003-04-05 21:10:39
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv20836 Modified Files: archives.php Log Message: Archiving Index: archives.php =================================================================== RCS file: /cvsroot/wuug/wuug/archives.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** archives.php 7 Jan 2003 02:19:14 -0000 1.1.1.1 --- archives.php 5 Apr 2003 21:10:36 -0000 1.2 *************** *** 3,7 **** // archives.php - ?> ! There are presently no archives available. \ No newline at end of file --- 3,14 ---- // archives.php ! $events = new NewsClass(); ! $ids = $events->getAll(); ! ! if (sizeof($ids) == 0) { echo "There are no archives available at the moment"; } ! for ($i = sizeof($ids)-1; $i >= 1 ; $i--) { ! $events->shortView($ids[$i][id]); ! } ! ! ?> |
From: <lo...@us...> - 2003-03-06 20:26:20
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv17028 Modified Files: install.php Log Message: Fixed install script, still not stable Index: install.php =================================================================== RCS file: /cvsroot/wuug/wuug/install.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** install.php 6 Mar 2003 20:24:50 -0000 1.2 --- install.php 6 Mar 2003 20:26:14 -0000 1.3 *************** *** 6,10 **** // Will also create the database and add the first records in it. ! if (!file_exists("config.inc.php2")) { ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> --- 6,10 ---- // Will also create the database and add the first records in it. ! if (!file_exists("config.inc.php")) { ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> |
From: <lo...@us...> - 2003-03-06 20:25:01
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv16131 Modified Files: config.inc.php database.sql install.php wuug.class.php wuug.lib.php Log Message: Updated db script Index: config.inc.php =================================================================== RCS file: /cvsroot/wuug/wuug/config.inc.php,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** config.inc.php 17 Feb 2003 22:22:58 -0000 1.10 --- config.inc.php 6 Mar 2003 20:24:47 -0000 1.11 *************** *** 4,7 **** --- 4,8 ---- define("ROOT", dirname(__FILE__)); + define("ENABLE_LOGGING", TRUE); // Height of the Logo *************** *** 19,23 **** // 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"; --- 20,24 ---- // 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"; *************** *** 55,59 **** // 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>" ; $cf[uptime_file] = "/usr/local/php_env/wuug_uptime" ; --- 56,60 ---- // 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>" ; $cf[uptime_file] = "/usr/local/php_env/wuug_uptime" ; Index: database.sql =================================================================== RCS file: /cvsroot/wuug/wuug/database.sql,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** database.sql 17 Feb 2003 22:22:59 -0000 1.3 --- database.sql 6 Mar 2003 20:24:49 -0000 1.4 *************** *** 1,6 **** ! # Template ! ! # Database: COMAS # Table: 'confirmed_queue' # --- 1,11 ---- ! # Connection: Linkadmin ! # Host: 192.168.1.100 ! # Saved: 2003-03-06 15:24:25 ! # ! CREATE DATABASE IF NOT EXISTS COMAS; ! USE COMAS; ! # Host: 192.168.1.100 ! # Database: wuug # Table: 'confirmed_queue' # *************** *** 9,15 **** `queue_id` int(11) NOT NULL default '0', PRIMARY KEY (`row`) ! ) ! # Database: COMAS # Table: 'join_queue' # --- 14,21 ---- `queue_id` int(11) NOT NULL default '0', PRIMARY KEY (`row`) ! ); ! # Host: 192.168.1.100 ! # Database: wuug # Table: 'join_queue' # *************** *** 39,62 **** `phone_extension` varchar(100) default '', PRIMARY KEY (`id`) ! ) ! ! # Database: COMAS ! # Table: 'messages' ! # ! CREATE TABLE `messages` ( ! `id` int(11) NOT NULL auto_increment, ! `author` varchar(255) NOT NULL default '', ! `body` longtext NOT NULL, ! `assigned` varchar(255) default NULL, ! `title` varchar(255) default NULL, ! `ident` int(11) default NULL, ! `msg_id` int(11) default NULL, ! `ip_address` varchar(255) default NULL, ! `datetime` datetime default NULL, ! `email` varchar(55) default NULL, ! PRIMARY KEY (`id`) ! ) ! # Database: COMAS # Table: 'news' # --- 45,52 ---- `phone_extension` varchar(100) default '', PRIMARY KEY (`id`) ! ); ! # Host: 192.168.1.100 ! # Database: wuug # Table: 'news' # *************** *** 71,77 **** `category` int(11) default '0', PRIMARY KEY (`id`) ! ) ! # Database: COMAS # Table: 'news_queue' # --- 61,68 ---- `category` int(11) default '0', PRIMARY KEY (`id`) ! ); ! # Host: 192.168.1.100 ! # Database: wuug # Table: 'news_queue' # *************** *** 84,90 **** `category` int(11) default '0', PRIMARY KEY (`id`) ! ) ! # Database: COMAS # Table: 'wuug_events' # --- 75,82 ---- `category` int(11) default '0', PRIMARY KEY (`id`) ! ); ! # Host: 192.168.1.100 ! # Database: wuug # Table: 'wuug_events' # *************** *** 99,105 **** `location` varchar(100) default '', PRIMARY KEY (`id`) ! ) ! # Database: COMAS # Table: 'wuug_faqs' # --- 91,98 ---- `location` varchar(100) default '', PRIMARY KEY (`id`) ! ); ! # Host: 192.168.1.100 ! # Database: wuug # Table: 'wuug_faqs' # *************** *** 111,117 **** `author` int(11) NOT NULL default '0', PRIMARY KEY (`id`) ! ) ! # Database: COMAS # Table: 'wuug_links' # --- 104,111 ---- `author` int(11) NOT NULL default '0', PRIMARY KEY (`id`) ! ); ! # Host: 192.168.1.100 ! # Database: wuug # Table: 'wuug_links' # *************** *** 123,129 **** `category` varchar(100) NOT NULL default '', PRIMARY KEY (`id`) ! ) ! # Database: COMAS # Table: 'wuug_links_categories' # --- 117,124 ---- `category` varchar(100) NOT NULL default '', PRIMARY KEY (`id`) ! ); ! # Host: 192.168.1.100 ! # Database: wuug # Table: 'wuug_links_categories' # *************** *** 132,138 **** `name` varchar(100) NOT NULL default '', PRIMARY KEY (`id`) ! ) ! # Database: COMAS # Table: 'wuug_news_categories' # --- 127,134 ---- `name` varchar(100) NOT NULL default '', PRIMARY KEY (`id`) ! ); ! # Host: 192.168.1.100 ! # Database: wuug # Table: 'wuug_news_categories' # *************** *** 141,147 **** `text` varchar(100) NOT NULL default '', PRIMARY KEY (`id`) ! ) ! # Database: COMAS # Table: 'wuug_polls' # --- 137,144 ---- `text` varchar(100) NOT NULL default '', PRIMARY KEY (`id`) ! ); ! # Host: 192.168.1.100 ! # Database: wuug # Table: 'wuug_polls' # *************** *** 162,168 **** `c6_votes` varchar(100) default '', PRIMARY KEY (`row_id`) ! ) ! # Database: COMAS # Table: 'wuug_prefs' # --- 159,166 ---- `c6_votes` varchar(100) default '', PRIMARY KEY (`row_id`) ! ) ; ! # Host: 192.168.1.100 ! # Database: wuug # Table: 'wuug_prefs' # *************** *** 174,180 **** `news_alert_type` varchar(100) default '', PRIMARY KEY (`row`) ! ) ! # Database: COMAS # Table: 'wuug_users' # --- 172,179 ---- `news_alert_type` varchar(100) default '', PRIMARY KEY (`row`) ! ); ! # Host: 192.168.1.100 ! # Database: wuug # Table: 'wuug_users' # *************** *** 208,210 **** `security_level` int(11) NOT NULL default '0', PRIMARY KEY (`id`) ! ) \ No newline at end of file --- 207,210 ---- `security_level` int(11) NOT NULL default '0', PRIMARY KEY (`id`) ! ); ! Index: install.php =================================================================== RCS file: /cvsroot/wuug/wuug/install.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** install.php 17 Feb 2003 22:23:00 -0000 1.1 --- install.php 6 Mar 2003 20:24:50 -0000 1.2 *************** *** 6,10 **** // Will also create the database and add the first records in it. ! if (!file_exists("config.inc.php")) { ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> --- 6,10 ---- // Will also create the database and add the first records in it. ! if (!file_exists("config.inc.php2")) { ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> *************** *** 20,24 **** <body> ! <table width="100%" height="100%" align="center" border="0"> <tr> --- 20,27 ---- <body> ! <?php ! if (!$_POST[submit]) { ! ?> ! <form method="POST" action="install.php"> <table width="100%" height="100%" align="center" border="0"> <tr> *************** *** 61,74 **** <td width="50%" bgcolor="#eeeeff" align="center"> <select class="wuug_txtbox" name="db_type"> ! <option name="mysql">MySQL</option> ! <option name="pgsql">PostGreSQL</option> ! <option name="mssql">Microsoft SQL server</option> ! <option name="ibase">InterBase</option> ! <option name="msql">Mini-SQL</option> ! <option name="oci8">Oracle 7/8/8i</option> ! <option name="sybase">Sybase</option> ! <option name="odbc">ODBC</option> ! <option name="ifx">Informix</option> ! <option name="fbsql">FrontBase</option> </select> </td> --- 64,77 ---- <td width="50%" bgcolor="#eeeeff" align="center"> <select class="wuug_txtbox" name="db_type"> ! <option value="mysql">MySQL</option> ! <option value="pgsql">PostGreSQL</option> ! <option value="mssql">Microsoft SQL server</option> ! <option value="ibase">InterBase</option> ! <option value="msql">Mini-SQL</option> ! <option value="oci8">Oracle 7/8/8i</option> ! <option value="sybase">Sybase</option> ! <option value="odbc">ODBC</option> ! <option value="ifx">Informix</option> ! <option value="fbsql">FrontBase</option> </select> </td> *************** *** 82,90 **** <td width="50%" bgcolor="#eeeeff" align="center"> <select class="wuug_txtbox" name="lang"> ! <option name="en">English</option> ! <option name="fr">French (mais oui!!)</option> ! <option name="it">Italian</option> ! <option name="jp">Japanese</option> ! <option name="redneck">Redneck</option> </select> </td> --- 85,93 ---- <td width="50%" bgcolor="#eeeeff" align="center"> <select class="wuug_txtbox" name="lang"> ! <option value="en">English</option> ! <option value="fr">French (mais oui!!)</option> ! <option value="it">Italian</option> ! <option value="jp">Japanese</option> ! <option value="redneck">Redneck</option> </select> </td> *************** *** 95,98 **** --- 98,105 ---- </tr> <tr> + <td width="50%" bgcolor="#eeeeee" align="right"><i>Enable Logging:</i></td> + <td width="50%" bgcolor="#eeeeff" align="center"><input class="wuug_txtbox" type="checkbox" name="enable_logging" checked></td> + </tr> + <tr> <td width="50%" bgcolor="#eeeeee" align="right"><i>How many news should I display at a time on the homepage?</i></td> <td width="50%" bgcolor="#eeeeff" align="center"><input class="wuug_txtbox" type="text" name="news_numb" value="5"></td> *************** *** 111,116 **** </tr> <tr> ! <td width="50%" bgcolor="#eeeeee" align="right"><i>Your abbreviated organization/website name:</i></td> ! <td width="50%" bgcolor="#eeeeff" align="center"><input class="wuug_txtbox" type="text" name="abbr_org_name" value="WUUG"></td> </tr> <tr> --- 118,123 ---- </tr> <tr> ! <td width="50%" bgcolor="#eeeeee" align="right"><i>Where should my emails come FROM:</i></td> ! <td width="50%" bgcolor="#eeeeff" align="center"><input class="wuug_txtbox" type="text" name="email_from" value="comas@<?=$_SERVER['HTTP_HOST']?>"></td> </tr> <tr> *************** *** 129,138 **** </tr> </table> ! <? ! exit(); } - ?> --- 136,186 ---- </tr> </table> ! </form> <? ! exit(); ! } else { ! require "wuug.class.php"; ! ! $flag = TRUE; ! $parser = new Parser; ! $parser->type = CONFIG; ! ! $required = array("org_name", "email_from", "abbr_org_name", "uptime_file", "top_level_url", ! "news_numb", "enable_logging", "logfile", "lang", "db_name", ! "db_type", "db_username", "db_password", "db_host", "password", "username"); ! ! foreach($required as $element) { ! if ($_POST[$element] == "") { ! $flag = FALSE; ! $errors .= "<br>$element is missing"; ! } else { ! $parser->set("$element", $_POST[$element]); ! } ! } ! ! // bool fields have to be processed individually. ! $bools = array("enable_logging"); ! ! foreach($bools as $bool) { ! if ($_POST[$bool] == "on") { ! $parser->set($bool, "TRUE"); ! } else { ! $parser->set($bool, "FALSE"); ! } ! } ! ! ! if ($flag == FALSE) { ! die("The following errors have been detected:" . $errors); ! } ! ! $parser->parse("config.tpl"); ! echo "Here is what I would output: \n<code>\n"; ! echo nl2br($parser->html); ! echo "</pre>"; ! ! } } ?> Index: wuug.class.php =================================================================== RCS file: /cvsroot/wuug/wuug/wuug.class.php,v retrieving revision 1.21 retrieving revision 1.22 diff -C2 -d -r1.21 -r1.22 *** wuug.class.php 17 Feb 2003 22:23:00 -0000 1.21 --- wuug.class.php 6 Mar 2003 20:24:50 -0000 1.22 *************** *** 3,7 **** // wuug.class.php ! require "config.inc.php"; define("FULL_TIME", 2); --- 3,7 ---- // wuug.class.php ! // require "config.inc.php"; define("FULL_TIME", 2); *************** *** 9,12 **** --- 9,16 ---- define("ANY" , 4); + define("HTML" , 0); + define("CONFIG" , 1); + + // This is a simple little template API // It doesn't even pretend to replace SmartY and other *************** *** 16,19 **** --- 20,24 ---- var $html; + var $type; var $template = array(); var $vars = array(); *************** *** 30,36 **** foreach ($this->template as $element) { ! if (!eregi('^#', $element)) { ! $element = preg_replace("/(\*)(.*)(\*)/", "<b>\\2</b>", $element); ! $this->html .= nl2br($element) . "\n"; } } --- 35,45 ---- foreach ($this->template as $element) { ! if (!eregi('^#', $element)) { // This is not a comment ! if (($this->type == HTML) || (!$this->type)) { ! $element = preg_replace("/(\*)(.*)(\*)/", "<b>\\2</b>", $element); ! $this->html .= nl2br($element) . "\n"; ! } else { ! $this->html .= "$element"; ! } } } *************** *** 1310,1313 **** --- 1319,1326 ---- if (!$font_size) { $font_size = 3; } imagestring($this->handle, $font_size, (($this->width/2)-(imagefontwidth($font_size))*(strlen($text)/2)), (($this->height/2)-imagefontheight($font_size)/2), "$text", $color); + } + + function filledarc($x, $y, $width, $height, $start, $end, $colour) { + imagefilledarc($this->handle, $x, $y, $width, $height, $start, $end, $colour, IMG_ARC_PIE); } } Index: wuug.lib.php =================================================================== RCS file: /cvsroot/wuug/wuug/wuug.lib.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** wuug.lib.php 7 Jan 2003 02:19:09 -0000 1.1.1.1 --- wuug.lib.php 6 Mar 2003 20:24:52 -0000 1.2 *************** *** 90,99 **** require "config.inc.php"; ! if (!$logfile) { $logfile = $cf[logfile]; } ! $stamp = date("(d/m/Y: H:i:a)"); ! $file = fopen($logfile, "a+"); ! fputs($file, $stamp . " " . $string . "\n"); ! fclose($file); } /** --- 90,102 ---- require "config.inc.php"; ! if (ENABLE_LOGGING == TRUE) { ! if (!$logfile) { $logfile = $cf[logfile]; } ! ! $stamp = date("(d/m/Y: H:i:a)"); ! $file = fopen($logfile, "a+"); ! fputs($file, $stamp . " " . $string . "\n"); ! fclose($file); ! } } /** |
From: <lo...@us...> - 2003-02-17 22:23:10
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv5229 Modified Files: CHANGELOG config.inc.php database.sql index.php links.php wuug.class.php Added Files: install.php Log Message: Read Changelog --- NEW FILE: install.php --- <?php // install.php // Checks if config.inc.php exists and prompts a config // page if it doesn't. // Will also create the database and add the first records in it. if (!file_exists("config.inc.php")) { ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>COMAS installation script</title> <meta http-equiv="Content-Language" content="en-us"> <link rel="stylesheet" href="stylesheet.css.php" type="text/css" title="WUUG stylesheet"> </head> <body> <table width="100%" height="100%" align="center" border="0"> <tr> <td colspan="2" align="center" bgcolor="#cccccc"><h1>Installation</h1></td> </tr> <tr> <td colspan="2" bgcolor="#dddddd">Hi There. This is the COMAS installation script<br> I have detected that this website hasn't been configured yet and will do just that for you<br> Please answer the questions below to create your first installation<br> Be careful as you will *NOT* (for the moment) be able to change most of these settings later<br> unless you go change them manually in your configuration file.<br> <b>The defaults are only here as an example, they are not suitable unless:<br> - You are running COMAS on a UNIX server<br> - You have root access to the database server<br> - You have directed your *UPTIME crontab to uptime.txt where COMAS is installed<br> - You want COMAS to log in the same directory as it is installed (dangerous)<b></td> </tr> <tr> <td width="50%" bgcolor="#eeeeee" align="right"><i>Your COMAS username:</i></td> <td width="50%" bgcolor="#eeeeff" align="center"><input class="wuug_txtbox" type="text" name="username" value="admin"></td> </tr> <tr> <td width="50%" bgcolor="#eeeeee" align="right"><i>Desired password:</i></td> <td width="50%" bgcolor="#eeeeff" align="center"><input class="wuug_txtbox" type="password" name="password"></td> </tr> <tr> <td width="50%" bgcolor="#eeeeee" align="right"><i>Database Host:</i></td> <td width="50%" bgcolor="#eeeeff" align="center"><input class="wuug_txtbox" type="text" name="db_host" value="localhost"></td> </tr> <tr> <td width="50%" bgcolor="#eeeeee" align="right"><i>Your database username:</i></td> <td width="50%" bgcolor="#eeeeff" align="center"><input class="wuug_txtbox" type="text" name="db_username" value="root"></td> </tr> <tr> <td width="50%" bgcolor="#eeeeee" align="right"><i>Your database password:</i></td> <td width="50%" bgcolor="#eeeeff" align="center"><input class="wuug_txtbox" type="text" name="db_password"></td> </tr> <tr> <td width="50%" bgcolor="#eeeeee" align="right"><i>Database type:</i></td> <td width="50%" bgcolor="#eeeeff" align="center"> <select class="wuug_txtbox" name="db_type"> <option name="mysql">MySQL</option> <option name="pgsql">PostGreSQL</option> <option name="mssql">Microsoft SQL server</option> <option name="ibase">InterBase</option> <option name="msql">Mini-SQL</option> <option name="oci8">Oracle 7/8/8i</option> <option name="sybase">Sybase</option> <option name="odbc">ODBC</option> <option name="ifx">Informix</option> <option name="fbsql">FrontBase</option> </select> </td> </tr> <tr> <td width="50%" bgcolor="#eeeeee" align="right"><i>The name of your database:</i></td> <td width="50%" bgcolor="#eeeeff" align="center"><input class="wuug_txtbox" type="text" name="db_name" value="COMAS"></td> </tr> <tr> <td width="50%" bgcolor="#eeeeee" align="right"><i>Default language:</i></td> <td width="50%" bgcolor="#eeeeff" align="center"> <select class="wuug_txtbox" name="lang"> <option name="en">English</option> <option name="fr">French (mais oui!!)</option> <option name="it">Italian</option> <option name="jp">Japanese</option> <option name="redneck">Redneck</option> </select> </td> </tr> <tr> <td width="50%" bgcolor="#eeeeee" align="right"><i>Log File:</i></td> <td width="50%" bgcolor="#eeeeff" align="center"><input class="wuug_txtbox" type="text" name="logfile" value="<?=dirname(__FILE__) . "/comas.log"?>"></td> </tr> <tr> <td width="50%" bgcolor="#eeeeee" align="right"><i>How many news should I display at a time on the homepage?</i></td> <td width="50%" bgcolor="#eeeeff" align="center"><input class="wuug_txtbox" type="text" name="news_numb" value="5"></td> </tr> <tr> <td width="50%" bgcolor="#eeeeee" align="right"><i>What is my Top-Level URL (address to reach me)<br>(NO TRAILING SLASH)</i></td> <td width="50%" bgcolor="#eeeeff" align="center"><input class="wuug_txtbox" type="text" name="top_level_url" value="http://www.<?=$_SERVER['SERVER_NAME']?>/comas"></td> </tr> <tr> <td width="50%" bgcolor="#eeeeee" align="right"><i>Where is my uptime file stored? (read manual - Uptime section)</i></td> <td width="50%" bgcolor="#eeeeff" align="center"><input class="wuug_txtbox" type="text" name="uptime_file" value="<?=dirname(__FILE__) . "/uptime.txt"?>"></td> </tr> <tr> <td width="50%" bgcolor="#eeeeee" align="right"><i>Your abbreviated organization/website name:</i></td> <td width="50%" bgcolor="#eeeeff" align="center"><input class="wuug_txtbox" type="text" name="abbr_org_name" value="WUUG"></td> </tr> <tr> <td width="50%" bgcolor="#eeeeee" align="right"><i>Your abbreviated organization/website name:</i></td> <td width="50%" bgcolor="#eeeeff" align="center"><input class="wuug_txtbox" type="text" name="abbr_org_name" value="WUUG"></td> </tr> <tr> <td width="50%" bgcolor="#eeeeee" align="right"><i>Your full organization/website name:</i></td> <td width="50%" bgcolor="#eeeeff" align="center"><input class="wuug_txtbox" type="text" name="org_name" value="The Windsor Unix Users Group"></td> </tr> <tr> <td align="right" width="50"" bgcolor="#eeeeee"> <input type="reset" name="reset" value="-- [ RESET ] --" class="wuug_button" onmouseover="this.className='wuug_buttonover';" onmouseout="this.className='wuug_button';"> </td> <td width="50%" bgcolor="#eeeeff" align="center"> <input type="submit" name="submit" value="-- [ POST ] --" class="wuug_button" onmouseover="this.className='wuug_buttonover';" onmouseout="this.className='wuug_button';"> </td> </tr> </table> <? exit(); } ?> Index: CHANGELOG =================================================================== RCS file: /cvsroot/wuug/wuug/CHANGELOG,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** CHANGELOG 14 Jan 2003 20:37:26 -0000 1.5 --- CHANGELOG 17 Feb 2003 22:22:58 -0000 1.6 *************** *** 1,4 **** --- 1,13 ---- CHANGELOG - wuug-engine v0.1-alpha1 + - 17/02/03 - Merged many extensions for the graphics class + - 17/02/03 - Various bugfixes (Xavier) + - 17/02/03 - Started working on install script (Xavier) + - 17/02/03 - New - Lightweight templating engine (no more hardcoded stuff) (Xavier) + - 17/02/03 - New Parser:: class (Xavier) + - 17/02/03 - New - i18n support (need translators) (Xavier) + - 17/02/03 - Updated database script and made it more portable (Xavier) + - 17/02/03 - Links class finished (Xavier) + - 17/02/03 - Various database fixes (Xavier) - 14/01/03 - Basics of Link class (Aaron) - 10/01/03 - GD-based graphs for votes (Xavier) *************** *** 6,9 **** --- 15,19 ---- - 10/01/03 - Graphs for votes (Aaron) - 10/01/03 - New Developer - Aaron Mavrinac + - 10/01/03 - Developer backed off (Brent Deneau) - 09/01/03 - Dozens of little bugfixes - 09/01/03 - Administration class and interface for FAQs ready Index: config.inc.php =================================================================== RCS file: /cvsroot/wuug/wuug/config.inc.php,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** config.inc.php 15 Feb 2003 19:46:51 -0000 1.9 --- config.inc.php 17 Feb 2003 22:22:58 -0000 1.10 *************** *** 5,8 **** --- 5,11 ---- define("ROOT", dirname(__FILE__)); + // Height of the Logo + $cf[logo_height] = 157; + // App Default language // Possible choices are: *************** *** 72,75 **** --- 75,79 ---- $cf[tables][faq] = "wuug_faqs"; $cf[tables][links] = "wuug_links"; + $cf[tables][links_categories] = "wuug_links_categories"; ///////////////////////////////////////////////////////////////////// Index: database.sql =================================================================== RCS file: /cvsroot/wuug/wuug/database.sql,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** database.sql 8 Jan 2003 00:09:44 -0000 1.2 --- database.sql 17 Feb 2003 22:22:59 -0000 1.3 *************** *** 1,9 **** # Template ! # Connection: linkadmin ! # Host: localhost ! # Saved: 2003-01-05 02:05:55 ! # ! # Host: localhost ! # Database: wuug # Table: 'confirmed_queue' # --- 1,6 ---- # Template ! ! ! # Database: COMAS # Table: 'confirmed_queue' # *************** *** 12,19 **** `queue_id` int(11) NOT NULL default '0', PRIMARY KEY (`row`) ! ) TYPE=MyISAM; ! # Host: localhost ! # Database: wuug # Table: 'join_queue' # --- 9,15 ---- `queue_id` int(11) NOT NULL default '0', PRIMARY KEY (`row`) ! ) ! # Database: COMAS # Table: 'join_queue' # *************** *** 43,50 **** `phone_extension` varchar(100) default '', PRIMARY KEY (`id`) ! ) TYPE=MyISAM; ! # Host: localhost ! # Database: wuug # Table: 'messages' # --- 39,45 ---- `phone_extension` varchar(100) default '', PRIMARY KEY (`id`) ! ) ! # Database: COMAS # Table: 'messages' # *************** *** 61,68 **** `email` varchar(55) default NULL, PRIMARY KEY (`id`) ! ) TYPE=MyISAM; ! # Host: localhost ! # Database: wuug # Table: 'news' # --- 56,62 ---- `email` varchar(55) default NULL, PRIMARY KEY (`id`) ! ) ! # Database: COMAS # Table: 'news' # *************** *** 77,84 **** `category` int(11) default '0', PRIMARY KEY (`id`) ! ) TYPE=MyISAM COMMENT='New'; ! # Host: localhost ! # Database: wuug # Table: 'news_queue' # --- 71,77 ---- `category` int(11) default '0', PRIMARY KEY (`id`) ! ) ! # Database: COMAS # Table: 'news_queue' # *************** *** 91,112 **** `category` int(11) default '0', PRIMARY KEY (`id`) ! ) TYPE=MyISAM; ! ! # Host: localhost ! # Database: wuug ! # Table: 'users' ! # ! CREATE TABLE `users` ( ! `id` int(11) NOT NULL auto_increment, ! `username` varchar(255) NOT NULL default '', ! `email` varchar(255) NOT NULL default '', ! `password` varchar(255) NOT NULL default '', ! `firstname` varchar(255) NOT NULL default '', ! `lastname` varchar(255) default NULL, ! PRIMARY KEY (`id`) ! ) TYPE=MyISAM; ! # Host: localhost ! # Database: wuug # Table: 'wuug_events' # --- 84,90 ---- `category` int(11) default '0', PRIMARY KEY (`id`) ! ) ! # Database: COMAS # Table: 'wuug_events' # *************** *** 121,152 **** `location` varchar(100) default '', PRIMARY KEY (`id`) ! ) TYPE=MyISAM; ! # Host: localhost ! # Database: wuug # Table: 'wuug_faqs' # CREATE TABLE `wuug_faqs` ( ! `id` int(11) NOT NULL default '0', `question` varchar(100) NOT NULL default '', `answer` varchar(100) NOT NULL default '', `priority` int(11) default '0', ! `author` int(11) NOT NULL default '0' ! ) TYPE=MyISAM; ! # Host: localhost ! # Database: wuug # Table: 'wuug_links' # CREATE TABLE `wuug_links` ( ! `id` varchar(100) NOT NULL default '', `uri` varchar(100) NOT NULL default '', `name` varchar(100) NOT NULL default '', `tooltip` varchar(100) NOT NULL default '', ! `category` varchar(100) NOT NULL default '' ! ) TYPE=MyISAM; ! # Host: localhost ! # Database: wuug # Table: 'wuug_news_categories' # --- 99,138 ---- `location` varchar(100) default '', PRIMARY KEY (`id`) ! ) ! # Database: COMAS # Table: 'wuug_faqs' # CREATE TABLE `wuug_faqs` ( ! `id` int(11) NOT NULL auto_increment, `question` varchar(100) NOT NULL default '', `answer` varchar(100) NOT NULL default '', `priority` int(11) default '0', ! `author` int(11) NOT NULL default '0', ! PRIMARY KEY (`id`) ! ) ! # Database: COMAS # Table: 'wuug_links' # CREATE TABLE `wuug_links` ( ! `id` int(11) NOT NULL auto_increment, `uri` varchar(100) NOT NULL default '', `name` varchar(100) NOT NULL default '', `tooltip` varchar(100) NOT NULL default '', ! `category` varchar(100) NOT NULL default '', ! PRIMARY KEY (`id`) ! ) ! # Database: COMAS ! # Table: 'wuug_links_categories' ! # ! CREATE TABLE `wuug_links_categories` ( ! `id` int(11) NOT NULL auto_increment, ! `name` varchar(100) NOT NULL default '', ! PRIMARY KEY (`id`) ! ) ! ! # Database: COMAS # Table: 'wuug_news_categories' # *************** *** 155,162 **** `text` varchar(100) NOT NULL default '', PRIMARY KEY (`id`) ! ) TYPE=MyISAM; ! # Host: localhost ! # Database: wuug # Table: 'wuug_polls' # --- 141,147 ---- `text` varchar(100) NOT NULL default '', PRIMARY KEY (`id`) ! ) ! # Database: COMAS # Table: 'wuug_polls' # *************** *** 177,184 **** `c6_votes` varchar(100) default '', PRIMARY KEY (`row_id`) ! ) TYPE=MyISAM; ! # Host: localhost ! # Database: wuug # Table: 'wuug_prefs' # --- 162,168 ---- `c6_votes` varchar(100) default '', PRIMARY KEY (`row_id`) ! ) ! # Database: COMAS # Table: 'wuug_prefs' # *************** *** 190,197 **** `news_alert_type` varchar(100) default '', PRIMARY KEY (`row`) ! ) TYPE=MyISAM; ! # Host: localhost ! # Database: wuug # Table: 'wuug_users' # --- 174,180 ---- `news_alert_type` varchar(100) default '', PRIMARY KEY (`row`) ! ) ! # Database: COMAS # Table: 'wuug_users' # *************** *** 225,228 **** `security_level` int(11) NOT NULL default '0', PRIMARY KEY (`id`) ! ) TYPE=MyISAM COMMENT='WUU'; ! --- 208,210 ---- `security_level` int(11) NOT NULL default '0', PRIMARY KEY (`id`) ! ) \ No newline at end of file Index: index.php =================================================================== RCS file: /cvsroot/wuug/wuug/index.php,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** index.php 20 Jan 2003 14:51:36 -0000 1.5 --- index.php 17 Feb 2003 22:23:00 -0000 1.6 *************** *** 2,6 **** session_start(); // index.php ! // Handling logon require_once("config.inc.php"); --- 2,7 ---- session_start(); // index.php ! // install stuff ! include "install.php"; // Handling logon require_once("config.inc.php"); *************** *** 104,108 **** <table height="100%" width="100%" border="0" cellpadding="8" cellspacing="0"> <!-- WUUG logo as defined in config file --> ! <tr height="157"> <td colspan="3" align="center"> <a href="<?=$cf[top_level_url]?>"><img src="<?=$cf[logo_path]?>" --- 105,109 ---- <table height="100%" width="100%" border="0" cellpadding="8" cellspacing="0"> <!-- WUUG logo as defined in config file --> ! <tr height="<?=$cf[logo_height]?>"> <td colspan="3" align="center"> <a href="<?=$cf[top_level_url]?>"><img src="<?=$cf[logo_path]?>" Index: links.php =================================================================== RCS file: /cvsroot/wuug/wuug/links.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** links.php 23 Jan 2003 23:03:11 -0000 1.3 --- links.php 17 Feb 2003 22:23:00 -0000 1.4 *************** *** 16,20 **** $ids = $links->getAll(); ! if ($ids) { ?> <ul> <? for ($i = 0; $i < sizeof($ids); $i++) { --- 16,20 ---- $ids = $links->getAll(); ! if (sizeof($ids) > 0) { ?> <ul> <? for ($i = 0; $i < sizeof($ids); $i++) { *************** *** 25,29 **** ?> </ul> <? } else { ! ?> There are currently no links, please check back later <? } --- 25,29 ---- ?> </ul> <? } else { ! ?> There are currently no links, please check back later<br> <? } Index: wuug.class.php =================================================================== RCS file: /cvsroot/wuug/wuug/wuug.class.php,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** wuug.class.php 15 Feb 2003 20:15:42 -0000 1.20 --- wuug.class.php 17 Feb 2003 22:23:00 -0000 1.21 *************** *** 39,42 **** --- 39,43 ---- $tpl_name = '{' . $var_name . '}'; $this->html = str_replace($tpl_name, $this->vars[$var_name], $this->html); + $this->html = str_replace(strtoupper($tpl_name), $this->vars[$var_name], $this->html); } return $this->html; *************** *** 482,488 **** $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` WHERE " . $a . ".id = " . $id . " --- 483,488 ---- $a = $cf[tables][links]; $b = $cf[tables][links_categories]; $query = " ! SELECT " . $a . ".name, " . $a . ".uri, " . $b . ".name AS category, " . $a . ".tooltip, " . $a . ".id as ID FROM `$a`, `$b` WHERE " . $a . ".id = " . $id . " *************** *** 531,536 **** function linkView($id = null) { if ($id) { $this->pop($id); } ?> ! <acronym title="<?=$this->tooltip?>"><a href="<?=$this->uri?>"><?=$this->name . " (" . $this->uri . ")"?></a></acronym><br> <? } --- 531,537 ---- function linkView($id = null) { if ($id) { $this->pop($id); } + ?> ! <acronym title="<?=$this->tooltip?>"><a href="<?=$this->uri?>"><?=$this->name . "</a> (" . $this->uri . ")"?></acronym><br> <? } *************** *** 644,648 **** $datalink = wuug_dbconnect(); $result = $datalink->query($query); ! $result->fetchInto($values, DB_FETCHMODE_ASSOC); --- 645,649 ---- $datalink = wuug_dbconnect(); $result = $datalink->query($query); ! echo nl2br($query); $result->fetchInto($values, DB_FETCHMODE_ASSOC); *************** *** 900,928 **** $user = array(); ! $query = "SELECT first_name, email_address FROM `" . $cf[tables][users] . "` WHERE id = LAST_INSERT_ID()"; $result = $datalink->query($query); $result->fetchInto($user); ! // $#! This message must be customized ! $message = " Hi " . $user[first_name] . ", ! I have very good news for you. Your request to join the Windsor Unix Users Group ! has been approved, and you may now log in using your username and password. - You will soon have the ability to update your profile as well as many different customization - options such as event alert, news alert, submiting news or events, subscribe/unsubscribe to the - WUUG mailing list, request a shell account, consult your email, etc... - - Please provide all feedback to xa...@wu... - - Thank you, - - The Windsor Unix Users Group - http://www.wuug.org"; mail($user[email_address], $lang[welcome_subject], $message, ! "From: WUUG <ph...@wu...>"); echo "<center><a href=# onClick=\"self.close()\"><b>OK</b></a></center>"; --- 901,921 ---- $user = array(); ! $query = "SELECT first_name, last_name, email_address FROM `" . $cf[tables][users] . "` WHERE id = LAST_INSERT_ID()"; $result = $datalink->query($query); $result->fetchInto($user); ! $template = new Parser; ! $template->set("FIRST_NAME", $user[first_name]); ! $template->set("LAST_NAME", $user[last_name]); ! $template->set("EMAIL_ADDRESS", $user[email_address]); ! ! $message = $template->parse($cf[tpl_dir] . "/mail_accept.tpl"); mail($user[email_address], $lang[welcome_subject], $message, ! "From: COMAS@WUUG <ph...@wu...>"); echo "<center><a href=# onClick=\"self.close()\"><b>OK</b></a></center>"; *************** *** 963,967 **** * @desc Removes user from Queue, cute window. */ ! function deny($id) { require "config.inc.php"; ?> --- 956,960 ---- * @desc Removes user from Queue, cute window. */ ! function deny($id, $reason = null) { require "config.inc.php"; ?> *************** *** 976,980 **** <? ! $query = "DELETE FROM `" . $cf[tables][join_queue] . "` WHERE id = " . $id; $query2 = "DELETE FROM `" . $cf[tables][confirm] . "` WHERE queue_id = " . $id; --- 969,973 ---- <? ! $query1 = "DELETE FROM `" . $cf[tables][join_queue] . "` WHERE id = " . $id; $query2 = "DELETE FROM `" . $cf[tables][confirm] . "` WHERE queue_id = " . $id; *************** *** 982,986 **** --- 975,1000 ---- // eventually we'll see if we send a message to the user to let them know. $datalink = wuug_dbconnect(); + + $user = array(); + $query_get = "SELECT first_name, last_name, email FROM `" . $cf[tables][users] . "` WHERE + id = $id"; $result = $datalink->query($query); + + $result->fetchInto($user); + $template = new Parser; + $template->set("FIRST_NAME", $user[first_name]); + $template->set("LAST_NAME", $user[last_name]); + $template->set("EMAIL_ADDRESS", $user[email]); + $template->set("REASON", $reason); + + $message = $template->parse($cf[tpl_dir] . "/mail_deny.tpl"); + + + mail($user[email], + $lang[denied_subject], + $message, + "From: COMAS@WUUG <ph...@wu...>"); + + $result = $datalink->query($query1); $result = $datalink->query($query2); *************** *** 1225,1261 **** class Graphic { ! var $width; ! var $height; ! var $handle; ! ! function Graphic($width, $height) { ! $this->width = $width; ! $this->height = $height; ! $this->handle = imagecreate($width, $height); ! } ! ! function alloc($colour) { ! $red = hexdec("0x" . substr($colour, 1,2)); ! $green = hexdec("0x" . substr($colour, 3,2)); ! $blue = hexdec("0x" . substr($colour, 5,2)); ! $ret_colour = imagecolorallocate($this->handle, $red, $green, $blue); ! 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); ! } } --- 1239,1314 ---- class Graphic { ! var $width; ! var $height; ! var $handle; ! ! function Send() { ! imagepng($this->handle); ! } ! ! function Round_rect($x1, $y1, $x2, $y2, $radius, $colour, $fill = null) { ! ! $arcwidth = (2*$radius); ! ! // top left hand corner ! ImageArc($this->handle, $x1+$radius, $y1+$radius, $arcwidth, $arcwidth, 180, 270, $colour); ! // top right hand corner ! ImageArc($this->handle, $x2-$radius, $y1+$radius, $arcwidth, $arcwidth, 270, 360, $colour); ! // bottom right hand corner ! ImageArc($this->handle, $x2-$radius, $y2-$radius, $arcwidth, $arcwidth, 0, 90, $colour); ! // bottom left hand corner ! ImageArc($this->handle, $x1+$radius, $y2-$radius, $arcwidth, $arcwidth, 90, 180, $colour); ! ! // top line ! $this->line($x1+$radius, $y1, $x2-$radius, $y1, $colour); ! // right line ! $this->line($x2, $y1+$radius, $x2, $y2-$radius, $colour); ! // left line ! $this->line($x1, $y1+$radius, $x1, $y2-$radius, $colour); ! // bottom line ! $this->line($x1+$radius, $y2, $x2-$radius, $y2, $colour); ! ! if ($fill) { $this->flood(abs($x1-$x2)/2, abs($y1-$y2)/2, $fill); } ! ! } ! ! function Line($x1, $y1, $x2, $y2, $colour) { ! ImageLine($this->handle, $x1, $y1, $x2, $y2, $colour); ! } ! ! function flood($x, $y, $colour) { ! ImageFill($this->handle, $x, $y, $colour); ! } ! ! function Graphic($width, $height) { ! $this->width = $width; ! $this->height = $height; ! $this->handle = imagecreate($width, $height); ! } ! ! function alloc($colour) { ! $red = hexdec("0x" . substr($colour, 1,2)); ! $green = hexdec("0x" . substr($colour, 3,2)); ! $blue = hexdec("0x" . substr($colour, 5,2)); ! $ret_colour = imagecolorallocate($this->handle, $red, $green, $blue); ! 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, $font_size = null) { ! if (!$font_size) { $font_size = 3; } ! imagestring($this->handle, $font_size, (($this->width/2)-(imagefontwidth($font_size))*(strlen($text)/2)), (($this->height/2)-imagefontheight($font_size)/2), "$text", $color); ! } } |
From: <lo...@us...> - 2003-02-17 22:23:07
|
Update of /cvsroot/wuug/wuug/i18n/en In directory sc8-pr-cvs1:/tmp/cvs-serv5229/i18n/en Modified Files: messages.inc.php Log Message: Read Changelog Index: messages.inc.php =================================================================== RCS file: /cvsroot/wuug/wuug/i18n/en/messages.inc.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** messages.inc.php 15 Feb 2003 19:58:56 -0000 1.1 --- messages.inc.php 17 Feb 2003 22:23:01 -0000 1.2 *************** *** 2,6 **** $lang[welcome_subject] = "Welcome to the WUUG!"; ! ?> --- 2,6 ---- $lang[welcome_subject] = "Welcome to the WUUG!"; ! $lang[denied_subject] = "Account request denied!"; ?> |
From: <lo...@us...> - 2003-02-17 22:23:07
|
Update of /cvsroot/wuug/wuug/i18n/en/templates In directory sc8-pr-cvs1:/tmp/cvs-serv5229/i18n/en/templates Modified Files: mail_accept.tpl Log Message: Read Changelog Index: mail_accept.tpl =================================================================== RCS file: /cvsroot/wuug/wuug/i18n/en/templates/mail_accept.tpl,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mail_accept.tpl 15 Feb 2003 19:59:59 -0000 1.1 --- mail_accept.tpl 17 Feb 2003 22:23:02 -0000 1.2 *************** *** 1,17 **** ! # This is the introduction phrase for your website ! # Lines starting with a '#' are comments ! # You may use any HTML code you need but unless ! # the HTML is for links or bold, it is generally not a ! # good idea. ! # Note you can also make any text bold by wrapping '*' ! # symbols around the text like this: ! # Hello!!! *THIS* was my bolded text! # You may also use variables previously set in the object ! # Available variables for this template: None # ! Welcome to the *Windsor Unix Users Group* website ! For more information about us, <a href="?content=faqs">click here</a> ! If you would like to *join*, <a href="?content=join">click here</a> ! Our meetings usually take place on the second *Thursday* of the month ! at our new location - St Clair College - Room76 (Basement) around 7:00pm --- 1,27 ---- ! # This is the email sent to anyone who has been approved to join in. ! # Lines starting with '#' are comments # You may also use variables previously set in the object ! # Available variables for this template: ! # {FIRST_NAME} - First name of the new user ! # {LAST_NAME} - Last name of the new user ! # {EMAIL_ADDRESS} - The email address of the new user # ! # ! Hello, {FIRST_NAME}; ! This is an automated message, please do not reply. ! Your account request for http://www.wuug.org has just ! been approved by one of the site administrators. ! ! You may now update your profile and make the appropriate ! changes on the website. ! ! COMAS, the website engine on which http://www.wuug.org ! is based, is in heavy development so many new options and ! features will be available to you in time. ! ! Thank you for joining the Windsor Unix Users Group. ! ! COMAS <co...@wu...> ! http://www.wuug.org ! http://www.sourceforge.net/projects/wuug |
From: <lo...@us...> - 2003-02-15 20:15:50
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv14719 Modified Files: wuug.class.php Log Message: Bugfix Index: wuug.class.php =================================================================== RCS file: /cvsroot/wuug/wuug/wuug.class.php,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** wuug.class.php 15 Feb 2003 20:04:34 -0000 1.19 --- wuug.class.php 15 Feb 2003 20:15:42 -0000 1.20 *************** *** 15,19 **** class Parser { - var $parsed; var $html; var $template = array(); --- 15,18 ---- *************** *** 33,37 **** if (!eregi('^#', $element)) { $element = preg_replace("/(\*)(.*)(\*)/", "<b>\\2</b>", $element); ! $this->parsed .= nl2br($element) . "\n"; } } --- 32,36 ---- if (!eregi('^#', $element)) { $element = preg_replace("/(\*)(.*)(\*)/", "<b>\\2</b>", $element); ! $this->html .= nl2br($element) . "\n"; } } *************** *** 39,45 **** foreach(array_keys($this->vars) as $var_name) { $tpl_name = '{' . $var_name . '}'; ! $html = str_replace($tpl_name, $this->vars[$var_name], $this->parsed); } ! return $html; } } --- 38,44 ---- foreach(array_keys($this->vars) as $var_name) { $tpl_name = '{' . $var_name . '}'; ! $this->html = str_replace($tpl_name, $this->vars[$var_name], $this->html); } ! return $this->html; } } |
From: <lo...@us...> - 2003-02-15 20:04:37
|
Update of /cvsroot/wuug/wuug In directory sc8-pr-cvs1:/tmp/cvs-serv10826 Modified Files: wuug.class.php Log Message: bugfix Index: wuug.class.php =================================================================== RCS file: /cvsroot/wuug/wuug/wuug.class.php,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** wuug.class.php 15 Feb 2003 19:46:51 -0000 1.18 --- wuug.class.php 15 Feb 2003 20:04:34 -0000 1.19 *************** *** 160,164 **** <table width="100%" align="center" border="1" cellspacing="0" cellpadding="0"> <tr> ! <td colspan="2" align="center" bgcolor="#cccccc"><b><?=$this->event_title?></b></td> </tr> <tr> --- 160,164 ---- <table width="100%" align="center" border="1" cellspacing="0" cellpadding="0"> <tr> ! <td align="center" bgcolor="#cccccc"><b><?=$this->event_title?></b></td> </tr> <tr> |
Update of /cvsroot/wuug/wuug/i18n/en/templates In directory sc8-pr-cvs1:/tmp/cvs-serv8985/i18n/en/templates Added Files: home.tpl intro.tpl join.tpl links.tpl mail_accept.tpl mail_confirm.tpl mail_confirmed.tpl mail_deny.tpl members.tpl Log Message: i18n support and templating engine --- NEW FILE: home.tpl --- # This is the introduction phrase for your website # Lines starting with a '#' are comments # You may use any HTML code you need but unless # the HTML is for links or bold, it is generally not a # good idea. # Note you can also make any text bold by wrapping '*' # symbols around the text like this: # Hello!!! *THIS* was my bolded text! # You may also use variables previously set in the object # Available variables for this template: None # Welcome to the *Windsor Unix Users Group* website For more information about us, <a href="?content=faqs">click here</a> If you would like to *join*, <a href="?content=join">click here</a> Our meetings usually take place on the second *Thursday* of the month at our new location - St Clair College - Room76 (Basement) around 7:00pm --- NEW FILE: intro.tpl --- # This is the introduction phrase for your website # Lines starting with a '#' are comments # You may use any HTML code you need but unless # the HTML is for links or bold, it is generally not a # good idea. # Note you can also make any text bold by wrapping '*' # symbols around the text like this: # Hello!!! *THIS* was my bolded text! # You may also use variables previously set in the object # Available variables for this template: None # Welcome to the *Windsor Unix Users Group* website For more information about us, <a href="?content=faqs">click here</a> If you would like to *join*, <a href="?content=join">click here</a> Our meetings usually take place on the second *Thursday* of the month at our new location - St Clair College - Room76 (Basement) around 7:00pm --- NEW FILE: join.tpl --- # This is the introduction phrase for your website # Lines starting with a '#' are comments # You may use any HTML code you need but unless # the HTML is for links or bold, it is generally not a # good idea. # Note you can also make any text bold by wrapping '*' # symbols around the text like this: # Hello!!! *THIS* was my bolded text! # You may also use variables previously set in the object # Available variables for this template: None # Welcome to the *Windsor Unix Users Group* website For more information about us, <a href="?content=faqs">click here</a> If you would like to *join*, <a href="?content=join">click here</a> Our meetings usually take place on the second *Thursday* of the month at our new location - St Clair College - Room76 (Basement) around 7:00pm --- NEW FILE: links.tpl --- # This is the introduction phrase for your website # Lines starting with a '#' are comments # You may use any HTML code you need but unless # the HTML is for links or bold, it is generally not a # good idea. # Note you can also make any text bold by wrapping '*' # symbols around the text like this: # Hello!!! *THIS* was my bolded text! # You may also use variables previously set in the object # Available variables for this template: None # Welcome to the *Windsor Unix Users Group* website For more information about us, <a href="?content=faqs">click here</a> If you would like to *join*, <a href="?content=join">click here</a> Our meetings usually take place on the second *Thursday* of the month at our new location - St Clair College - Room76 (Basement) around 7:00pm --- NEW FILE: mail_accept.tpl --- # This is the introduction phrase for your website # Lines starting with a '#' are comments # You may use any HTML code you need but unless # the HTML is for links or bold, it is generally not a # good idea. # Note you can also make any text bold by wrapping '*' # symbols around the text like this: # Hello!!! *THIS* was my bolded text! # You may also use variables previously set in the object # Available variables for this template: None # Welcome to the *Windsor Unix Users Group* website For more information about us, <a href="?content=faqs">click here</a> If you would like to *join*, <a href="?content=join">click here</a> Our meetings usually take place on the second *Thursday* of the month at our new location - St Clair College - Room76 (Basement) around 7:00pm --- NEW FILE: mail_confirm.tpl --- # This is the introduction phrase for your website # Lines starting with a '#' are comments # You may use any HTML code you need but unless # the HTML is for links or bold, it is generally not a # good idea. # Note you can also make any text bold by wrapping '*' # symbols around the text like this: # Hello!!! *THIS* was my bolded text! # You may also use variables previously set in the object # Available variables for this template: None # Welcome to the *Windsor Unix Users Group* website For more information about us, <a href="?content=faqs">click here</a> If you would like to *join*, <a href="?content=join">click here</a> Our meetings usually take place on the second *Thursday* of the month at our new location - St Clair College - Room76 (Basement) around 7:00pm --- NEW FILE: mail_confirmed.tpl --- # This is the introduction phrase for your website # Lines starting with a '#' are comments # You may use any HTML code you need but unless # the HTML is for links or bold, it is generally not a # good idea. # Note you can also make any text bold by wrapping '*' # symbols around the text like this: # Hello!!! *THIS* was my bolded text! # You may also use variables previously set in the object # Available variables for this template: None # Welcome to the *Windsor Unix Users Group* website For more information about us, <a href="?content=faqs">click here</a> If you would like to *join*, <a href="?content=join">click here</a> Our meetings usually take place on the second *Thursday* of the month at our new location - St Clair College - Room76 (Basement) around 7:00pm --- NEW FILE: mail_deny.tpl --- # This is the introduction phrase for your website # Lines starting with a '#' are comments # You may use any HTML code you need but unless # the HTML is for links or bold, it is generally not a # good idea. # Note you can also make any text bold by wrapping '*' # symbols around the text like this: # Hello!!! *THIS* was my bolded text! # You may also use variables previously set in the object # Available variables for this template: None # Welcome to the *Windsor Unix Users Group* website For more information about us, <a href="?content=faqs">click here</a> If you would like to *join*, <a href="?content=join">click here</a> Our meetings usually take place on the second *Thursday* of the month at our new location - St Clair College - Room76 (Basement) around 7:00pm --- NEW FILE: members.tpl --- # This is the introduction phrase for your website # Lines starting with a '#' are comments # You may use any HTML code you need but unless # the HTML is for links or bold, it is generally not a # good idea. # Note you can also make any text bold by wrapping '*' # symbols around the text like this: # Hello!!! *THIS* was my bolded text! # You may also use variables previously set in the object # Available variables for this template: None # Welcome to the *Windsor Unix Users Group* website For more information about us, <a href="?content=faqs">click here</a> If you would like to *join*, <a href="?content=join">click here</a> Our meetings usually take place on the second *Thursday* of the month at our new location - St Clair College - Room76 (Basement) around 7:00pm |
From: <lo...@us...> - 2003-02-15 19:58:59
|
Update of /cvsroot/wuug/wuug/i18n/en In directory sc8-pr-cvs1:/tmp/cvs-serv8661/i18n/en Added Files: messages.inc.php Log Message: Argh --- NEW FILE: messages.inc.php --- <?php $lang[welcome_subject] = "Welcome to the WUUG!"; ?> |
From: <lo...@us...> - 2003-02-15 19:58:59
|
Update of /cvsroot/wuug/wuug/i18n/fr In directory sc8-pr-cvs1:/tmp/cvs-serv8661/i18n/fr Added Files: messages.inc.php Log Message: Argh --- NEW FILE: messages.inc.php --- |
From: <lo...@us...> - 2003-02-15 19:58:59
|
Update of /cvsroot/wuug/wuug/i18n/redneck In directory sc8-pr-cvs1:/tmp/cvs-serv8661/i18n/redneck Added Files: messages.inc.php Log Message: Argh --- NEW FILE: messages.inc.php --- |
From: <lo...@us...> - 2003-02-15 19:58:59
|
Update of /cvsroot/wuug/wuug/i18n/jp In directory sc8-pr-cvs1:/tmp/cvs-serv8661/i18n/jp Added Files: messages.inc.php Log Message: Argh --- NEW FILE: messages.inc.php --- |
From: <lo...@us...> - 2003-02-15 19:58:59
|
Update of /cvsroot/wuug/wuug/i18n/it In directory sc8-pr-cvs1:/tmp/cvs-serv8661/i18n/it Added Files: messages.inc.php Log Message: Argh --- NEW FILE: messages.inc.php --- |
From: <lo...@us...> - 2003-02-15 19:58:44
|
Update of /cvsroot/wuug/wuug/i18n/redneck/templates In directory sc8-pr-cvs1:/tmp/cvs-serv8568/i18n/redneck/templates Log Message: Directory /cvsroot/wuug/wuug/i18n/redneck/templates added to the repository |
From: <lo...@us...> - 2003-02-15 19:58:44
|
Update of /cvsroot/wuug/wuug/i18n/en/templates In directory sc8-pr-cvs1:/tmp/cvs-serv8568/i18n/en/templates Log Message: Directory /cvsroot/wuug/wuug/i18n/en/templates added to the repository |
From: <lo...@us...> - 2003-02-15 19:58:44
|
Update of /cvsroot/wuug/wuug/i18n/jp/templates In directory sc8-pr-cvs1:/tmp/cvs-serv8568/i18n/jp/templates Log Message: Directory /cvsroot/wuug/wuug/i18n/jp/templates added to the repository |
From: <lo...@us...> - 2003-02-15 19:58:44
|
Update of /cvsroot/wuug/wuug/i18n/it/templates In directory sc8-pr-cvs1:/tmp/cvs-serv8568/i18n/it/templates Log Message: Directory /cvsroot/wuug/wuug/i18n/it/templates added to the repository |
From: <lo...@us...> - 2003-02-15 19:58:44
|
Update of /cvsroot/wuug/wuug/i18n/fr/templates In directory sc8-pr-cvs1:/tmp/cvs-serv8568/i18n/fr/templates Log Message: Directory /cvsroot/wuug/wuug/i18n/fr/templates added to the repository |
From: <lo...@us...> - 2003-02-15 19:50:19
|
Update of /cvsroot/wuug/wuug/i18n/jp In directory sc8-pr-cvs1:/tmp/cvs-serv5758/i18n/jp Log Message: Directory /cvsroot/wuug/wuug/i18n/jp added to the repository |
From: <lo...@us...> - 2003-02-15 19:50:19
|
Update of /cvsroot/wuug/wuug/i18n/it In directory sc8-pr-cvs1:/tmp/cvs-serv5758/i18n/it Log Message: Directory /cvsroot/wuug/wuug/i18n/it added to the repository |
From: <lo...@us...> - 2003-02-15 19:50:19
|
Update of /cvsroot/wuug/wuug/i18n/redneck In directory sc8-pr-cvs1:/tmp/cvs-serv5758/i18n/redneck Log Message: Directory /cvsroot/wuug/wuug/i18n/redneck added to the repository |