phpplanner-cvs Mailing List for PHP Planner
Status: Beta
Brought to you by:
tomsommer
You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(12) |
Oct
|
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
|
Feb
|
Mar
|
Apr
(34) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Jeppe A. <no...@us...> - 2004-04-27 18:03:21
|
Update of /cvsroot/phpplanner/phpplanner/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27339/admin Added Files: permissions.php Log Message: * Added permissions.php to /admin for changing individual user permissions --- NEW FILE: permissions.php --- <?php ini_set('include_path','../'); require_once('../common.php'); require('../lib/libconfig.php'); function toggle_priv($cell) { $SQL = mysql_query("select * from cal_users where id = " . $_GET['id'] . ""); $RS = mysql_fetch_array($SQL); if( $RS[$cell] == "true" ) { mysql_query("update cal_users set $cell = 'false' WHERE id = '" . $_GET['id'] ."'") or die("Failed to change permission " . mysql_error()); } else { mysql_query("update cal_users set $cell = 'true' WHERE id = '" . $_GET['id'] ."'") or die("Failed to change permission " . mysql_error()); } } if ( isset($_GET['toggle']) ) { switch ( $_GET['toggle'] ) { case "add": toggle_priv("allow_add"); break; case "edit": toggle_priv("allow_edit"); break; case "delete": toggle_priv("allow_delete"); break; case "admin": toggle_priv("is_admin"); break; } } ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <html> <head> <title>Users</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <link href="css.css" rel="stylesheet" type="text/css"> </head> <body> <table border="0" cellspacing="0" cellpadding="0" class="table"> <tr> <td colspan="6" class="headline">Users</td> </tr> <tr> <td width="125"><em><strong>Name</strong></em></td> <td width="117"><em><strong>E-Mail</strong></em></td> <td width="84"><em><strong>Allow add</strong></em></td> <td width="93"><em><strong>Allow edit</strong></em></td> <td width="112"><em><strong>Allow delete</strong></em></td> <td width="67"><em><strong>Admin</strong></em></td> </tr> <?php $sql = mysql_query("SELECT * FROM cal_users WHERE is_validated = 'true'"); while ( $rs = mysql_fetch_assoc($sql) ) { ?> <tr> <td><?= $rs['name'] ?></td> <td><font size="1"> <?= $rs['email'] ?> </font></td> <td><?php if ($rs['allow_add'] == "true") { echo "<font color=\"green\" size=\"1\">"; } else { echo "<font color=\"red\" size=\"1\">"; } ?> <?= $rs['allow_add'] ?> <a href="<?= $_SERVER['PHP_SELF'] ?>?toggle=add&id=<?= $rs['id'] ?>">[T]</a></font></td> <td><?php if ($rs['allow_edit'] == "true") { echo "<font color=\"green\" size=\"1\">"; } else { echo "<font color=\"red\" size=\"1\">"; } ?> <?= $rs['allow_edit'] ?> <a href="<?= $_SERVER['PHP_SELF'] ?>?toggle=edit&id=<?= $rs['id'] ?>">[T]</a></font></td></td> <td><?php if ($rs['allow_delete'] == "true") { echo "<font color=\"green\" size=\"1\">"; } else { echo "<font color=\"red\" size=\"1\">"; } ?> <?= $rs['allow_delete'] ?> <a href="<?= $_SERVER['PHP_SELF'] ?>?toggle=delete&id=<?= $rs['id'] ?>">[T]</a></font></td></td> <td><?php if ($rs['is_admin'] == "true") { echo "<font color=\"green\" size=\"1\">"; } else { echo "<font color=\"red\" size=\"1\">"; } ?> <?= $rs['is_admin'] ?> <a href="<?= $_SERVER['PHP_SELF'] ?>?toggle=admin&id=<?= $rs['id'] ?>">[T]</a></font></td></td> </tr> <? } ?> </table> </body> </html> |
From: Jeppe A. <no...@us...> - 2004-04-27 16:27:24
|
Update of /cvsroot/phpplanner/phpplanner In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5611 Modified Files: install.php Log Message: * Warning appears if the config file exists to make the owner delete or rename install file for safety reasons. * Added reinstall function which drops all existing SQL data and then does a reinstall. Index: install.php =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/install.php,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- install.php 25 Apr 2004 19:21:16 -0000 1.12 +++ install.php 27 Apr 2004 16:27:13 -0000 1.13 @@ -1,10 +1,13 @@ <?php - + if ( is_file("config.php") ) { + echo( "It seems like phpplanner is already installed! Please remove this file for safety reasons or rename it in case you want to reinstall later.<br>Reinstalling will erase all existing database data created by phpplanner!" ); + } + if ( isset($_POST['submit']) ) { $config_file = 'config.php'; - if ( $_POST['install_type'] == 'install') + if ( $_POST['install_type'] == 'install' || $_POST['install_type'] == 'reinstall') { $configvars_more = array('path_to_calendar' => '"'. $_POST['path_to_calendar'] .'"', 'http_to_calendar' => '"'. $_POST['http_to_calendar'] .'"', @@ -21,7 +24,7 @@ 'language' => '"english"', 'debug' => 'false'); } - + // Add all config vars that needs to be added from a previous version if ( $_POST['install_type'] == 'upgrade' || $_POST['install_type'] == 'upgrade_conf' ) { @@ -44,8 +47,16 @@ 'password' => '"'. $_POST['mysql_password'] .'"', 'database' => '"'. $_POST['mysql_database'] .'"' ); - - if ( $_POST['install_type'] == 'install' ) + // Drop the existing data in database so it can be recreated in the next if + if ( $_POST['install_type'] == 'reinstall' ) { + mysql_connect($_POST['mysql_host'], $_POST['mysql_username'], $_POST['mysql_password']); + mysql_select_db($_POST['mysql_database']); + $dropSQL = 'DROP TABLE `cal_items` ,' . ' `cal_users` ;' . ' '; + mysql_query($dropSQL) or die("Cannot delete existing sql data. Please check that it does exists!"); + mysql_close(); + } + + if ( $_POST['install_type'] == 'install' || $_POST['install_type'] == 'reinstall' ) { // Run MySQL installs mysql_connect($_POST['mysql_host'], $_POST['mysql_username'], $_POST['mysql_password']); @@ -171,6 +182,7 @@ <option value="install" selected>Install <option value="upgrade" disabled>Upgrade from 0.3 <option value="upgrade_conf" disabled>Upgrade from 0.3 (config only ) + <option value="reinstall">Reinstall </select> </font></td> </tr> |
From: Tom S. <tom...@us...> - 2004-04-25 22:01:54
|
Update of /cvsroot/phpplanner/phpplanner In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3864 Modified Files: common.php day.php Log Message: Fixed a shitload of bugs Index: day.php =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/day.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- day.php 7 Sep 2003 16:07:53 -0000 1.2 +++ day.php 25 Apr 2004 22:01:42 -0000 1.3 @@ -61,15 +61,7 @@ $_SESSION['userid'] => lang('private_only_you') ) ); - $smarty->assign('special_values', array_keys($config['colors'])); - - /* Bloody workaround, hrumpf */ - foreach($config['colors'] as $id => $values) - { - $valuelist[] = key($values); - } - $smarty->assign('special_labels', $valuelist ); $smarty->assign('form', $smarty->fetch('day.form.html') ); } else Index: common.php =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/common.php,v retrieving revision 1.15 retrieving revision 1.16 diff -u -d -r1.15 -r1.16 --- common.php 24 Apr 2004 22:50:20 -0000 1.15 +++ common.php 25 Apr 2004 22:01:32 -0000 1.16 @@ -57,7 +57,7 @@ { $_SESSION['language'] = $_POST['new_lang']; } - if (!isset($_SESSION['language'])) + if (!isset($_SESSION['language']) && isset($config['language']) ) { $_SESSION['language'] = $config['language']; } @@ -132,9 +132,9 @@ // ************************************************************************ function GetUserPermission($userid,$permission) { - $SQL = mysql_query("SELECT $permission FROM cal_users where id = $userid") or die(mysql_error()); + $SQL = mysql_query("SELECT $permission, is_admin FROM cal_users where id = $userid") or die(mysql_error()); $RS = mysql_fetch_array($SQL); - if ($RS[$permission] == 'true') { + if ($RS[$permission] == 'true' || $RS['is_admin'] == 'true' ) { return true; } else { return false; |
From: Tom S. <tom...@us...> - 2004-04-25 22:01:54
|
Update of /cvsroot/phpplanner/phpplanner/templates/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3864/templates/default Modified Files: day.form.html Log Message: Fixed a shitload of bugs Index: day.form.html =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/templates/default/day.form.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- day.form.html 23 Apr 2004 17:33:34 -0000 1.1 +++ day.form.html 25 Apr 2004 22:01:44 -0000 1.2 @@ -28,7 +28,6 @@ <td valign="middle"><font size="2"> {$lang.private}?</font></td> <td valign="middle"><font size="2"> <select name="private"> - {html_options options=$private_options selected=$edit.private} </select> |
From: Tom S. <tom...@us...> - 2004-04-25 22:01:53
|
Update of /cvsroot/phpplanner/phpplanner/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3864/lib Modified Files: calendar.class.php Log Message: Fixed a shitload of bugs Index: calendar.class.php =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/lib/calendar.class.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- calendar.class.php 24 Apr 2004 16:48:37 -0000 1.3 +++ calendar.class.php 25 Apr 2004 22:01:43 -0000 1.4 @@ -90,7 +90,7 @@ { mysql_query("INSERT INTO cal_items (`date`,`caption`,`description`,`added_by`,`last_updated`,`private`,`color`,`created`) - VALUES(". $stamp .", '". $caption ."', '". $description ."', ". $userid .", NOW(), '". $private ."', $color, " . time() . ")") or die(mysql_error()); + VALUES(". $stamp .", '". $caption ."', '". $description ."', ". $userid .", NOW(), '". $private ."', ". (int)$color .", " . time() . ")") or die(mysql_error()); send_header('Location: day.php?s='. $stamp); } else @@ -112,7 +112,6 @@ } function edit_event($stamp,$id,$newCaption,$new_escription,$private=0,$color=0) { - $SQL = mysql_query("SELECT * FROM cal_items WHERE id = ". $id ." @@ -126,8 +125,8 @@ last_updated = NOW(), edited_by = ". $_SESSION['userid'] .", private = ". $private .", - color = $color - WHERE id = ". $id); + color = ". (int)$color ." + WHERE id = ". $id) or die(mysql_error()); send_header('Location: day.php?s='. $stamp); } else |
From: Jeppe A. <no...@us...> - 2004-04-25 19:21:42
|
Update of /cvsroot/phpplanner/phpplanner In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30721 Modified Files: install.php Log Message: * All default user priviliges now set to true on creation using installer Index: install.php =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/install.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- install.php 24 Apr 2004 22:50:20 -0000 1.11 +++ install.php 25 Apr 2004 19:21:16 -0000 1.12 @@ -80,7 +80,7 @@ `reg_key` varchar( 10 ) default NULL , UNIQUE KEY `id` ( `id` ) ) TYPE = MYISAM;"; - $SQL["create_user"] = "INSERT INTO cal_users(username, password, is_admin) VALUES('" . $_POST['admin_username'] . "', '" . md5($_POST['admin_password']) . "', 'true')"; + $SQL["create_user"] = "INSERT INTO cal_users(username, password, allow_delete, allow_add, allow_edit, is_validated, is_admin) VALUES('" . $_POST['admin_username'] . "', '" . md5($_POST['admin_password']) . "', 'true', 'true', 'true', 'true', 'true')"; foreach ($SQL as $QDesc => $QCode) { mysql_query($QCode) or die("Unable to make change: " . $QDesc . ", returned: " . mysql_error()); |
From: Tom S. <tom...@us...> - 2004-04-24 22:53:08
|
Update of /cvsroot/phpplanner/CVSROOT In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5912 Modified Files: loginfo Log Message: . Index: loginfo =================================================================== RCS file: /cvsroot/phpplanner/CVSROOT/loginfo,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- loginfo 23 Apr 2004 17:39:07 -0000 1.3 +++ loginfo 24 Apr 2004 22:52:57 -0000 1.4 @@ -1,28 +1,2 @@ -# The "loginfo" file controls where "cvs commit" log information -# is sent. The first entry on a line is a regular expression which must match -# the directory that the change is being made to, relative to the -# $CVSROOT. If a match is found, then the remainder of the line is a filter -# program that should expect log information on its standard input. -# -# If the repository name does not match any of the regular expressions in this -# file, the "DEFAULT" line is used, if it is specified. -# -# If the name ALL appears as a regular expression it is always used -# in addition to the first matching regex or DEFAULT. -# -# You may specify a format string as part of the -# filter. The string is composed of a `%' followed -# by a single format character, or followed by a set of format -# characters surrounded by `{' and `}' as separators. The format -# characters are: -# -# s = file name -# V = old version number (pre-checkin) -# v = new version number (post-checkin) -# -# For example: -#ALL /cvsroot/sitedocs/CVSROOT/cvstools/syncmail -C4 -u %{sVv} ts...@dr... -ALL /cvsroot/sitedocs/CVSROOT/cvstools/syncmail -C4 -u %{sVv} php...@li... -#DEFAULT (echo ""; id; echo %s; date; cat) >> $CVSROOT/CVSROOT/commitlog -# or -#DEFAULT (echo ""; id; echo %{sVv}; date; cat) >> $CVSROOT/CVSROOT/commitlog +^phpplanner /cvsroot/sitedocs/CVSROOT/cvstools/syncmail -C4 -u %{sVv} php...@li... +^CVSROOT /cvsroot/sitedocs/CVSROOT/cvstools/syncmail -C4 -u %{sVv} ts...@dr... |
From: Tom S. <tom...@us...> - 2004-04-24 22:50:33
|
Update of /cvsroot/phpplanner/phpplanner/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5444/lib Modified Files: functions.php Log Message: fixups Index: functions.php =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/lib/functions.php,v retrieving revision 1.6 retrieving revision 1.7 diff -u -d -r1.6 -r1.7 --- functions.php 24 Apr 2004 22:35:43 -0000 1.6 +++ functions.php 24 Apr 2004 22:50:20 -0000 1.7 @@ -19,7 +19,7 @@ function hide() { global $config; - if (!$config['hide'] || $_SESSION['userid'] != 0) + if (!$config['hide_to_unregistered'] || $_SESSION['userid'] != 0) return false; else return true; |
From: Tom S. <tom...@us...> - 2004-04-24 22:50:33
|
Update of /cvsroot/phpplanner/phpplanner/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5444/admin Modified Files: config.php Log Message: fixups Index: config.php =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/admin/config.php,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- config.php 24 Apr 2004 22:45:42 -0000 1.3 +++ config.php 24 Apr 2004 22:50:20 -0000 1.4 @@ -82,9 +82,9 @@ </tr> <tr> <td nowrap>Hide to unregistered users <? show_hint('Unregistered users are not allowed to view the content of the calendar') ?></td> - <td><input type="radio" name="config_hide_unregistered" value="true" <?= ($config['hide_unregistered']) ? 'checked' : '' ?>> + <td><input type="radio" name="config_hide_to_unregistered" value="true" <?= ($config['hide_unregistered']) ? 'checked' : '' ?>> Yes - <input type="radio" name="config_hide_unregistered" value="false" <?= (!$config['hide_unregistered']) ? 'checked' : '' ?>> + <input type="radio" name="config_hide_to_unregistered" value="false" <?= (!$config['hide_unregistered']) ? 'checked' : '' ?>> No</td> </tr> <tr> |
From: Tom S. <tom...@us...> - 2004-04-24 22:50:31
|
Update of /cvsroot/phpplanner/phpplanner In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5444 Modified Files: common.php install.php Log Message: fixups Index: install.php =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/install.php,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- install.php 24 Apr 2004 22:22:19 -0000 1.10 +++ install.php 24 Apr 2004 22:50:20 -0000 1.11 @@ -32,7 +32,7 @@ 'cell_height' => '60', 'table_width' => '755', 'show_hints' => 'true', - 'hide' => 'false', + 'hide_to_unregistered' => 'false', 'require_mail_validation' => 'true', 'language' => '"english"', 'debug' => 'false'); Index: common.php =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/common.php,v retrieving revision 1.14 retrieving revision 1.15 diff -u -d -r1.14 -r1.15 --- common.php 24 Apr 2004 22:38:37 -0000 1.14 +++ common.php 24 Apr 2004 22:50:20 -0000 1.15 @@ -18,7 +18,7 @@ require_once(SMARTY_DIR .'Smarty.class.php'); $smarty = new Smarty; - if ( $config['debug'] ) + if ( @$config['debug'] ) { $smarty->compile_check = true; $smarty->force_compile = true; |
From: Tom S. <tom...@us...> - 2004-04-24 22:45:56
|
Update of /cvsroot/phpplanner/phpplanner/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4709/admin Modified Files: config.php Log Message: Don't fuck up mysql values if you save the config Index: config.php =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/admin/config.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- config.php 24 Apr 2004 22:42:54 -0000 1.2 +++ config.php 24 Apr 2004 22:45:42 -0000 1.3 @@ -119,13 +119,18 @@ </td> </tr> <tr valign="top"> + <td nowrap>MySQL database</td> + <td><input name="mysql_database" type="text" size="40" value="<?= $mysql['database'] ?>"> + </td> + </tr> + <tr valign="top"> <td nowrap>MySQL username</td> <td><input name="mysql_username" type="text" value="<?= $mysql['username'] ?>" size="40"> </td> </tr> <tr valign="top"> <td nowrap>MySQL password</td> - <td><input name="mysql_password" type="text" size="40"> + <td><input name="mysql_password" type="password" size="40" value="<?= $mysql['password'] ?>"> </td> </tr> <tr> |
From: Tom S. <tom...@us...> - 2004-04-24 22:43:03
|
Update of /cvsroot/phpplanner/phpplanner/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4236/lib Modified Files: libconfig.php Log Message: Make config-admin work Index: libconfig.php =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/lib/libconfig.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- libconfig.php 7 Sep 2003 16:07:54 -0000 1.2 +++ libconfig.php 24 Apr 2004 22:42:54 -0000 1.3 @@ -36,7 +36,7 @@ } - save_config('test.php'); + save_config('config.php'); } function fix_cfg_quotes($s) @@ -59,7 +59,7 @@ @chmod($config['path_to_calendar'] . $file,0777); /* Do a quick backup, just in case */ - copy($config['path_to_calendar'] . $file,$config['path_to_calendar'] . $file .".bak"); + @copy($config['path_to_calendar'] . $file,$config['path_to_calendar'] . $file .".bak"); if ( ($fp = fopen($config['path_to_calendar'] . $file, "w") ) != FALSE) { |
From: Tom S. <tom...@us...> - 2004-04-24 22:43:03
|
Update of /cvsroot/phpplanner/phpplanner/admin In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4236/admin Modified Files: config.php Log Message: Make config-admin work Index: config.php =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/admin/config.php,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- config.php 1 Sep 2003 21:01:44 -0000 1.1 +++ config.php 24 Apr 2004 22:42:54 -0000 1.2 @@ -4,7 +4,7 @@ { build_config($_POST); } - include('../test.php'); + include('../config.php'); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <html> |
From: Tom S. <tom...@us...> - 2004-04-24 22:38:47
|
Update of /cvsroot/phpplanner/phpplanner/templates/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3378/templates/default Modified Files: index.html Log Message: Capitalize in the template, not in the code Index: index.html =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/templates/default/index.html,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- index.html 24 Apr 2004 22:35:43 -0000 1.3 +++ index.html 24 Apr 2004 22:38:38 -0000 1.4 @@ -59,7 +59,7 @@ <form name="Selectlang" method="post"> <font size="1">{$lang.language}: </font><select name="new_lang" onChange="Selectlang.submit()"> - {html_options output=$languages values=$languages selected=$smarty.session.language} + {html_options output=$languages|capitalize values=$languages selected=$smarty.session.language} </select> </form> |
From: Tom S. <tom...@us...> - 2004-04-24 22:38:46
|
Update of /cvsroot/phpplanner/phpplanner In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3378 Modified Files: common.php Log Message: Capitalize in the template, not in the code Index: common.php =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/common.php,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- common.php 24 Apr 2004 22:35:42 -0000 1.13 +++ common.php 24 Apr 2004 22:38:37 -0000 1.14 @@ -164,7 +164,7 @@ { if ( !eregi("^(\.|CVS)",$file) ) { - $languages[] = ucwords(basename($file,'.php')); + $languages[] = basename($file,'.php'); } } $smarty->assign('languages', $languages); |
From: Tom S. <tom...@us...> - 2004-04-24 22:35:57
|
Update of /cvsroot/phpplanner/phpplanner/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2895/lib Modified Files: functions.php Log Message: Make logout link work Index: functions.php =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/lib/functions.php,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- functions.php 7 Sep 2003 16:07:54 -0000 1.5 +++ functions.php 24 Apr 2004 22:35:43 -0000 1.6 @@ -125,7 +125,7 @@ delete_cookie("cal_username"); delete_cookie("cal_password"); - $SQL = mysql_query("SELECT id,name FROM cal_users WHERE username = '". $username."' AND password = '". $password ."' and allow_add = 'true'") or die(mysql_error()); + $SQL = mysql_query("SELECT id,name FROM cal_users WHERE username = '". $username."' AND password = '". $password ."' and ((allow_add = 'true' and is_validated = 'true') or is_admin='true')") or die(mysql_error()); if (mysql_num_rows($SQL) > 0) { |
From: Tom S. <tom...@us...> - 2004-04-24 22:35:57
|
Update of /cvsroot/phpplanner/phpplanner/templates/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2895/templates/default Modified Files: index.html Log Message: Make logout link work Index: index.html =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/templates/default/index.html,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- index.html 24 Apr 2004 22:24:55 -0000 1.2 +++ index.html 24 Apr 2004 22:35:43 -0000 1.3 @@ -43,7 +43,7 @@ </form> <font size="1"> {else} - {$lang.logged_in_as} <strong>{$logged_in_as}</strong> [<a href="edit_profile.php">{$lang.edit_profile}</a>] [<a href="">{$lang.log_out}</a>]<br /> + {$lang.logged_in_as} <strong>{$logged_in_as}</strong> [<a href="edit_profile.php">{$lang.edit_profile}</a>] [<a href="index.php?logout">{$lang.log_out}</a>]<br /> {/if} {$lang.server_time} : {$SERVERTIME}<br> {$lang.total_users} : {$TOTAL_USERS} - {$lang.total_events} : {$TOTAL_EVENTS} </font></td> |
From: Tom S. <tom...@us...> - 2004-04-24 22:35:55
|
Update of /cvsroot/phpplanner/phpplanner In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2895 Modified Files: common.php Log Message: Make logout link work Index: common.php =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/common.php,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- common.php 24 Apr 2004 22:29:13 -0000 1.12 +++ common.php 24 Apr 2004 22:35:42 -0000 1.13 @@ -107,7 +107,7 @@ } // ************************************************************************ - if (isset($_GET['mode']) && $_GET['mode'] == 'logout') + if ( isset($_GET['logout']) ) { delete_cookie("cal_username"); delete_cookie("cal_password"); |
From: Tom S. <tom...@us...> - 2004-04-24 22:29:22
|
Update of /cvsroot/phpplanner/phpplanner In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1641 Modified Files: common.php Log Message: Capitalize languages Index: common.php =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/common.php,v retrieving revision 1.11 retrieving revision 1.12 diff -u -d -r1.11 -r1.12 --- common.php 24 Apr 2004 22:14:59 -0000 1.11 +++ common.php 24 Apr 2004 22:29:13 -0000 1.12 @@ -164,7 +164,7 @@ { if ( !eregi("^(\.|CVS)",$file) ) { - $languages[] = basename($file,'.php'); + $languages[] = ucwords(basename($file,'.php')); } } $smarty->assign('languages', $languages); |
From: Tom S. <tom...@us...> - 2004-04-24 22:25:04
|
Update of /cvsroot/phpplanner/phpplanner/templates/default In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv510 Modified Files: index.html Log Message: Layout Index: index.html =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/templates/default/index.html,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- index.html 23 Apr 2004 17:33:34 -0000 1.1 +++ index.html 24 Apr 2004 22:24:55 -0000 1.2 @@ -52,10 +52,10 @@ <div align="center"> <table width="{$config.table_width}" border="0" cellspacing="0" cellpadding="0"> <tr align="center" valign="middle"> - <td><font size="1">Version: {$config.version}</font></td> + <td width="200"><font size="1">Version: {$config.version}</font></td> <td><font size="1">Copyright © 2002 - 2003. All Rights Reserved.<br /> A <a href="http://dreamcoder.dk" target="_blank">dreamcoder.dk</a> product - <a href="http://phpplanner.sourceforge.net" target="_blank">phpplanner.sourceforge.net</a></font> </td> - <td> + <td width="200"> <form name="Selectlang" method="post"> <font size="1">{$lang.language}: </font><select name="new_lang" onChange="Selectlang.submit()"> |
From: Tom S. <tom...@us...> - 2004-04-24 22:24:03
|
Update of /cvsroot/phpplanner/phpplanner/lang In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32674/lang Added Files: german.php Log Message: Added german translations, thanks Julian Theis --- NEW FILE: german.php --- <?php /* * Maintained by Tom Sommer * Email: web...@ts... */ $lang['lc_time'] = 'ger'; $lang['language'] = 'Sprache'; $lang['yes'] = 'Ja'; $lang['no'] = 'Nein'; /* Top */ $lang['previous'] = 'zurück'; $lang['next'] = 'weiter'; $lang['search'] = 'Suche'; $lang['members'] = 'Mitglieder'; $next['next_year'] = 'Nextes Jahr'; $lang['last_year'] = 'Letztes Jahr'; /* bottom.php */ $lang['password'] = 'Passwort'; $lang['username'] = 'Benutzer'; $lang['retype_password'] = 'Passwort'; $lang['register'] = 'Anmelden'; $lang['edit_profile'] = 'Profil ändern'; $lang['logged_in_as'] = 'Sie sind angemeldet als'; $lang['log_in'] = 'Anmelden'; $lang['log_out'] = 'Abmelden'; $lang['server_time'] = 'Server Zeit'; $lang['total_users'] = 'Benutzer gesammt'; $lang['total_events'] = 'Termine gesammt'; /* manage.php */ $lang['no_items'] = 'Diesem Datum wurden keine Termine zugeordnet'; $lang['items_hidden'] = 'Alle Daten sind nun nur registrierten Mitgliedern zugänglich'; $lang['move_event'] = 'Termin verschieben'; $lang['add_new_event'] = 'Neuen Termin eintragen'; $lang['edit_event'] = 'Termin bearbeiten'; $lang['caption'] = 'Überschrift'; $lang['description'] = 'Beschreibung'; $lang['private'] = 'Privat'; $lang['color'] = 'Farbe'; $lang['private_all'] = 'Kann von allen eingesehen und verändert werden'; $lang['private_only_you'] = 'Kann nur von ihnen eingesehen und verändert werden'; $lang['special'] = 'Special Termin'; $lang['special_info'] = 'Gibt dem Termin eine andere Farbe und Priorität'; $lang['added_by'] = 'eingetragen von'; $lang['edited_by'] = 'verändert von'; $lang['add_new'] = 'neuen Termin eintragen'; $lang['back_to_calendar'] = 'Zurück zum Kalender'; $lang['week'] = 'Woche'; $lang['monday'] = 'Montag'; $lang['sunday'] = 'Sonntag'; $lang['tuesday'] = 'Dienstag'; $lang['wednesday'] = 'Mittwoch'; $lang['thursday'] = 'Donnerstag'; $lang['friday'] = 'Freitag'; $lang['saturday'] = 'Samstag'; /* Errors */ $lang['error_wrong_pass'] = 'Falsches Passwort oder Benutzernamee'; $lang['error_missing_arg'] = 'Sie haben nicht alle Pflichtfelder ausgefüllt'; $lang['correct_pass'] = 'Passwort und Benutzername akzeptiert'; /* Basics */ $lang['name'] = 'Name'; $lang['email'] = 'E-mail'; $lang['last_ip'] = 'Letzte IP'; $lang['last_login'] = 'Letzte Anmeldung'; $lang['added'] = 'hinzugefügt'; $lang['edited'] = 'bearbeitet'; $lang['can_add'] = 'Darf hinzufügen'; $lang['can_edit'] = 'Darf verändern'; $lang['can_delete'] = 'Darf löschen'; $lang['total_private'] = 'Private Termine gesammt'; $lang['toggle_edit'] = 'Bearbeiten'; $lang['toggle_admin'] = 'Administrator'; $lang['toggle_add'] = 'Hinzufügen'; $lang['toggle_delete'] = 'Löschen'; $lang['delete_user'] = 'Benutzer löschen!!'; $lang['statistics'] = 'Statistik'; $lang['is_an_admin'] = 'ist Administrator'; $lang['return'] = 'Zurück zur letzten Seite'; $lang['password_note'] = 'Passwort ist niemandem einsehbar und wird verschlüsselt'; $lang['submit'] = 'Weiter >'; $lang['delete'] = 'Löschen'; $lang['edit'] = 'Berarbeiten'; $lang['hidden'] = 'Versteckt'; $lang['today'] = 'Heute'; $lang['search_nomatch'] = 'Keine Übereinstimmungen auf Ihre Anfrage gefunden'; $lang['search_found'] = 'Termin gefunden'; $lang['search_query'] = 'Suche: '; $lang['account_exists'] = 'Account bereits vergeben'; $lang['password_nomatch'] = 'Das Passwort stimmt nicht'; $lang['register_success'] = 'Ihre Registrierung war erfolgreich! Ihre Zugansdaten wurden ihnen per Email übermittelt.'; $lang['password_change_warning'] = 'Wenn sie etwas ins Feld Passwort eingeben wird das ihr neues Passwort sein.'; $lang['email_novalid'] = 'Geben sie eine gültige Email Adresse ein'; $lang['account_activated'] = 'Ihr Account ist nun aktiv. Bitte melden sie sich nun an.'; $lang['account_nofound'] = 'Ihr Account wurde in der Datenbank nicht gefunden.'; $lang['register_email_validation'] = 'Nach ihrer Registrierung müssen sie ihren Account bestätigen<brNach dem sie das getan haben <u>können sie</u> <strong>neue Termine hinzufügen</strong>. Sie können <u>keine</u> Einträge <strong>ändern</strong> oder <strong>löschen</strong> ohne die Erlaubnis eines Administrators.'; $lang['register_no_validation'] = 'Nach ihrer Registrierung müssen sie ihren Account bestätigen<brNach dem sie das getan haben <u>können sie</u> <strong>neue Termine hinzufügen</strong>. Sie können <u>keine</u> Einträge <strong>ändern</strong> oder <strong>löschen</strong> ohne die Erlaubnis eines Administrators.'; ?> |
From: Tom S. <tom...@us...> - 2004-04-24 22:22:28
|
Update of /cvsroot/phpplanner/phpplanner In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32337 Modified Files: install.php Log Message: Make the compile folder during installation Index: install.php =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/install.php,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- install.php 24 Apr 2004 22:15:00 -0000 1.9 +++ install.php 24 Apr 2004 22:22:19 -0000 1.10 @@ -102,7 +102,7 @@ $filemode = (( $_POST['install_type'] != 'install' ) ? 'a+' : 'w+'); /* Build those lovely config files */ - if ( ($fp = fopen($config_file, $filemode) ) != FALSE) + if ( ($fp = @fopen($config_file, $filemode) ) != FALSE) { if ( $_POST['install_type'] == 'install' ) { @@ -139,6 +139,10 @@ die('Error writing config.php file'); } + if ( !is_dir($_POST['path_to_calendar'] . 'templates/_compiled') ) { + mkdir($_POST['path_to_calendar'] . 'templates/_compiled', 0777); + } + } |
From: Tom S. <tom...@us...> - 2004-04-24 22:17:26
|
Update of /cvsroot/phpplanner/phpplanner In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31443 Removed Files: config.php Log Message: Be less harsh about installed status, assume that is config.php is there - we are installed --- config.php DELETED --- |
From: Tom S. <tom...@us...> - 2004-04-24 22:15:08
|
Update of /cvsroot/phpplanner/phpplanner In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31086 Modified Files: common.php install.php Log Message: Be less harsh about installed status, assume that is config.php is there - we are installed Index: install.php =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/install.php,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- install.php 23 Apr 2004 19:03:53 -0000 1.8 +++ install.php 24 Apr 2004 22:15:00 -0000 1.9 @@ -132,7 +132,6 @@ fwrite($fp, $fdata); fclose($fp); - rename(__FILE__,__FILE__ .'.lock'); header("Location: index.php"); } else Index: common.php =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/common.php,v retrieving revision 1.10 retrieving revision 1.11 diff -u -d -r1.10 -r1.11 --- common.php 7 Sep 2003 16:07:53 -0000 1.10 +++ common.php 24 Apr 2004 22:14:59 -0000 1.11 @@ -1,10 +1,6 @@ <? - if ( is_file('install.php.lock') && is_file('install.php') ) - { - die('Please remove the installer (install.php)'); - } - if ( is_file('install.php') ) + if ( !is_file('config.php') ) { header('Location: install.php'); die(); |
From: Jeppe A. <no...@us...> - 2004-04-24 16:48:49
|
Update of /cvsroot/phpplanner/phpplanner/lib In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5180/lib Modified Files: calendar.class.php Log Message: * Replaced UNIX_TIMESTAMP with time() in create_event, did some conflicts on my windows testing server Index: calendar.class.php =================================================================== RCS file: /cvsroot/phpplanner/phpplanner/lib/calendar.class.php,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- calendar.class.php 7 Sep 2003 16:07:53 -0000 1.2 +++ calendar.class.php 24 Apr 2004 16:48:37 -0000 1.3 @@ -90,7 +90,7 @@ { mysql_query("INSERT INTO cal_items (`date`,`caption`,`description`,`added_by`,`last_updated`,`private`,`color`,`created`) - VALUES(". $stamp .", '". $caption ."', '". $description ."', ". $userid .", NOW(), '". $private ."', $color, UNIX_TIMESTAMP)") or die(mysql_error()); + VALUES(". $stamp .", '". $caption ."', '". $description ."', ". $userid .", NOW(), '". $private ."', $color, " . time() . ")") or die(mysql_error()); send_header('Location: day.php?s='. $stamp); } else |