[Wuug-cvs] wuug config.inc.php,1.8,1.9 confirm.php,1.1.1.1,1.2 news.php,1.5,1.6 right.php,1.5,1.6 wu
Status: Inactive
Brought to you by:
loginx
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); ! } } |