phpslash-commit Mailing List for phpSlash (Page 73)
Brought to you by:
joestewart,
nhruby
You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(11) |
Nov
(59) |
Dec
(60) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
(52) |
Feb
(77) |
Mar
(118) |
Apr
(76) |
May
(106) |
Jun
(145) |
Jul
(9) |
Aug
(15) |
Sep
(78) |
Oct
(83) |
Nov
(105) |
Dec
(51) |
2003 |
Jan
(105) |
Feb
(100) |
Mar
(111) |
Apr
(149) |
May
(95) |
Jun
(56) |
Jul
(8) |
Aug
(2) |
Sep
|
Oct
(22) |
Nov
(117) |
Dec
(6) |
2004 |
Jan
(1) |
Feb
|
Mar
(3) |
Apr
(25) |
May
|
Jun
(11) |
Jul
(26) |
Aug
(85) |
Sep
(119) |
Oct
(312) |
Nov
(271) |
Dec
(5) |
2005 |
Jan
(6) |
Feb
|
Mar
|
Apr
(12) |
May
(7) |
Jun
(8) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Joe S. <joe...@us...> - 2002-11-11 22:39:50
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/admin In directory usw-pr-cvs1:/tmp/cvs-serv26134/phpslash-ft/public_html/admin Modified Files: submissionAdmin.php3 Log Message: translate admin page titles Index: submissionAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/submissionAdmin.php3,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** submissionAdmin.php3 11 Nov 2002 22:22:39 -0000 1.9 --- submissionAdmin.php3 11 Nov 2002 22:39:47 -0000 1.10 *************** *** 1,4 **** <?php ! // $id: submissionAdmin.php3,v 1.0 2000/04/25 12:08:03 ajay Exp $ require("config.php3"); --- 1,4 ---- <?php ! // $Id$ require("config.php3"); |
From: Joe S. <joe...@us...> - 2002-11-11 22:38:46
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/admin In directory usw-pr-cvs1:/tmp/cvs-serv25750/phpslash-ft/public_html/admin Modified Files: storyAdmin.php3 Log Message: translate admin page titles Index: storyAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/storyAdmin.php3,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** storyAdmin.php3 11 Nov 2002 22:22:39 -0000 1.14 --- storyAdmin.php3 11 Nov 2002 22:38:43 -0000 1.15 *************** *** 1,5 **** <?php ! /* $id: storyAdmin.php3,v 1.0 2000/04/25 12:08:03 ajay Exp $ */ require("config.php3"); --- 1,5 ---- <?php ! /* $Id$ */ require("config.php3"); |
From: Joe S. <joe...@us...> - 2002-11-11 22:37:35
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/admin In directory usw-pr-cvs1:/tmp/cvs-serv25257/phpslash-ft/public_html/admin Modified Files: sectionAdmin.php3 Log Message: translate admin page titles Index: sectionAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/sectionAdmin.php3,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** sectionAdmin.php3 11 Nov 2002 22:22:39 -0000 1.7 --- sectionAdmin.php3 11 Nov 2002 22:37:32 -0000 1.8 *************** *** 1,4 **** <?php ! // $id: sectionAdmin.php3,v 1.0 2000/04/25 12:08:03 ajay Exp $ require("config.php3"); --- 1,4 ---- <?php ! // $Id$ require("config.php3"); |
From: Joe S. <joe...@us...> - 2002-11-11 22:23:09
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv19011/phpslash-ft Modified Files: CHANGES Log Message: translate admin page titles Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.596 retrieving revision 1.597 diff -C2 -d -r1.596 -r1.597 *** CHANGES 11 Nov 2002 21:22:57 -0000 1.596 --- CHANGES 11 Nov 2002 22:22:35 -0000 1.597 *************** *** 13,16 **** --- 13,22 ---- 9 - Removal of something (kill -9 :) + 2002-November-11 4:00PM CST Joe Stewart <joe...@us...> + [W] - authorAdmin.php3, blockAdmin.php3, commentAdmin.php3, glossaryAdmin.php3, + groupAdmin.php3, infologAdmin.php3, mailinglistAdmin.php3, pollAdmin.php3, + sectionAdmin.php3, storyAdmin.php3, submissionAdmin.php3, topicAdmin.php3, + and variableAdmin.php3 - translate admin page titles (thanks Lars K.). + 2002-November-11 3:00PM CST Joe Stewart <joe...@us...> [W] - about.php3, article.php3, backend.php3, comment.php3, errordocument.php3, |
From: Joe S. <joe...@us...> - 2002-11-11 22:22:42
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/admin In directory usw-pr-cvs1:/tmp/cvs-serv19011/phpslash-ft/public_html/admin Modified Files: authorAdmin.php3 blockAdmin.php3 commentAdmin.php3 glossaryAdmin.php3 groupAdmin.php3 infologAdmin.php3 mailinglistAdmin.php3 pollAdmin.php3 sectionAdmin.php3 storyAdmin.php3 submissionAdmin.php3 topicAdmin.php3 variableAdmin.php3 Log Message: translate admin page titles Index: authorAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/authorAdmin.php3,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** authorAdmin.php3 10 Sep 2002 21:09:50 -0000 1.11 --- authorAdmin.php3 11 Nov 2002 22:22:36 -0000 1.12 *************** *** 3,10 **** /* $Id$ */ - $pagetitle = "Author Administration"; // header title - $xsiteobject = "Administration"; // Defines The META TAG Page Type - require("config.php3"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); --- 3,11 ---- /* $Id$ */ require("config.php3"); + + $pagetitle = pslgetText("Author Administration"); // header title + $xsiteobject = pslgetText("Administration"); // Defines The META TAG Page Type + page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); *************** *** 20,26 **** if(!empty($HTTP_POST_VARS['submit'])) { ! $submit = $HTTP_POST_VARS['submit']; } elseif (!empty($HTTP_GET_VARS['submit'])) { ! $submit = $HTTP_GET_VARS['submit']; } else { $submit = ''; --- 21,27 ---- if(!empty($HTTP_POST_VARS['submit'])) { ! $submit = clean($HTTP_POST_VARS['submit']); } elseif (!empty($HTTP_GET_VARS['submit'])) { ! $submit = clean($HTTP_GET_VARS['submit']); } else { $submit = ''; Index: blockAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/blockAdmin.php3,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** blockAdmin.php3 24 Oct 2002 19:36:04 -0000 1.10 --- blockAdmin.php3 11 Nov 2002 22:22:36 -0000 1.11 *************** *** 3,14 **** /* $Id$ */ /* header title */ ! $pagetitle = "Block Administration"; /* Defines The META TAG Page Type */ ! $xsiteobject = "Administration"; ! ! /* Require the config */ ! require("config.php3"); /* Open the page with session variables enabled */ --- 3,14 ---- /* $Id$ */ + /* Require the config */ + require("config.php3"); + /* header title */ ! $pagetitle = pslgetText("Block Administration"); /* Defines The META TAG Page Type */ ! $xsiteobject = pslgetText("Administration"); /* Open the page with session variables enabled */ *************** *** 27,33 **** if(!empty($HTTP_POST_VARS['submit'])) { ! $submit = $HTTP_POST_VARS['submit']; } elseif (!empty($HTTP_GET_VARS['submit'])) { ! $submit = $HTTP_GET_VARS['submit']; } else { $submit = ''; --- 27,33 ---- if(!empty($HTTP_POST_VARS['submit'])) { ! $submit = clean($HTTP_POST_VARS['submit'], true); } elseif (!empty($HTTP_GET_VARS['submit'])) { ! $submit = clean($HTTP_GET_VARS['submit']); } else { $submit = ''; Index: commentAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/commentAdmin.php3,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** commentAdmin.php3 16 Sep 2002 21:15:17 -0000 1.12 --- commentAdmin.php3 11 Nov 2002 22:22:36 -0000 1.13 *************** *** 5,12 **** /* TODO: */ - $pagetitle = "Comment Administration"; // The name to be displayed in the header - $xsiteobject = "Administration"; // Defines The META TAG Page Type - require("config.php3"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); --- 5,13 ---- /* TODO: */ require("config.php3"); + + $pagetitle = pslgetText("Comment Administration"); // The name to be displayed in the header + $xsiteobject = pslgetText("Administration"); // Defines The META TAG Page Type + page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); *************** *** 29,35 **** if(!empty($HTTP_POST_VARS['action'])) { ! $action = $HTTP_POST_VARS['action']; } elseif (!empty($HTTP_GET_VARS['action'])) { ! $action = $HTTP_GET_VARS['action']; } else { $action = ''; --- 30,36 ---- if(!empty($HTTP_POST_VARS['action'])) { ! $action = clean($HTTP_POST_VARS['action'], true); } elseif (!empty($HTTP_GET_VARS['action'])) { ! $action = clean($HTTP_GET_VARS['action']); } else { $action = ''; Index: glossaryAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/glossaryAdmin.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** glossaryAdmin.php3 10 Sep 2002 21:09:50 -0000 1.4 --- glossaryAdmin.php3 11 Nov 2002 22:22:37 -0000 1.5 *************** *** 3,10 **** /* $Id$ */ - $pagetitle = "Glossary Administration"; // header title - $xsiteobject = "Administration"; // Defines The META TAG Page Type - require("config.php3"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); --- 3,11 ---- /* $Id$ */ require("config.php3"); + + $pagetitle = pslgetText("Glossary Administration"); // header title + $xsiteobject = pslgetText("Administration"); // Defines The META TAG Page Type + page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); *************** *** 31,42 **** if(!empty($HTTP_POST_VARS['submit'])) { ! $submit = $HTTP_POST_VARS['submit']; ! $glossary_ary = $HTTP_POST_VARS['glossary_ary']; ! $glossary_id = $HTTP_POST_VARS['glossary_id']; ! $glossary_term = $HTTP_POST_VARS['glossary_term']; ! $glossary_def = $HTTP_POST_VARS['glossary_def']; } elseif (!empty($HTTP_GET_VARS['submit'])) { ! $submit = $HTTP_GET_VARS['submit']; } else { $submit = ''; --- 32,43 ---- if(!empty($HTTP_POST_VARS['submit'])) { ! $submit = clean($HTTP_POST_VARS['submit']); ! $glossary_ary = clean($HTTP_POST_VARS['glossary_ary'], true); ! $glossary_id = clean($HTTP_POST_VARS['glossary_id']); ! $glossary_term = clean($HTTP_POST_VARS['glossary_term']); ! $glossary_def = clean($HTTP_POST_VARS['glossary_def'], true); } elseif (!empty($HTTP_GET_VARS['submit'])) { ! $submit = clean($HTTP_GET_VARS['submit']); } else { $submit = ''; Index: groupAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/groupAdmin.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** groupAdmin.php3 11 Sep 2002 20:21:52 -0000 1.4 --- groupAdmin.php3 11 Nov 2002 22:22:39 -0000 1.5 *************** *** 3,10 **** /* $Id$ */ - $pagetitle = "Group Administration"; // header title - $xsiteobject = "Administration"; // Defines The META TAG Page Type - require("config.php3"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); --- 3,11 ---- /* $Id$ */ require("config.php3"); + + $pagetitle = pslgetText("Group Administration"); // header title + $xsiteobject = pslgetText("Administration"); // Defines The META TAG Page Type + page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); *************** *** 30,38 **** if(!empty($HTTP_POST_VARS['submit'])) { ! $submit = $HTTP_POST_VARS['submit']; } elseif (!empty($HTTP_GET_VARS['submit'])) { ! $submit = $HTTP_GET_VARS['submit']; ! $group_id = $HTTP_GET_VARS['group_id']; ! $permission_id = $HTTP_GET_VARS['permission_id']; } else { --- 31,39 ---- if(!empty($HTTP_POST_VARS['submit'])) { ! $submit = clean($HTTP_POST_VARS['submit']); } elseif (!empty($HTTP_GET_VARS['submit'])) { ! $submit = clean($HTTP_GET_VARS['submit']); ! $group_id = clean($HTTP_GET_VARS['group_id']); ! $permission_id = clean($HTTP_GET_VARS['permission_id']); } else { *************** *** 45,99 **** case "delete": if ($perm->have_perm("groupDelete")) { ! $success = $group->deleteGroup($group_id); ! if($success) { $content .= getMessage( pslgetText($group->getMessage())); ! } else { $content .= getError( pslgetText($group->getMessage())); ! } ! } if ($perm->have_perm("groupNew")) { $content .= $group->newGroup(); } ! if ($perm->have_perm("groupList")) { ! $content .= $group->listGroup(); ! } ! if ($perm->have_perm("permissionNew")) { ! $content .= $group->editPermission(); } ! if ($perm->have_perm("permissionList")) { ! $content .= $group->listPermission(); } ! break; case "submit": ! $success = $group->saveGroup($HTTP_POST_VARS); if($success) { $content .= getMessage( pslgetText($group->getMessage())); ! } else { $content .= getError( pslgetText($group->getMessage())); ! } if ($perm->have_perm("groupNew")) { $content .= $group->newGroup(); } ! if ($perm->have_perm("groupList")) { ! $content .= $group->listGroup(); ! } ! if ($perm->have_perm("permissionNew")) { ! $content .= $group->editPermission(); } ! if ($perm->have_perm("permissionList")) { ! $content .= $group->listPermission(); } ! break; case "edit": ! $ary["group_id"] = $HTTP_GET_VARS['group_id']; // debug("ary[group_id]", $ary["group_id"]); ! if ($perm->have_perm("groupEdit")) { ! $content .= $group->editGroup($ary); } ! if ($perm->have_perm("groupList")) { ! $content .= $group->listGroup(); ! } ! break; case "deleteperm": --- 46,100 ---- case "delete": if ($perm->have_perm("groupDelete")) { ! $success = $group->deleteGroup($group_id); ! if($success) { $content .= getMessage( pslgetText($group->getMessage())); ! } else { $content .= getError( pslgetText($group->getMessage())); ! } ! } if ($perm->have_perm("groupNew")) { $content .= $group->newGroup(); } ! if ($perm->have_perm("groupList")) { ! $content .= $group->listGroup(); ! } ! if ($perm->have_perm("permissionNew")) { ! $content .= $group->editPermission(); } ! if ($perm->have_perm("permissionList")) { ! $content .= $group->listPermission(); } ! break; case "submit": ! $success = $group->saveGroup(clean($HTTP_POST_VARS)); if($success) { $content .= getMessage( pslgetText($group->getMessage())); ! } else { $content .= getError( pslgetText($group->getMessage())); ! } if ($perm->have_perm("groupNew")) { $content .= $group->newGroup(); } ! if ($perm->have_perm("groupList")) { ! $content .= $group->listGroup(); ! } ! if ($perm->have_perm("permissionNew")) { ! $content .= $group->editPermission(); } ! if ($perm->have_perm("permissionList")) { ! $content .= $group->listPermission(); } ! break; case "edit": ! $ary["group_id"] = clean($HTTP_GET_VARS['group_id']); // debug("ary[group_id]", $ary["group_id"]); ! if ($perm->have_perm("groupEdit")) { ! $content .= $group->editGroup($ary); } ! if ($perm->have_perm("groupList")) { ! $content .= $group->listGroup(); ! } ! break; case "deleteperm": *************** *** 101,151 **** if($success) { $content .= getMessage( pslgetText($group->getMessage())); ! } else { $content .= getError( pslgetText($group->getMessage())); ! } if ($perm->have_perm("groupNew")) { $content .= $group->newGroup(); } ! if ($perm->have_perm("groupList")) { ! $content .= $group->listGroup(); ! } ! if ($perm->have_perm("permissionNew")) { ! $content .= $group->editPermission(); } ! if ($perm->have_perm("permissionList")) { ! $content .= $group->listPermission(); } ! break; case "submitperm": $success = $group->savePermission($HTTP_POST_VARS); ! if($success) { $content .= getMessage( pslgetText($group->getMessage())); ! } else { $content .= getError( pslgetText($group->getMessage())); ! } if ($perm->have_perm("groupNew")) { $content .= $group->newGroup(); } ! if ($perm->have_perm("groupList")) { ! $content .= $group->listGroup(); ! } ! if ($perm->have_perm("permissionNew")) { ! $content .= $group->editPermission(); } ! if ($perm->have_perm("permissionList")) { ! $content .= $group->listPermission(); } ! break; case "editperm": $ary["permission_id"] = $HTTP_GET_VARS['permission_id']; // debug("ary[permission_id]", $ary["permission_id"]); ! if ($perm->have_perm("permissionEdit")) { ! $content .= $group->editPermission($ary); ! } ! if ($perm->have_perm("permissionList")) { ! $content .= $group->listPermission(); } ! break; default: --- 102,152 ---- if($success) { $content .= getMessage( pslgetText($group->getMessage())); ! } else { $content .= getError( pslgetText($group->getMessage())); ! } if ($perm->have_perm("groupNew")) { $content .= $group->newGroup(); } ! if ($perm->have_perm("groupList")) { ! $content .= $group->listGroup(); ! } ! if ($perm->have_perm("permissionNew")) { ! $content .= $group->editPermission(); } ! if ($perm->have_perm("permissionList")) { ! $content .= $group->listPermission(); } ! break; case "submitperm": $success = $group->savePermission($HTTP_POST_VARS); ! if($success) { $content .= getMessage( pslgetText($group->getMessage())); ! } else { $content .= getError( pslgetText($group->getMessage())); ! } if ($perm->have_perm("groupNew")) { $content .= $group->newGroup(); } ! if ($perm->have_perm("groupList")) { ! $content .= $group->listGroup(); ! } ! if ($perm->have_perm("permissionNew")) { ! $content .= $group->editPermission(); } ! if ($perm->have_perm("permissionList")) { ! $content .= $group->listPermission(); } ! break; case "editperm": $ary["permission_id"] = $HTTP_GET_VARS['permission_id']; // debug("ary[permission_id]", $ary["permission_id"]); ! if ($perm->have_perm("permissionEdit")) { ! $content .= $group->editPermission($ary); ! } ! if ($perm->have_perm("permissionList")) { ! $content .= $group->listPermission(); } ! break; default: *************** *** 153,164 **** $content .= $group->newGroup(); } ! if ($perm->have_perm("groupList")) { ! $content .= $group->listGroup(); ! } ! if ($perm->have_perm("permissionNew")) { ! $content .= $group->editPermission(); } ! if ($perm->have_perm("permissionList")) { ! $content .= $group->listPermission(); } } --- 154,165 ---- $content .= $group->newGroup(); } ! if ($perm->have_perm("groupList")) { ! $content .= $group->listGroup(); ! } ! if ($perm->have_perm("permissionNew")) { ! $content .= $group->editPermission(); } ! if ($perm->have_perm("permissionList")) { ! $content .= $group->listPermission(); } } Index: infologAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/infologAdmin.php3,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** infologAdmin.php3 11 Sep 2002 20:21:53 -0000 1.7 --- infologAdmin.php3 11 Nov 2002 22:22:39 -0000 1.8 *************** *** 1,11 **** <?php // Header title ! $pagetitle = "Administration"; // Defines The META TAG Page Type ! $xsiteobject = "Administration"; - require("config.php3"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); --- 1,13 ---- <?php + // $Id$ + + require("config.php3"); // Header title ! $pagetitle = pslgetText("Administration"); // Defines The META TAG Page Type ! $xsiteobject = pslgetText("Administration"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); *************** *** 31,35 **** case "IdDelete": // debug("loginfoadmin::infolog_ary", $infolog_ary); ! if($log->deleteLogByID($HTTP_POST_VARS["infolog_ary"])) { $content .= getMessage($log->getMessage()); } --- 33,37 ---- case "IdDelete": // debug("loginfoadmin::infolog_ary", $infolog_ary); ! if($log->deleteLogByID(clean($HTTP_POST_VARS["infolog_ary"]))) { $content .= getMessage($log->getMessage()); } *************** *** 37,41 **** break; case "keyDelete": ! if($log->deleteLogByKeyword($HTTP_POST_VARS["infolog_delete_key"])) { $content .= getMessage($log->getMessage()); } --- 39,43 ---- break; case "keyDelete": ! if($log->deleteLogByKeyword(clean($HTTP_POST_VARS["infolog_delete_key"]))) { $content .= getMessage($log->getMessage()); } Index: mailinglistAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/mailinglistAdmin.php3,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** mailinglistAdmin.php3 10 Sep 2002 21:09:50 -0000 1.6 --- mailinglistAdmin.php3 11 Nov 2002 22:22:39 -0000 1.7 *************** *** 3,10 **** /* $Id$ */ - $pagetitle = "Mailing List Admin"; // header title - $xsiteobject = "Administration"; // Defines The META TAG Page Type - require('config.php3'); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); --- 3,11 ---- /* $Id$ */ require('config.php3'); + + $pagetitle = pslgetText("Mailing List Admin"); // header title + $xsiteobject = pslgetText("Administration"); // Defines The META TAG Page Type + page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); *************** *** 27,33 **** if(!empty($HTTP_POST_VARS['action'])) { ! $action = $HTTP_POST_VARS['action']; } elseif (!empty($HTTP_GET_VARS['action'])) { ! $action = $HTTP_GET_VARS['action']; } else { $action = ''; --- 28,34 ---- if(!empty($HTTP_POST_VARS['action'])) { ! $action = clean($HTTP_POST_VARS['action']); } elseif (!empty($HTTP_GET_VARS['action'])) { ! $action = clean($HTTP_GET_VARS['action']); } else { $action = ''; *************** *** 45,49 **** break; case "send_newsletter": ! if($list->newsletterSend($HTTP_POST_VARS)) { $content .= getMessage($list->getMessage()); } else { --- 46,50 ---- break; case "send_newsletter": ! if($list->newsletterSend(clean($HTTP_POST_VARS, true))) { $content .= getMessage($list->getMessage()); } else { *************** *** 52,56 **** break; case "subscribe": ! if($list->subscribe($HTTP_POST_VARS)) { $content .= getMessage($list->getMessage()); } else { --- 53,57 ---- break; case "subscribe": ! if($list->subscribe(clean($HTTP_POST_VARS,true))) { $content .= getMessage($list->getMessage()); } else { *************** *** 59,63 **** break; case "unsubscribe": ! if($list->subscribe($HTTP_POST_VARS)) { $content .= getMessage($list->getMessage()); } else { --- 60,64 ---- break; case "unsubscribe": ! if($list->subscribe(clean($HTTP_POST_VARS,true))) { $content .= getMessage($list->getMessage()); } else { *************** *** 67,71 **** case "mass_delete": //debug("mass_del", $HTTP_POST_VARS["mass_del"]); ! $list->mass_delete($HTTP_POST_VARS["mass_del"]); $content .= $list->getMessage(); break; --- 68,72 ---- case "mass_delete": //debug("mass_del", $HTTP_POST_VARS["mass_del"]); ! $list->mass_delete(clean($HTTP_POST_VARS["mass_del"])); $content .= $list->getMessage(); break; Index: pollAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/pollAdmin.php3,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** pollAdmin.php3 24 Oct 2002 19:36:04 -0000 1.11 --- pollAdmin.php3 11 Nov 2002 22:22:39 -0000 1.12 *************** *** 3,10 **** /* $Id$ */ - $pagetitle = "Poll Administration"; // The name to be displayed in the header - $xsiteobject = "Administration"; // Defines The META TAG Page Type - require("config.php3"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); --- 3,11 ---- /* $Id$ */ require("config.php3"); + + $pagetitle = pslgetText("Poll Administration"); // The name to be displayed in the header + $xsiteobject = pslgetText("Administration"); // Defines The META TAG Page Type + page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); *************** *** 27,36 **** if(!empty($HTTP_POST_VARS['submit'])) { ! $submit = $HTTP_POST_VARS['submit']; ! $question_id = $HTTP_POST_VARS['question_id']; } elseif (!empty($HTTP_GET_VARS['submit'])) { ! $submit = $HTTP_GET_VARS['submit']; ! $question_id = $HTTP_GET_VARS['question_id']; ! $min = $HTTP_GET_VARS['min']; } else { $submit = ''; --- 28,37 ---- if(!empty($HTTP_POST_VARS['submit'])) { ! $submit = clean($HTTP_POST_VARS['submit']); ! $question_id = clean($HTTP_POST_VARS['question_id']); } elseif (!empty($HTTP_GET_VARS['submit'])) { ! $submit = clean($HTTP_GET_VARS['submit']); ! $question_id = clean($HTTP_GET_VARS['question_id']); ! $min = clean($HTTP_GET_VARS['min']); } else { $submit = ''; *************** *** 52,56 **** if ($poll->savePoll($HTTP_POST_VARS)) { $content .= "<center>"; ! $content .= getFancybox(210, $_PSL['site_name'] ."Poll", $poll->getPollBooth($HTTP_POST_VARS['question_id']), "r"); $content .= "</center>"; } else { --- 53,57 ---- if ($poll->savePoll($HTTP_POST_VARS)) { $content .= "<center>"; ! $content .= getFancybox(210, $_PSL['site_name'] ."Poll", $poll->getPollBooth(clean($HTTP_POST_VARS['question_id'])), "r"); $content .= "</center>"; } else { Index: sectionAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/sectionAdmin.php3,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** sectionAdmin.php3 10 Sep 2002 21:09:50 -0000 1.6 --- sectionAdmin.php3 11 Nov 2002 22:22:39 -0000 1.7 *************** *** 2,12 **** // $id: sectionAdmin.php3,v 1.0 2000/04/25 12:08:03 ajay Exp $ # header title ! $pagetitle = "Administration"; #Defines The META TAG Page Type ! $xsiteobject = "Administration"; - require("config.php3"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); --- 2,13 ---- // $id: sectionAdmin.php3,v 1.0 2000/04/25 12:08:03 ajay Exp $ + require("config.php3"); + # header title ! $pagetitle = pslgetText("Administration"); #Defines The META TAG Page Type ! $xsiteobject = pslgetText("Administration"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); *************** *** 30,37 **** if(!empty($HTTP_POST_VARS['submit'])) { ! $submit = $HTTP_POST_VARS['submit']; } elseif (!empty($HTTP_GET_VARS['submit'])) { ! $submit = $HTTP_GET_VARS['submit']; ! $section_id = $HTTP_GET_VARS['section_id']; } else { $submit = ''; --- 31,38 ---- if(!empty($HTTP_POST_VARS['submit'])) { ! $submit = clean($HTTP_POST_VARS['submit']); } elseif (!empty($HTTP_GET_VARS['submit'])) { ! $submit = clean($HTTP_GET_VARS['submit']); ! $section_id = clean($HTTP_GET_VARS['section_id']); } else { $submit = ''; *************** *** 58,62 **** case "update": if ($perm->have_perm("sectionSave")) { ! $success = $section->saveSection($HTTP_POST_VARS); debug("message", $section->getMessage()); if($success) { --- 59,63 ---- case "update": if ($perm->have_perm("sectionSave")) { ! $success = $section->saveSection(clean($HTTP_POST_VARS,true)); debug("message", $section->getMessage()); if($success) { Index: storyAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/storyAdmin.php3,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** storyAdmin.php3 11 Oct 2002 16:57:58 -0000 1.13 --- storyAdmin.php3 11 Nov 2002 22:22:39 -0000 1.14 *************** *** 3,10 **** /* $id: storyAdmin.php3,v 1.0 2000/04/25 12:08:03 ajay Exp $ */ - $pagetitle = "Story Administration"; // The name to be displayed in the header - $xsiteobject = "Administration"; // Defines The META TAG Page Type - require("config.php3"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); --- 3,11 ---- /* $id: storyAdmin.php3,v 1.0 2000/04/25 12:08:03 ajay Exp $ */ require("config.php3"); + + $pagetitle = pslgetText("Story Administration"); // The name to be displayed in the header + $xsiteobject = pslgetText("Administration"); // Defines The META TAG Page Type + page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); *************** *** 15,24 **** if(!empty($HTTP_POST_VARS['submit'])) { ! $submit = $HTTP_POST_VARS['submit']; ! $ary = clean($HTTP_POST_VARS); } elseif (!empty($HTTP_GET_VARS['submit'])) { ! $submit = $HTTP_GET_VARS['submit']; ! $story_id = $HTTP_GET_VARS['story_id']; ! $next = $HTTP_GET_VARS['next']; $ary = clean($HTTP_GET_VARS); } else { --- 16,25 ---- if(!empty($HTTP_POST_VARS['submit'])) { ! $submit = clean($HTTP_POST_VARS['submit']); ! $ary = clean($HTTP_POST_VARS,true); } elseif (!empty($HTTP_GET_VARS['submit'])) { ! $submit = clean($HTTP_GET_VARS['submit']); ! $story_id = clean($HTTP_GET_VARS['story_id']); ! $next = clean($HTTP_GET_VARS['next']); $ary = clean($HTTP_GET_VARS); } else { *************** *** 32,36 **** $story = new Story_admin; - if ($perm->have_perm("storyList")) { --- 33,36 ---- *************** *** 52,68 **** $success = $story->saveStory($HTTP_POST_VARS); if( $success == false) { ! $content .= getError($story->message); $content .= $story->newStory($HTTP_POST_VARS, "array"); ! } ! } ! if ($perm->have_perm("storyList")) { ! $content .= $story->listStory($ary,$next); ! } break; case "modify": if ($perm->have_perm("storyList")) { ! $content .= $story->listStory($ary,$next); ! } break; --- 52,68 ---- $success = $story->saveStory($HTTP_POST_VARS); if( $success == false) { ! $content .= getError($story->message); $content .= $story->newStory($HTTP_POST_VARS, "array"); ! } ! } ! if ($perm->have_perm("storyList")) { ! $content .= $story->listStory($ary,$next); ! } break; case "modify": if ($perm->have_perm("storyList")) { ! $content .= $story->listStory($ary,$next); ! } break; *************** *** 71,76 **** $content .= $story->showStory($HTTP_POST_VARS); $content .= getTitlebar("100%", "Edit Story"); ! $HTTP_POST_VARS['title'] = stripslashes($HTTP_POST_VARS['title']); ! $HTTP_POST_VARS['intro_text'] = stripslashes($HTTP_POST_VARS['intro_text']); $HTTP_POST_VARS['body_text'] = stripslashes($HTTP_POST_VARS['body_text']); $content .= $story->newStory($HTTP_POST_VARS, "array"); --- 71,76 ---- $content .= $story->showStory($HTTP_POST_VARS); $content .= getTitlebar("100%", "Edit Story"); ! $HTTP_POST_VARS['title'] = stripslashes($HTTP_POST_VARS['title']); ! $HTTP_POST_VARS['intro_text'] = stripslashes($HTTP_POST_VARS['intro_text']); $HTTP_POST_VARS['body_text'] = stripslashes($HTTP_POST_VARS['body_text']); $content .= $story->newStory($HTTP_POST_VARS, "array"); *************** *** 81,102 **** $HTTP_POST_VARS['story_id'] = $story_id; $returned = $story->newStory($HTTP_POST_VARS, "database"); ! if(isset($returned)) { ! $content .= $returned; ! } else { $content .= getError(pslgetText("Sorry. You do not have the necessary privilege to view this page.")); ! } ! } ! break; case "new": if ($perm->have_perm("storyNew")) { $content .= $story->newStory($HTTP_POST_VARS, "array"); ! } break; default: if ($perm->have_perm("storyList")) { ! $content .= $story->listStory($ary,$next); ! } } } else { --- 81,102 ---- $HTTP_POST_VARS['story_id'] = $story_id; $returned = $story->newStory($HTTP_POST_VARS, "database"); ! if(isset($returned)) { ! $content .= $returned; ! } else { $content .= getError(pslgetText("Sorry. You do not have the necessary privilege to view this page.")); ! } ! } ! break; case "new": if ($perm->have_perm("storyNew")) { $content .= $story->newStory($HTTP_POST_VARS, "array"); ! } break; default: if ($perm->have_perm("storyList")) { ! $content .= $story->listStory($ary,$next); ! } } } else { Index: submissionAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/submissionAdmin.php3,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** submissionAdmin.php3 10 Sep 2002 21:09:50 -0000 1.8 --- submissionAdmin.php3 11 Nov 2002 22:22:39 -0000 1.9 *************** *** 2,9 **** // $id: submissionAdmin.php3,v 1.0 2000/04/25 12:08:03 ajay Exp $ - $pagetitle = "Submission Administration"; # The name to be displayed in the header - $xsiteobject = "Administration";#Defines The META TAG Page Type - require("config.php3"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); --- 2,10 ---- // $id: submissionAdmin.php3,v 1.0 2000/04/25 12:08:03 ajay Exp $ require("config.php3"); + + $pagetitle = pslgetText("Submission Administration"); # The name to be displayed in the header + $xsiteobject = pslgetText("Administration");#Defines The META TAG Page Type + page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); *************** *** 31,41 **** if(!empty($HTTP_POST_VARS['submit'])) { ! $submit = $HTTP_POST_VARS['submit']; ! $submission_id_ary = $HTTP_POST_VARS['submission_id_ary']; } elseif (!empty($HTTP_GET_VARS['submit'])) { ! $submit = $HTTP_GET_VARS['submit']; ! $submission_id = $HTTP_GET_VARS['submission_id']; ! $next = $HTTP_GET_VARS['next']; } else { $submit = ''; --- 32,42 ---- if(!empty($HTTP_POST_VARS['submit'])) { ! $submit = clean($HTTP_POST_VARS['submit']); ! $submission_id_ary = clean($HTTP_POST_VARS['submission_id_ary']); } elseif (!empty($HTTP_GET_VARS['submit'])) { ! $submit = clean($HTTP_GET_VARS['submit']); ! $submission_id = clean($HTTP_GET_VARS['submission_id']); ! $next = clean($HTTP_GET_VARS['next']); } else { $submit = ''; *************** *** 61,103 **** case "save": if ($perm->have_perm("submissionSave")) { ! if ($submission->saveSubmission($HTTP_POST_VARS)) { logwrite("Story Submission", "$REMOTE_ADDR submitted a story as an admin"); ! $content .= pslgetText('Submission Saved'); } else { $content .= getError($submission->getMessage()); ! } ! } break; case "preview": if ($perm->have_perm("submissionEdit")) { ! $content .= getTitlebar("100%","Submission Preview"); $content .= $submission->showSubmission($HTTP_POST_VARS); $content .= getTitlebar("100%","Edit Submission"); $content .= $submission->newSubmission($HTTP_POST_VARS,"array"); ! } break; case "editasstory": if ($perm->have_perm("submissioneditasstory")) { ! if($submission->editasStory($submission_id)) { $content .= $submission->getMessage(); if ($_PSL['submission_autodelete']) { $submission->deleteSubmission($submission_id); } ! } ! } break; case "edit": ! if ($perm->have_perm("submissionEdit")) { ! if($submission->displaySubmission($submission_id)) { ! $content .= getTitlebar("100%","Submission Preview"); $content .= $submission->getMessage(); ! } $content .= getTitlebar("100%","Edit Submission"); $ary['submission_id'] = $submission_id; $content .= $submission->newSubmission($ary,"database"); ! } break; --- 62,104 ---- case "save": if ($perm->have_perm("submissionSave")) { ! if ($submission->saveSubmission($HTTP_POST_VARS)) { logwrite("Story Submission", "$REMOTE_ADDR submitted a story as an admin"); ! $content .= pslgetText('Submission Saved'); } else { $content .= getError($submission->getMessage()); ! } ! } break; case "preview": if ($perm->have_perm("submissionEdit")) { ! $content .= getTitlebar("100%","Submission Preview"); $content .= $submission->showSubmission($HTTP_POST_VARS); $content .= getTitlebar("100%","Edit Submission"); $content .= $submission->newSubmission($HTTP_POST_VARS,"array"); ! } break; case "editasstory": if ($perm->have_perm("submissioneditasstory")) { ! if($submission->editasStory($submission_id)) { $content .= $submission->getMessage(); if ($_PSL['submission_autodelete']) { $submission->deleteSubmission($submission_id); } ! } ! } break; case "edit": ! if ($perm->have_perm("submissionEdit")) { ! if($submission->displaySubmission($submission_id)) { ! $content .= getTitlebar("100%","Submission Preview"); $content .= $submission->getMessage(); ! } $content .= getTitlebar("100%","Edit Submission"); $ary['submission_id'] = $submission_id; $content .= $submission->newSubmission($ary,"database"); ! } break; *************** *** 105,130 **** if ($perm->have_perm("submissionNew")) { $content .= $submission->newSubmission($HTTP_POST_VARS,"array"); ! } break; default: /* ! $returned = $submission->listSubmission($next); if($returned) { $content .= $returned; ! } else { $content .= pslgetText("When you don't see the submission, it means there aren't any."); } ! */ ! break; } /* end of switch */ $returned = $submission->listSubmission($next); ! if($returned) { ! $content .= getTitlebar("100%","Current Submissions"); ! $content .= $returned; ! } else { ! $content .= pslgetText("When you don't see the submission, it means there aren't any."); ! } } else { --- 106,132 ---- if ($perm->have_perm("submissionNew")) { $content .= $submission->newSubmission($HTTP_POST_VARS,"array"); ! } break; default: /* ! $returned = $submission->listSubmission($next); if($returned) { $content .= $returned; ! } else { $content .= pslgetText("When you don't see the submission, it means there aren't any."); } ! */ ! break; } /* end of switch */ + $returned = $submission->listSubmission($next); ! if($returned) { ! $content .= getTitlebar("100%","Current Submissions"); ! $content .= $returned; ! } else { ! $content .= pslgetText("When you don't see the submission, it means there aren't any."); ! } } else { Index: topicAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/topicAdmin.php3,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** topicAdmin.php3 10 Sep 2002 21:09:50 -0000 1.5 --- topicAdmin.php3 11 Nov 2002 22:22:39 -0000 1.6 *************** *** 3,10 **** /* $Id$ */ - $pagetitle = "Topic Administration"; // header title - $xsiteobject = "Administration"; // Defines The META TAG Page Type - require("config.php3"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); --- 3,11 ---- /* $Id$ */ require("config.php3"); + + $pagetitle = pslgetText("Topic Administration"); // header title + $xsiteobject = pslgetText("Administration"); // Defines The META TAG Page Type + page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); *************** *** 33,41 **** if(!empty($HTTP_POST_VARS['submit'])) { ! $submit = $HTTP_POST_VARS['submit']; } elseif (!empty($HTTP_GET_VARS['submit'])) { ! $submit = $HTTP_GET_VARS['submit']; ! $topic_id = $HTTP_GET_VARS['topic_id']; ! $option = $HTTP_GET_VARS['option']; } else { $submit = ''; --- 34,42 ---- if(!empty($HTTP_POST_VARS['submit'])) { ! $submit = clean($HTTP_POST_VARS['submit']); } elseif (!empty($HTTP_GET_VARS['submit'])) { ! $submit = clean($HTTP_GET_VARS['submit']); ! $topic_id = clean($HTTP_GET_VARS['topic_id']); ! $option = clean($HTTP_GET_VARS['option']); } else { $submit = ''; *************** *** 59,63 **** case "submit": if ($perm->have_perm("topicSave")) { ! if($topic->saveTopic($HTTP_POST_VARS)) { $content .= getMessage($topic->getMessage()); } else { --- 60,64 ---- case "submit": if ($perm->have_perm("topicSave")) { ! if($topic->saveTopic(clean($HTTP_POST_VARS,true))) { $content .= getMessage($topic->getMessage()); } else { Index: variableAdmin.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/admin/variableAdmin.php3,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** variableAdmin.php3 11 Sep 2002 20:21:53 -0000 1.6 --- variableAdmin.php3 11 Nov 2002 22:22:39 -0000 1.7 *************** *** 1,11 **** <?php # header title ! $pagetitle = "Administration"; #Defines The META TAG Page Type ! $xsiteobject = "Administration"; - require("config.php3"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); --- 1,14 ---- <?php + // $Id$ + + require("config.php3"); + # header title ! $pagetitle = pslgetText("Administration"); #Defines The META TAG Page Type ! $xsiteobject = pslgetText("Administration"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); *************** *** 29,41 **** if(!empty($HTTP_POST_VARS['submit'])) { ! $submit = $HTTP_POST_VARS['submit']; ! $variable_ary = $HTTP_POST_VARS['variable_ary']; ! $variable_name = $HTTP_POST_VARS['variable_name']; ! $variable_id = $HTTP_POST_VARS['variable_id']; ! $description = $HTTP_POST_VARS['description']; ! $variable_value = $HTTP_POST_VARS['variable_value']; ! $variable_group = $HTTP_POST_VARS['variable_group']; } elseif (!empty($HTTP_GET_VARS['submit'])) { ! $submit = $HTTP_GET_VARS['submit']; } else { $submit = ''; --- 32,44 ---- if(!empty($HTTP_POST_VARS['submit'])) { ! $submit = clean($HTTP_POST_VARS['submit']); ! $variable_ary = clean($HTTP_POST_VARS['variable_ary']); ! $variable_name = clean($HTTP_POST_VARS['variable_name']); ! $variable_id = clean($HTTP_POST_VARS['variable_id']); ! $description = clean($HTTP_POST_VARS['description']); ! $variable_value = clean($HTTP_POST_VARS['variable_value']); ! $variable_group = clean($HTTP_POST_VARS['variable_group']); } elseif (!empty($HTTP_GET_VARS['submit'])) { ! $submit = clean($HTTP_GET_VARS['submit']); } else { $submit = ''; *************** *** 49,59 **** $success = $variable->deleteVariable($variable_ary[$key]); } ! } break; case "new": if($perm->have_perm("variableSave")) { ! $success = $variable->saveVariable($HTTP_POST_VARS); } ! break; case "update": if($perm->have_perm("variableEdit")) { --- 52,62 ---- $success = $variable->deleteVariable($variable_ary[$key]); } ! } break; case "new": if($perm->have_perm("variableSave")) { ! $success = $variable->saveVariable(clean($HTTP_POST_VARS)); } ! break; case "update": if($perm->have_perm("variableEdit")) { |
From: Joe S. <joe...@us...> - 2002-11-11 21:23:03
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory usw-pr-cvs1:/tmp/cvs-serv25533/phpslash-ft/public_html Modified Files: about.php3 article.php3 backend.php3 comment.php3 errordocument.php3 glossary.php3 index.php3 login.php3 mailinglist.php3 poll.php3 profile.php3 search.php3 submission.php3 test.php3 tz_select.php3 Log Message: translate page titles Index: about.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/about.php3,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** about.php3 24 Oct 2002 18:14:58 -0000 1.17 --- about.php3 11 Nov 2002 21:22:58 -0000 1.18 *************** *** 1,8 **** <?php /* $Id$ */ - $pagetitle = "About"; // The name to be displayed in the header - $xsiteobject = "About Page"; // This Defines The META Tag Object Type require("config.php3"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); --- 1,9 ---- <?php /* $Id$ */ require("config.php3"); + + $pagetitle = pslgetText("About"); // The name to be displayed in the header + $xsiteobject = pslgetText("About Page"); // This Defines The META Tag Object Type page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); Index: article.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/article.php3,v retrieving revision 1.69 retrieving revision 1.70 diff -C2 -d -r1.69 -r1.70 *** article.php3 29 Oct 2002 11:07:17 -0000 1.69 --- article.php3 11 Nov 2002 21:22:58 -0000 1.70 *************** *** 3,10 **** /* $Id$ */ - $pagetitle = "Articles"; // The name to be displayed in the header - $xsiteobject = "Articles"; // Defines The META TAG Page Type - require("config.php3"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); --- 3,11 ---- /* $Id$ */ require("config.php3"); + + $pagetitle = pslgetText("Articles"); // The name to be displayed in the header + $xsiteobject = pslgetText("Articles"); // Defines The META TAG Page Type + page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); *************** *** 19,25 **** $sess->register("return_link"); ! /* parse cmd line variables into array */ ! while ( list($key, $val) = each($HTTP_GET_VARS )) { ! $ary[$key] = $val; } --- 20,26 ---- $sess->register("return_link"); ! $ary = array(); ! if(!empty($HTTP_GET_VARS)) { ! $ary = clean($HTTP_GET_VARS); } *************** *** 28,32 **** $submit = $ary['submit']; ! if ((!$ary['section']) AND (!$ary['section_id'])){ $section = $_PSL['site_homesection']; if(!$section) { --- 29,33 ---- $submit = $ary['submit']; ! if ((empty($ary['section'])) AND (empty($ary['section_id']))){ $section = $_PSL['site_homesection']; if(!$section) { *************** *** 35,39 **** $ary['section'] = $section; } else { ! $pagetitle .= " -". $ary['section']; } --- 36,40 ---- $ary['section'] = $section; } else { ! $pagetitle .= $ary['section']; } Index: backend.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/backend.php3,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** backend.php3 20 Sep 2002 16:23:46 -0000 1.32 --- backend.php3 11 Nov 2002 21:22:58 -0000 1.33 *************** *** 57,64 **** // Parse cmd line variables into array ! while ( list($key, $val) = each($HTTP_GET_VARS )) { ! if( $val != "") { ! $ary[$key] = addslashes($val); ! } } --- 57,63 ---- // Parse cmd line variables into array ! $ary = array(); ! if(!empty($HTTP_GET_VARS)) { ! $ary = clean($HTTP_GET_VARS); } Index: comment.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/comment.php3,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** comment.php3 16 Sep 2002 14:52:58 -0000 1.19 --- comment.php3 11 Nov 2002 21:22:58 -0000 1.20 *************** *** 3,9 **** /* $Id$ */ - $pagetitle = "Comment Display"; # Defines the page title. - $xsiteobject = "Comment Display"; # Defines The META TAG Page Type require("config.php3"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); --- 3,11 ---- /* $Id$ */ require("config.php3"); + + $pagetitle = pslgetText("Comment Display"); # Defines the page title. + $xsiteobject = pslgetText("Comment Display"); # Defines The META TAG Page Type + page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); *************** *** 15,19 **** $submit = $HTTP_POST_VARS['submit']; ! $ary = $HTTP_POST_VARS; $name = $ary['name']; --- 17,21 ---- $submit = $HTTP_POST_VARS['submit']; ! $ary = clean($HTTP_POST_VARS, true); $name = $ary['name']; *************** *** 76,80 **** $submit = $HTTP_GET_VARS['submit']; ! $ary = $HTTP_GET_VARS; if (empty($ary['parent_id'])) { --- 78,82 ---- $submit = $HTTP_GET_VARS['submit']; ! $ary = clean($HTTP_GET_VARS); if (empty($ary['parent_id'])) { Index: errordocument.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/errordocument.php3,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** errordocument.php3 11 Sep 2002 17:14:23 -0000 1.3 --- errordocument.php3 11 Nov 2002 21:22:58 -0000 1.4 *************** *** 1,9 **** <?php // $Id$ - $pagetitle = "Page not found"; // The name to be displayed in the header - $xsiteobject = "Error Document"; // This Defines The META Tag Object Type require("config.php3"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); --- 1,10 ---- <?php // $Id$ require("config.php3"); + $pagetitle = pslgetText("Page not found"); // The name to be displayed in the header + $xsiteobject = pslgetText("Error Document"); // This Defines The META Tag Object Type + page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); *************** *** 18,29 **** // Start of Page ! ! /* parse cmd line variables into array */ ! while ( list($key, $val) = each($HTTP_GET_VARS )) { ! $ary[$key] = $val; } ! /* defaults for main "index" page */ ! if ((!$ary['section']) AND (!$ary['section_id'])){ $section = $_PSL['site_homesection']; if(!$section) { --- 19,28 ---- // Start of Page ! $ary = array(); ! if(!empty($HTTP_GET_VARS)) { ! $ary = clean($HTTP_GET_VARS); } ! if ((empty($ary['section'])) AND (empty($ary['section_id']))){ $section = $_PSL['site_homesection']; if(!$section) { *************** *** 32,36 **** $ary['section'] = $section; } else { ! $pagetitle .= " - $section"; } --- 31,35 ---- $ary['section'] = $section; } else { ! $pagetitle .= $ary['section']; } Index: glossary.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/glossary.php3,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -d -r1.14 -r1.15 *** glossary.php3 24 Oct 2002 18:14:58 -0000 1.14 --- glossary.php3 11 Nov 2002 21:22:58 -0000 1.15 *************** *** 3,11 **** /* $Id$ */ - // TODO: nh asks: Is this really administration anymore? - $pagetitle = "Glossary Administration"; // header title - $xsiteobject = "Administration"; // Defines The META TAG Page Type - require("config.php3"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); --- 3,11 ---- /* $Id$ */ require("config.php3"); + + $pagetitle = "Glossary"; // header title + $xsiteobject = "Glossary"; // Defines The META TAG Page Type + page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); Index: index.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/index.php3,v retrieving revision 1.60 retrieving revision 1.61 diff -C2 -d -r1.60 -r1.61 *** index.php3 24 Oct 2002 18:14:58 -0000 1.60 --- index.php3 11 Nov 2002 21:22:58 -0000 1.61 *************** *** 1,8 **** <?php // $Id$ - $pagetitle = 'Home'; // The name to be displayed in the header - $xsiteobject = 'Home Page'; // This Defines The META Tag Object Type require('config.php3'); page_open(array('sess' => 'slashSess', --- 1,9 ---- <?php // $Id$ require('config.php3'); + + $pagetitle = pslgetText('Home'); // The name to be displayed in the header + $xsiteobject = pslgetText('Home Page'); // This Defines The META Tag Object Type page_open(array('sess' => 'slashSess', Index: login.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/login.php3,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** login.php3 29 Oct 2002 17:14:22 -0000 1.26 --- login.php3 11 Nov 2002 21:22:58 -0000 1.27 *************** *** 1,7 **** <?php // $Id$ ! $pagetitle="Administration"; # The name to be displayed in the header ! $xsiteobject = "Administration Page"; #This Defines The META Tag Object Type require("config.php3"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); --- 1,10 ---- <?php // $Id$ ! require("config.php3"); + + $pagetitle= pslgetText("Administration"); # The name to be displayed in the header + $xsiteobject = pslgetText("Administration Page"); #This Defines The META Tag Object Type + page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); Index: mailinglist.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/mailinglist.php3,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** mailinglist.php3 24 Oct 2002 18:17:28 -0000 1.8 --- mailinglist.php3 11 Nov 2002 21:22:58 -0000 1.9 *************** *** 3,11 **** /* $Id$ */ ! $pagetitle = "Mailing List Admin"; // header title ! $xsiteobject = "Administration"; // Defines The META TAG Page Type - require('config.php3'); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); --- 3,11 ---- /* $Id$ */ ! require('config.php3'); + $pagetitle = pslgetText("Mailing List Admin"); // header title + $xsiteobject = pslgetText("Administration"); // Defines The META TAG Page Type page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); Index: poll.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/poll.php3,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** poll.php3 24 Oct 2002 18:14:58 -0000 1.17 --- poll.php3 11 Nov 2002 21:22:58 -0000 1.18 *************** *** 3,10 **** /* $Id$ */ - $pagetitle = "Polls"; // The name to be displayed in the header - $xsiteobject = "Poll Booth"; //Defines The META TAG Page Type - require("config.php3"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); --- 3,11 ---- /* $Id$ */ require("config.php3"); + + $pagetitle = pslgetText("Polls"); // The name to be displayed in the header + $xsiteobject = pslgetText("Poll Booth"); //Defines The META TAG Page Type + page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); Index: profile.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/profile.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** profile.php3 11 Sep 2002 17:14:24 -0000 1.4 --- profile.php3 11 Nov 2002 21:22:58 -0000 1.5 *************** *** 3,10 **** /* $Id$ */ - $pagetitle = "User Profile"; // header title - $xsiteobject = "Profile"; // Defines The META TAG Page Type - require("config.php3"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); --- 3,11 ---- /* $Id$ */ require("config.php3"); + + $pagetitle = pslgetText("User Profile"); // header title + $xsiteobject = pslgetText("Profile"); // Defines The META TAG Page Type + page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); *************** *** 48,54 **** if ($perm->have_perm("user")) { ! switch ($submit) { case "update": ! if($author->saveProfile($HTTP_POST_VARS)) { $content .= getMessage("Profile Updated"); } else { --- 49,60 ---- if ($perm->have_perm("user")) { ! $ary = array(); ! if(!empty($HTTP_POST_VARS)) { ! $ary = clean($HTTP_POST_VARS, true); ! } ! ! switch ($ary['submit']) { case "update": ! if($author->saveProfile($ary)) { $content .= getMessage("Profile Updated"); } else { *************** *** 67,73 **** $block = new Block_i; ! $ary = $HTTP_GET_VARS; ! if ((!$ary['section']) AND (!$ary['section_id'])){ $section = $_PSL['site_homesection']; if(!$section) { --- 73,82 ---- $block = new Block_i; ! $ary = array(); ! if(!empty($HTTP_GET_VARS)) { ! $ary = clean($HTTP_GET_VARS); ! } ! if ((empty($ary['section'])) AND (empty($ary['section_id']))){ $section = $_PSL['site_homesection']; if(!$section) { *************** *** 76,82 **** $ary['section'] = $section; } else { ! $pagetitle .= " - $section"; } - $ary['section'] = $section; $breadcrumb = breadcrumb($ary); --- 85,90 ---- $ary['section'] = $section; } else { ! $pagetitle .= $ary['section']; } $breadcrumb = breadcrumb($ary); Index: search.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/search.php3,v retrieving revision 1.48 retrieving revision 1.49 diff -C2 -d -r1.48 -r1.49 *** search.php3 11 Sep 2002 17:14:24 -0000 1.48 --- search.php3 11 Nov 2002 21:22:58 -0000 1.49 *************** *** 5,11 **** // TODO: search.php3 needs to have it's logic ripped out and put into an object - $pagetitle = "Search"; - $xsiteobject = "Search Page"; #Defines The META TAG Page Type require("config.php3"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); --- 5,13 ---- // TODO: search.php3 needs to have it's logic ripped out and put into an object require("config.php3"); + + $pagetitle = pslgetText("Search"); + $xsiteobject = pslgetText("Search Page"); #Defines The META TAG Page Type + page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); *************** *** 125,129 **** } ! $ary = $HTTP_GET_VARS; $search_topic_id = getTopicID($ary['topic_id'], $ary['topic_name']); --- 127,134 ---- } ! $ary = array(); ! if(!empty($HTTP_GET_VARS)) { ! $ary = clean($HTTP_GET_VARS); ! } $search_topic_id = getTopicID($ary['topic_id'], $ary['topic_name']); *************** *** 144,149 **** /*************PAGE START*******************/ ! ! if ((!$ary['section']) AND (!$ary['section_id'])){ $section = $_PSL['site_homesection']; if(!$section) { --- 149,153 ---- /*************PAGE START*******************/ ! if ((empty($ary['section'])) AND (empty($ary['section_id']))){ $section = $_PSL['site_homesection']; if(!$section) { *************** *** 151,154 **** --- 155,160 ---- } $ary['section'] = $section; + } else { + $pagetitle .= $ary['section']; } Index: submission.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/submission.php3,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** submission.php3 24 Oct 2002 18:14:58 -0000 1.12 --- submission.php3 11 Nov 2002 21:22:58 -0000 1.13 *************** *** 2,12 **** // $id: submission.php3,v 1.0 2000/04/25 12:08:03 ajay Exp $ - $pagetitle = "Submission"; # The name to be displayed in the header - $xsiteobject = "Submission";#Defines The META TAG Page Type - require("config.php3"); page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); $auth->login_if(!$perm->have_perm('submissionNew')); $ary = array(); if(!empty($HTTP_GET_VARS)) { --- 2,14 ---- // $id: submission.php3,v 1.0 2000/04/25 12:08:03 ajay Exp $ require("config.php3"); + + $pagetitle = pslgetText("Submission"); # The name to be displayed in the header + $xsiteobject = pslgetText("Submission");#Defines The META TAG Page Type + page_open(array("sess"=>"slashSess","auth"=>"slashAuth","perm"=>"slashPerm")); $auth->login_if(!$perm->have_perm('submissionNew')); + $ary = array(); if(!empty($HTTP_GET_VARS)) { Index: test.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/test.php3,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** test.php3 11 Sep 2002 20:23:23 -0000 1.5 --- test.php3 11 Nov 2002 21:22:58 -0000 1.6 *************** *** 118,122 **** if ($major == 3) { ! echo "<li><font color=red>You shouldn't have any major problems with PHP3 except for the RSS block type. Don't use it, or upgrade to PHP4</font></li>"; } elseif ($major == 4) { --- 118,122 ---- if ($major == 3) { ! echo "<li><font color=red>phpSlash no longer supports PHP3</font></li>"; } elseif ($major == 4) { Index: tz_select.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/tz_select.php3,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** tz_select.php3 3 Sep 2002 15:07:36 -0000 1.1 --- tz_select.php3 11 Nov 2002 21:22:58 -0000 1.2 *************** *** 5,9 **** 'auth' => 'slashAuth', 'perm' => 'slashPerm')); ! slashhead("Select Time Zone","Customization"); if ($HTTP_GET_VARS['submit']) { echo $_TZ['obj']->get_confirm_form($HTTP_GET_VARS, --- 5,9 ---- 'auth' => 'slashAuth', 'perm' => 'slashPerm')); ! slashhead(pslgetText("Select Time Zone"),pslgetText("Customization")); if ($HTTP_GET_VARS['submit']) { echo $_TZ['obj']->get_confirm_form($HTTP_GET_VARS, *************** *** 15,17 **** } slashfoot(); ! ?> \ No newline at end of file --- 15,17 ---- } slashfoot(); ! ?> |
From: Joe S. <joe...@us...> - 2002-11-11 21:23:01
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv25533/phpslash-ft Modified Files: CHANGES Log Message: translate page titles Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.595 retrieving revision 1.596 diff -C2 -d -r1.595 -r1.596 *** CHANGES 11 Nov 2002 18:13:05 -0000 1.595 --- CHANGES 11 Nov 2002 21:22:57 -0000 1.596 *************** *** 13,16 **** --- 13,22 ---- 9 - Removal of something (kill -9 :) + 2002-November-11 3:00PM CST Joe Stewart <joe...@us...> + [W] - about.php3, article.php3, backend.php3, comment.php3, errordocument.php3, + glossary.php3, index.php3, login.php3, mailinglist.php3, poll.php3, + profile.php3, search.php3, submission.php3, test.php3, tz_select.php3 - + translate page titles (thanks Lars K.). + 2002-November-11 12:00PM CST Joe Stewart <joe...@us...> [W] - en.php3, no.php3 - translated script names ( thanks Lars K.). |
From: Joe S. <joe...@us...> - 2002-11-11 18:14:09
|
Update of /cvsroot/phpslash/phpslash-ft/class/locale In directory usw-pr-cvs1:/tmp/cvs-serv20504/phpslash-ft/class/locale Modified Files: no.php3 en.php3 Log Message: translated script names Index: no.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/locale/no.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** no.php3 7 Nov 2002 17:09:11 -0000 1.4 --- no.php3 11 Nov 2002 18:13:21 -0000 1.5 *************** *** 30,36 **** // commentSubmit.php3 // config.php3 ! "Home" => "Forsiden", "Add Story" => "Bidra med sak", --- 30,46 ---- // commentSubmit.php3 // config.php3 ! ! "Login" => ! "Log inn", ! ! "Logout" => ! "Log ut", ! ! "Frontpage" => "Forsiden", + "Home" => + "Hjem", + "Add Story" => "Bidra med sak", *************** *** 43,47 **** "About" => ! "Om", "Topic" => --- 53,57 ---- "About" => ! "Om PDA-Nytt", "Topic" => *************** *** 319,336 **** // TopicBar.class // Variable.class - // cronmail.php3 ! "Story" => ! "Sak", ! "Written" => ! "Skrevet", ! "Intro" => ! "Innledning", ! "To add or remove yourself go to" => ! "For å fjerne deg selv fra listen kan du gå til" ! ); ?> --- 329,411 ---- // TopicBar.class // Variable.class // cronmail.php3 ! // "Story" => ! // "Sak", ! "Written" => ! "Skrevet", ! "Intro" => ! "Innledning", ! "To add or remove yourself go to" => ! "For å fjerne deg selv fra listen kan du gå til", ! ! // Titles in different php-files ! "About Page" => ! "Beskrivelse", ! ! "Articles" => ! "Artikler", ! ! "Comment Display" => ! "Kommentarvisning", ! ! "Page not found" => ! "Siden kunne ikke finnes", ! ! "Error document" => ! "Feil-side", ! ! "Glossary Administration" => ! "Administrasjon av ordbok", ! ! "Administration" => ! "Administrasjon", ! ! "Home page" => ! "Forsiden", ! ! "Administration Page" => ! "Administrasjonsside", ! ! "Mailing List Admin" => ! "Administrasjon av e-postliste", ! ! "Poll Booth" => ! "Stemmebås", ! ! "Search" => ! "Søk", ! ! "Search Page" => ! "Søkeside", ! ! "Submission" => ! "Innlevering", ! ! "Author Administration" => ! "Administrasjon av forfattere", ! ! "Block Administration" => ! "Administrasjon av blokker", ! ! "Comment Administration" => ! "Administrasjon av kommentarer", ! ! "Glossary Administration" => ! "Administrasjon av ordbok", ! ! "Poll Administration" => ! "Administrasjon av avstemninger", ! ! "Story Administration" => ! "Administrasjon av saker", ! ! "Submission Administration" => ! "Administrasjon av innleveringer", ! ! "Topic Administration" => ! "Administrasjon av områder" ); ?> Index: en.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/locale/en.php3,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** en.php3 4 Feb 2002 14:50:42 -0000 1.6 --- en.php3 11 Nov 2002 18:13:24 -0000 1.7 *************** *** 30,33 **** --- 30,40 ---- // commentSubmit.php3 // config.php3 + + "Login" => + "Login", + + "Logout" => + "Logout", + "Home" => "Home", *************** *** 78,84 **** "Logging", ! "User" => ! "User", ! // functions.inc "NO TITLE" => --- 85,97 ---- "Logging", ! "User Profile" => ! "User Profile", ! ! "Admin" => ! "Admin", ! ! "Group" => ! "Group", ! // functions.inc "NO TITLE" => *************** *** 317,325 **** // Submission.class "Anonymous Coward" => ! "Anonymous Coward" // Topic.class // TopicBar.class // Variable.class ); --- 330,417 ---- // Submission.class "Anonymous Coward" => ! "Anonymous Coward", // Topic.class // TopicBar.class // Variable.class + // cronmail.php3 + // "Story" => + // "Story", + + "Written" => + "Written", + + "Intro" => + "Intro", + + "To add or remove yourself go to" => + "To add or remove yourself go to", + + // Titles in different php-files + "About Page" => + "About Page", + + "Articles" => + "Articles", + + "Comment Display" => + "Comment Display", + + "Page not found" => + "Page not found", + + "Error document" => + "Error document", + + "Glossary Administration" => + "Glossary Administration", + + "Administration" => + "Administration", + + "Home page" => + "Home page", + + "Administration Page" => + "Administration Page", + + "Mailing List Admin" => + "Mailing List Admin", + + "Poll Booth" => + "Poll Booth", + + "Search" => + "Search", + + "Search Page" => + "Search Page", + + "Submission" => + "Submission", + + "Author Administration" => + "Author Administration", + + "Block Administration" => + "Block Administration", + + "Comment Administration" => + "Comment Administration", + + "Glossary Administration" => + "Glossary Administration", + + "Poll Administration" => + "Poll Administration", + + "Story Administration" => + "Story Administration", + + "Submission Administration" => + "Submission Administration", + + "Topic Administration" => + "Topic Administration" ); |
From: Joe S. <joe...@us...> - 2002-11-11 18:14:06
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv20504/phpslash-ft Modified Files: CHANGES Log Message: translated script names Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.594 retrieving revision 1.595 diff -C2 -d -r1.594 -r1.595 *** CHANGES 11 Nov 2002 15:35:37 -0000 1.594 --- CHANGES 11 Nov 2002 18:13:05 -0000 1.595 *************** *** 13,16 **** --- 13,19 ---- 9 - Removal of something (kill -9 :) + 2002-November-11 12:00PM CST Joe Stewart <joe...@us...> + [W] - en.php3, no.php3 - translated script names ( thanks Lars K.). + 2002-November-11 9:00AM CST Joe Stewart <joe...@us...> [FT] - Author.class, slashAuthCR.class, authorNew.tpl, authorProfile.tpl, |
From: Joe S. <joe...@us...> - 2002-11-11 15:35:43
|
Update of /cvsroot/phpslash/phpslash-ft/tables/0.7 In directory usw-pr-cvs1:/tmp/cvs-serv23003/phpslash-ft/tables/0.7 Modified Files: slash-all.sql Log Message: user set language preference Index: slash-all.sql =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/tables/0.7/slash-all.sql,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** slash-all.sql 29 Oct 2002 11:21:37 -0000 1.17 --- slash-all.sql 11 Nov 2002 15:35:40 -0000 1.18 *************** *** 383,387 **** ', 'a:2:{s:6:\"column\";s:5:\"right\";s:5:\"width\";s:3:\"160\";}', '30'); ! INSERT INTO psl_block (id, type, title, expire_length, last_update, location, source_url, cache_data, block_options, ordernum) VALUES( '147', '10', 'Skins', '14400', '20011002152749', '', '', '', 'a:3:{s:6:"column";s:4:"left";s:5:"perms";s:4:"user";s:0:"";s:0:"";}', '50'); INSERT INTO psl_block (id, type, title, expire_length, last_update, location, source_url, cache_data, block_options, ordernum) VALUES( '148', '1', 'Administration', '0', '20020628131644', '', '', '<BR><BR>A bunch of cool things like latest site activity and stats should go here. <BR> But until they do, just pick something from the NavBar and go about your duties...<BR><BR>', 'a:3:{s:6:\"column\";s:6:\"center\";s:5:\"perms\";s:4:\"user\";s:0:\"\";s:0:\"\";}', '90'); INSERT INTO psl_block (id, type, title, expire_length, last_update, location, source_url, cache_data, block_options, ordernum) VALUES( '149', '12', 'Tasks', '0', '20020628131658', '', 'menu_ary=menuadmin&tpl=navbarBlockh', '', 'a:4:{s:6:\"column\";s:6:\"center\";s:5:\"width\";s:4:\"100%\";s:5:\"perms\";s:4:\"user\";s:8:\"box_type\";s:6:\"framed\";}', '95'); --- 383,387 ---- ', 'a:2:{s:6:\"column\";s:5:\"right\";s:5:\"width\";s:3:\"160\";}', '30'); ! # INSERT INTO psl_block (id, type, title, expire_length, last_update, location, source_url, cache_data, block_options, ordernum) VALUES( '147', '10', 'Skins', '14400', '20011002152749', '', '', '', 'a:3:{s:6:"column";s:4:"left";s:5:"perms";s:4:"user";s:0:"";s:0:"";}', '50'); INSERT INTO psl_block (id, type, title, expire_length, last_update, location, source_url, cache_data, block_options, ordernum) VALUES( '148', '1', 'Administration', '0', '20020628131644', '', '', '<BR><BR>A bunch of cool things like latest site activity and stats should go here. <BR> But until they do, just pick something from the NavBar and go about your duties...<BR><BR>', 'a:3:{s:6:\"column\";s:6:\"center\";s:5:\"perms\";s:4:\"user\";s:0:\"\";s:0:\"\";}', '90'); INSERT INTO psl_block (id, type, title, expire_length, last_update, location, source_url, cache_data, block_options, ordernum) VALUES( '149', '12', 'Tasks', '0', '20020628131658', '', 'menu_ary=menuadmin&tpl=navbarBlockh', '', 'a:4:{s:6:\"column\";s:6:\"center\";s:5:\"width\";s:4:\"100%\";s:5:\"perms\";s:4:\"user\";s:8:\"box_type\";s:6:\"framed\";}', '95'); |
From: Joe S. <joe...@us...> - 2002-11-11 15:35:43
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/templates/en/default In directory usw-pr-cvs1:/tmp/cvs-serv23003/phpslash-ft/public_html/templates/en/default Modified Files: authorNew.tpl authorProfile.tpl Log Message: user set language preference Index: authorNew.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/templates/en/default/authorNew.tpl,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** authorNew.tpl 28 Oct 2002 21:41:14 -0000 1.12 --- authorNew.tpl 11 Nov 2002 15:35:40 -0000 1.13 *************** *** 70,73 **** --- 70,83 ---- </TR> <TR> + <TD><b>Language</br></TD> + <TD> + <SELECT name="lang"> + <!-- BEGIN each_lang --> + <OPTION value="{LANG}" {LANG_SELECTED}>{LANG}</OPTION> + <!-- END each_lang --> + </SELECT> + </TD> + </TR> + <TR> <TD><b>Skin</br></TD> <TD> Index: authorProfile.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/templates/en/default/authorProfile.tpl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** authorProfile.tpl 28 Oct 2002 21:41:14 -0000 1.5 --- authorProfile.tpl 11 Nov 2002 15:35:40 -0000 1.6 *************** *** 52,55 **** --- 52,65 ---- </TR> <TR> + <TD><b>Language</br></TD> + <TD> + <SELECT name="lang"> + <!-- BEGIN each_lang --> + <OPTION value="{LANG}" {LANG_SELECTED}>{LANG}</OPTION> + <!-- END each_lang --> + </SELECT> + </TD> + </TR> + <TR> <TD><b>Skin</br></TD> <TD> |
From: Joe S. <joe...@us...> - 2002-11-11 15:35:43
|
Update of /cvsroot/phpslash/phpslash-ft/public_html/templates/en/basic In directory usw-pr-cvs1:/tmp/cvs-serv23003/phpslash-ft/public_html/templates/en/basic Modified Files: authorNew.tpl authorProfile.tpl Log Message: user set language preference Index: authorNew.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/templates/en/basic/authorNew.tpl,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** authorNew.tpl 28 Oct 2002 21:41:14 -0000 1.7 --- authorNew.tpl 11 Nov 2002 15:35:39 -0000 1.8 *************** *** 65,68 **** --- 65,78 ---- </tr> <tr> + <td class="descr">Language</td> + <td> + <select name="lang"> + <!-- BEGIN each_lang --> + <option value="{LANG}" {LANG_SELECTED}>{LANG}</option> + <!-- END each_lang --> + </select> + </td> + </tr> + <tr> <td class="descr">Skin</td> <td> Index: authorProfile.tpl =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/templates/en/basic/authorProfile.tpl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** authorProfile.tpl 28 Oct 2002 21:41:14 -0000 1.5 --- authorProfile.tpl 11 Nov 2002 15:35:39 -0000 1.6 *************** *** 50,53 **** --- 50,63 ---- </tr> <tr> + <td class="descr">Language</td> + <td> + <select name="lang"> + <!-- BEGIN each_lang --> + <option value="{LANG}" {LANG_SELECTED}>{LANG}</option> + <!-- END each_lang --> + </select> + </td> + </tr> + <tr> <td class="descr">Skin</td> <td> |
From: Joe S. <joe...@us...> - 2002-11-11 15:35:43
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory usw-pr-cvs1:/tmp/cvs-serv23003/phpslash-ft/class Modified Files: Author.class slashAuthCR.class Log Message: user set language preference Index: Author.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/Author.class,v retrieving revision 1.32 retrieving revision 1.33 diff -C2 -d -r1.32 -r1.33 *** Author.class 29 Oct 2002 17:13:59 -0000 1.32 --- Author.class 11 Nov 2002 15:35:38 -0000 1.33 *************** *** 158,161 **** --- 158,168 ---- } + // save language preference + if(!empty($ary['lang'])) { + $author_options_ary['preferences']['lang'] = $ary['lang']; + $author_options_ary['_PSL']['lang'] = $ary['lang']; + } + + // save skin preference if(!empty($ary['skin'])) { $author_options_ary['preferences']['skin'] = $ary['skin']; *************** *** 311,314 **** --- 318,331 ---- } + // save language preference + if(!empty($ary['lang'])) { + $author_options_ary['preferences']['lang'] = $ary['lang']; + $author_options_ary['_PSL']['lang'] = $ary['lang']; + $this->auth->auth['preferences']['lang'] = $ary['lang']; + $this->psl['languagefile'] = setLang($ary['lang']); + $this->psl['templatedir'] = setLangTpl($ary['lang']); + } + + // save skin preference if(!empty($ary['skin'])) { $author_options_ary['preferences']['skin'] = $ary['skin']; *************** *** 319,329 **** if(!empty($ary['loggedoutprefs'])) { $preferences['skin'] = $ary['skin']; $cookie_ary['preferences'] = $preferences; setcookie( 'user_info', base64_encode(serialize($cookie_ary)), time()+31536000,$this->psl['rooturl'] , "" , ""); ! } elseif(array_key_exists($HTTP_COOKIE_VARS,'user_info')) { $user_info = unserialize(base64_decode($HTTP_COOKIE_VARS['user_info'])); ! if(array_key_exists($user_info, 'preferences')) { setcookie( 'user_info', '', time()-31536000, $this->psl['rooturl'], "", ""); $HTTP_COOKIE_VARS['user_info'] = ''; --- 336,347 ---- if(!empty($ary['loggedoutprefs'])) { + $preferences['lang'] = $ary['lang']; $preferences['skin'] = $ary['skin']; $cookie_ary['preferences'] = $preferences; setcookie( 'user_info', base64_encode(serialize($cookie_ary)), time()+31536000,$this->psl['rooturl'] , "" , ""); ! } elseif(array_key_exists('user_info', $HTTP_COOKIE_VARS)) { $user_info = unserialize(base64_decode($HTTP_COOKIE_VARS['user_info'])); ! if(array_key_exists('preferences', $user_info)) { setcookie( 'user_info', '', time()-31536000, $this->psl['rooturl'], "", ""); $HTTP_COOKIE_VARS['user_info'] = ''; *************** *** 469,473 **** --- 487,526 ---- 'SECLEV' => "" )); + + // set language preference + $currentlang = $this->psl['language']; + if (!empty($temparray['preferences'])) { + $preferences = $temparray['preferences']; + if(array_key_exists('lang', $preferences)) { + $currentlang = $preferences['lang']; + } + // unset($temparray['preferences']); + } + $this->author_templ->set_block ("newauthor", "each_lang", "languages"); + $fulldirlist = dir($this->psl['localedir'] . "/"); + while( $eachfile = $fulldirlist->read()) { + $this->author_templ->set_var('LANG_SELECTED', ''); + + if( (@is_file($this->psl['localedir'] . "/" . $eachfile)) AND + ( $eachfile != ".") AND + ( $eachfile != "..") AND + ( $eachfile != "CVS") AND + ( !strstr($eachfile, 'LC_TIME')) ) { + + $eachfile = substr( $eachfile, 0, strrpos($eachfile, ".") ); + $this->author_templ->set_var(array( + 'LANG' => $eachfile + )); + + if("$eachfile" == "$currentlang") { + $this->author_templ->set_var('LANG_SELECTED', 'selected=SELECTED'); + } + $this->author_templ->parse("languages","each_lang", true); + } + } + + + // set skin preference $currentskin = $this->psl['defaultskin']; if (!empty($temparray['preferences'])) { *************** *** 614,617 **** --- 667,705 ---- } + // set language preference + $currentlang = $this->psl['language']; + if (!empty($temparray['preferences'])) { + $preferences = $temparray['preferences']; + if(array_key_exists('lang', $preferences)) { + $currentlang = $preferences['lang']; + } + // unset($temparray['preferences']); + // unset($temparray['_PSL']); + } + + $this->author_templ->set_block ($template, "each_lang", "languages"); + $fulldirlist = dir($this->psl['localedir'] . "/"); + while( $eachfile = $fulldirlist->read()) { + $this->author_templ->set_var('LANG_SELECTED', ''); + + if( (@is_file($this->psl['localedir'] . "/" . $eachfile)) AND + ( $eachfile != ".") AND + ( $eachfile != "..") AND + ( $eachfile != "CVS") AND + ( !strstr($eachfile, 'LC_TIME')) ) { + + $eachfile = substr( $eachfile, 0, strrpos($eachfile, ".") ); + $this->author_templ->set_var(array( + 'LANG' => $eachfile + )); + + if("$eachfile" == "$currentlang") { + $this->author_templ->set_var('LANG_SELECTED', 'selected=SELECTED'); + } + $this->author_templ->parse("languages","each_lang", true); + } + } + + // set skin preference $currentskin = $this->psl['defaultskin']; if (!empty($temparray['preferences'])) { Index: slashAuthCR.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/slashAuthCR.class,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** slashAuthCR.class 29 Oct 2002 17:13:59 -0000 1.30 --- slashAuthCR.class 11 Nov 2002 15:35:39 -0000 1.31 *************** *** 47,53 **** $this->mode='log'; } ! if(!empty($this->auth['preferences'])) { ! $_PSL['templatedir'] = setSkinTpl($this->auth['preferences']['skin']); } --- 47,64 ---- $this->mode='log'; } ! ! // use preferences if(!empty($this->auth['preferences'])) { ! ! // use language preference ! if(isset($this->auth['preferences']['lang'])) { ! $_PSL['languagefile'] = setLang($this->auth['preferences']['lang']); ! $_PSL['templatedir'] = setLangTpl($this->auth['preferences']['lang']); ! } ! ! // use skin preference ! if(isset($this->auth['preferences']['skin'])) { ! $_PSL['templatedir'] = setSkinTpl($this->auth['preferences']['skin']); ! } } *************** *** 272,275 **** --- 283,294 ---- if(!empty($temparray['preferences'])){ $this->auth['preferences'] = $temparray['preferences']; + + // use language preference + if(isset($this->auth['preferences']['lang'])) { + $this->psl['languagefile'] = setLang($this->auth['preferences']['lang']); + $this->psl['templatedir'] = setLangTpl($this->auth['preferences']['lang']); + } + + // use skin preference if(isset($this->auth['preferences']['skin'])) { $this->psl['templatedir'] = setSkinTpl($this->auth['preferences']['skin']); |
From: Joe S. <joe...@us...> - 2002-11-11 15:35:42
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv23003/phpslash-ft Modified Files: CHANGES Log Message: user set language preference Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.593 retrieving revision 1.594 diff -C2 -d -r1.593 -r1.594 *** CHANGES 8 Nov 2002 17:19:15 -0000 1.593 --- CHANGES 11 Nov 2002 15:35:37 -0000 1.594 *************** *** 13,16 **** --- 13,20 ---- 9 - Removal of something (kill -9 :) + 2002-November-11 9:00AM CST Joe Stewart <joe...@us...> + [FT] - Author.class, slashAuthCR.class, authorNew.tpl, authorProfile.tpl, + slash-all.sql - allow a user to set language preference. + 2002-November-8 11:00AM CST Joe Stewart <joe...@us...> [B] - cronmail.php3, no_NO.LC_TIME.php3 - Lars' tweaks to cronmail and a |
From: Joe S. <joe...@us...> - 2002-11-08 17:19:19
|
Update of /cvsroot/phpslash/phpslash-ft/class/locale In directory usw-pr-cvs1:/tmp/cvs-serv14322/phpslash-ft/class/locale Added Files: no_NO.LC_TIME.php3 Log Message: cronmail tweaks --- NEW FILE: no_NO.LC_TIME.php3 --- <?php /** * Local date/time information for PHPSlash (no locale) * * $Id: no_NO.LC_TIME.php3,v 1.1 2002/11/08 17:19:16 joestewart Exp $ */ $pslstrings = array('date_format_long'=>'%e. %B %Y', 'date_format_short'=>'%d/%m/%Y', 'time_format_12'=>'%Ih%M%p', 'time_format_24'=>'%H:%M', 'date_time_format_long'=>'%a %e. %B %Y %H:%M', // 'date_time_format_long'=>'%A %b %e %H:%M:%S %Z %Y', 'date_time_format_short'=>'%d/%m/%Y %H:%M' ); ?> |
From: Joe S. <joe...@us...> - 2002-11-08 17:19:19
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv14322/phpslash-ft Modified Files: CHANGES Log Message: cronmail tweaks Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.592 retrieving revision 1.593 diff -C2 -d -r1.592 -r1.593 *** CHANGES 7 Nov 2002 17:09:11 -0000 1.592 --- CHANGES 8 Nov 2002 17:19:15 -0000 1.593 *************** *** 13,16 **** --- 13,20 ---- 9 - Removal of something (kill -9 :) + 2002-November-8 11:00AM CST Joe Stewart <joe...@us...> + [B] - cronmail.php3, no_NO.LC_TIME.php3 - Lars' tweaks to cronmail and a + Norwegian time/date format file. + 2002-November-7 11:00AM CST Joe Stewart <joe...@us...> [B] - cronmail.php3, no.php3 - Lars Kvanum's patches to translate strings in |
From: Joe S. <joe...@us...> - 2002-11-08 17:19:19
|
Update of /cvsroot/phpslash/phpslash-ft/contrib In directory usw-pr-cvs1:/tmp/cvs-serv14322/phpslash-ft/contrib Modified Files: cronmail.php3 Log Message: cronmail tweaks Index: cronmail.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/contrib/cronmail.php3,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** cronmail.php3 7 Nov 2002 17:09:11 -0000 1.5 --- cronmail.php3 8 Nov 2002 17:19:16 -0000 1.6 *************** *** 81,85 **** //require("/path/to/prepend.php3"); require("/path/to/config.php3"); - echo("Running<br>"); $rightnow = date("Hi"); //figures out what time it is --- 81,84 ---- *************** *** 123,127 **** // you may want to move this out to a file like // the header if you feel the need ! $footer = "<P><B>\n\t " . pslgetText("To add or remove yourself go to") . ": ".$siteurl."/mailinglist.php3</B><P></BODY></HTML>"; /********************************************************* --- 122,130 ---- // you may want to move this out to a file like // the header if you feel the need ! ! // I've split these two - you can't strip the text for international versions as this will do fun things ! // with the special characters not compatible with pure text mails. ! $footer_text = \n\t " . pslgetText("To add or remove yourself go to") . ": ".$siteurl."/mailinglist.php3"; ! $footer_html = "<P><B>\n\t " . $footer_text ."</B><P></BODY></HTML>"; /********************************************************* *************** *** 418,426 **** GLOBAL $siteurl; $headline = "\n" . pslgetText("Story") . ": ".format_mail($slash_q->Record["title"],500,true) . "\n"; - // $headline = "\nStory: ".format_mail($slash_q->Record["title"],500,true) . "\n"; $headline .= " " . pslgetText("Written") . ": " . psl_dateTimeLong($slash_q->Record["pretty_time"]) . "\n"; - // $headline .= " Written: " . psl_dateTimeLong($slash_q->Record["pretty_time"]) . "\n"; $headline .= " " . pslgetText("Intro") . ": " . format_mail($slash_q->Record["intro_text"],500,true) . ".\n"; - // $headline .= " Intro: " . format_mail($slash_q->Record["intro_text"],500,true) . ".\n"; $headline .= " ".$siteurl."/article.php3?story_id=" . $slash_q->Record["story_id"]."\n"; $headline .= "---------------------------------------------------------------------------------------------\n\n"; --- 421,426 ---- *************** *** 517,521 **** $body = $header; $body .= $my_message; // takes the body from my_message ! $body .= strip_tags($footer); $subject = $mailsubj; $headers = "Reply-To:$sender\r\n"; --- 517,521 ---- $body = $header; $body .= $my_message; // takes the body from my_message ! $body .= $footer_text; // No need to strip $subject = $mailsubj; $headers = "Reply-To:$sender\r\n"; |
From: Joe S. <joe...@us...> - 2002-11-07 17:09:20
|
Update of /cvsroot/phpslash/phpslash-ft/contrib In directory usw-pr-cvs1:/tmp/cvs-serv23310/phpslash-ft/contrib Modified Files: cronmail.php3 Log Message: string translations in cronmail Index: cronmail.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/contrib/cronmail.php3,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** cronmail.php3 13 Aug 2002 14:36:34 -0000 1.4 --- cronmail.php3 7 Nov 2002 17:09:11 -0000 1.5 *************** *** 1,4 **** - #!/usr/bin/php <?php // $Id$ // Written by 'Blake' --- 1,4 ---- <?php + // #!/usr/bin/php // $Id$ // Written by 'Blake' *************** *** 79,85 **** //.......................... ! ! require("../phplib/prepend.php3"); ! require("../phplib/config.php3"); $rightnow = date("Hi"); //figures out what time it is --- 79,85 ---- //.......................... ! //require("/path/to/prepend.php3"); ! require("/path/to/config.php3"); ! echo("Running<br>"); $rightnow = date("Hi"); //figures out what time it is *************** *** 93,97 **** $choplength = 600; ! //since you want to include a message daily, it's a seperate file //remember to make it HTML if you are using the HTML option. //tags are stripped for plain text --- 93,97 ---- $choplength = 600; ! //since you want to include a message daily, it's a separate file //remember to make it HTML if you are using the HTML option. //tags are stripped for plain text *************** *** 103,112 **** // comment this out if you don't care about it ! $header .= "\n"; ! $header .= `/usr/games/fortune -s` ; // a little bit of fun! ! $header .= "\n"; $sitename = $_PSL['site_name']; // used in the title, and subject, and body of mail ! $siteurl = $_PSL['rooturl']; if ($html==1){ --- 103,112 ---- // comment this out if you don't care about it ! //$header .= "\n"; ! //$header .= `/usr/games/fortune -s` ; // a little bit of fun! ! //$header .= "\n"; $sitename = $_PSL['site_name']; // used in the title, and subject, and body of mail ! $siteurl = $_PSL['rooturl']; if ($html==1){ *************** *** 123,127 **** // you may want to move this out to a file like // the header if you feel the need ! $footer = "<P><B>\n\t To add or remove yourself go to:\n<BR>".$siteurl."/mailinglist.php3</B><P></BODY></HTML>"; /********************************************************* --- 123,127 ---- // you may want to move this out to a file like // the header if you feel the need ! $footer = "<P><B>\n\t " . pslgetText("To add or remove yourself go to") . ": ".$siteurl."/mailinglist.php3</B><P></BODY></HTML>"; /********************************************************* *************** *** 406,410 **** // but, for the moment 2002-06-12 luis mondesi: $sql="SELECT story_id, title, dept, ". ! " date_format(time, \"%W %M %d %h %i %p\") as pretty_time, ". " intro_text FROM psl_story ". " WHERE time >= '$begdate' AND time <= '$enddate' ORDER BY time DESC"; --- 406,410 ---- // but, for the moment 2002-06-12 luis mondesi: $sql="SELECT story_id, title, dept, ". ! " UNIX_TIMESTAMP(time) as pretty_time, ". " intro_text FROM psl_story ". " WHERE time >= '$begdate' AND time <= '$enddate' ORDER BY time DESC"; *************** *** 417,424 **** while($slash_q->next_record()){ GLOBAL $siteurl; ! $headline = "\n".format_mail($slash_q->Record["title"],500,true) . "\n"; ! $headline .= " From the: \"" . $slash_q->Record["dept"] . "\" dept.\n"; ! $headline .= " Posted on: \"" . $slash_q->Record["pretty_time"] . "\n"; ! $headline .= " Story: " . format_mail($slash_q->Record["intro_text"],500,true) . ".\n"; $headline .= " ".$siteurl."/article.php3?story_id=" . $slash_q->Record["story_id"]."\n"; $headline .= "---------------------------------------------------------------------------------------------\n\n"; --- 417,426 ---- while($slash_q->next_record()){ GLOBAL $siteurl; ! $headline = "\n" . pslgetText("Story") . ": ".format_mail($slash_q->Record["title"],500,true) . "\n"; ! // $headline = "\nStory: ".format_mail($slash_q->Record["title"],500,true) . "\n"; ! $headline .= " " . pslgetText("Written") . ": " . psl_dateTimeLong($slash_q->Record["pretty_time"]) . "\n"; ! // $headline .= " Written: " . psl_dateTimeLong($slash_q->Record["pretty_time"]) . "\n"; ! $headline .= " " . pslgetText("Intro") . ": " . format_mail($slash_q->Record["intro_text"],500,true) . ".\n"; ! // $headline .= " Intro: " . format_mail($slash_q->Record["intro_text"],500,true) . ".\n"; $headline .= " ".$siteurl."/article.php3?story_id=" . $slash_q->Record["story_id"]."\n"; $headline .= "---------------------------------------------------------------------------------------------\n\n"; *************** *** 547,549 **** --- 549,552 ---- */ }//closes the mail function + ?> |
From: Joe S. <joe...@us...> - 2002-11-07 17:09:19
|
Update of /cvsroot/phpslash/phpslash-ft/class/locale In directory usw-pr-cvs1:/tmp/cvs-serv23310/phpslash-ft/class/locale Modified Files: no.php3 Log Message: string translations in cronmail Index: no.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/locale/no.php3,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** no.php3 19 Dec 2001 20:00:41 -0000 1.3 --- no.php3 7 Nov 2002 17:09:11 -0000 1.4 *************** *** 34,38 **** "Add Story" => ! "Legg til sak", "Archives" => --- 34,38 ---- "Add Story" => ! "Bidra med sak", "Archives" => *************** *** 46,50 **** "Topic" => ! "Område", "Story" => --- 46,50 ---- "Topic" => ! "Områder", "Story" => *************** *** 52,62 **** "Submission" => ! "Innlevering", "Section" => ! "Seksjon", "Block" => ! "Block", "Poll" => --- 52,62 ---- "Submission" => ! "Bidrag", "Section" => ! "Seksjoner", "Block" => ! "Blokker", "Poll" => *************** *** 64,68 **** "Author" => ! "Forfatter", "Glossary" => --- 64,68 ---- "Author" => ! "Forfattere", "Glossary" => *************** *** 90,101 **** // login.php3 "%s logged out." => ! "%s logget out.", // mailinglist.php3 // poll.php3 "VOTE: " => ! "STEM: ", "View Pollbooth" => ! "Se avstemningsbås", "%s Poll" => --- 90,101 ---- // login.php3 "%s logged out." => ! "%s logget ut.", // mailinglist.php3 // poll.php3 "VOTE: " => ! "AVSTEMNING: ", "View Pollbooth" => ! "Se avstemning", "%s Poll" => *************** *** 179,183 **** "October" => ! "october", "November" => --- 179,183 ---- "October" => ! "oktober", "November" => *************** *** 185,189 **** "December" => ! "december", // Block_render_html.class --- 185,189 ---- "December" => ! "desember", // Block_render_html.class *************** *** 206,210 **** "Index" => ! "Index", "Bulk Delete" => --- 206,210 ---- "Index" => ! "Indeks", "Bulk Delete" => *************** *** 314,322 **** // Submission.class "Anonymous Coward" => ! "Anonym Feigin" // Topic.class // TopicBar.class // Variable.class ); --- 314,335 ---- // Submission.class "Anonymous Coward" => ! "Anonym Feiging", // Topic.class // TopicBar.class // Variable.class + + // cronmail.php3 + "Story" => + "Sak", + + "Written" => + "Skrevet", + + "Intro" => + "Innledning", + + "To add or remove yourself go to" => + "For å fjerne deg selv fra listen kan du gå til" ); |
From: Joe S. <joe...@us...> - 2002-11-07 17:09:18
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv23310/phpslash-ft Modified Files: CHANGES Log Message: string translations in cronmail Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.591 retrieving revision 1.592 diff -C2 -d -r1.591 -r1.592 *** CHANGES 31 Oct 2002 21:38:49 -0000 1.591 --- CHANGES 7 Nov 2002 17:09:11 -0000 1.592 *************** *** 13,16 **** --- 13,20 ---- 9 - Removal of something (kill -9 :) + 2002-November-7 11:00AM CST Joe Stewart <joe...@us...> + [B] - cronmail.php3, no.php3 - Lars Kvanum's patches to translate strings in + cronmail and tweaks to the Norwegian language file. + 2002-October-31 3:00PM CST Joe Stewart <joe...@us...> [B] - Story.class - topics display in getStories was a little broke. |
From: Joe S. <joe...@us...> - 2002-11-01 15:24:33
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory usw-pr-cvs1:/tmp/cvs-serv18723/phpslash-ft/class Modified Files: Story.class Log Message: array index check fixes Index: Story.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/Story.class,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** Story.class 31 Oct 2002 21:38:50 -0000 1.43 --- Story.class 1 Nov 2002 15:24:30 -0000 1.44 *************** *** 469,474 **** $this->template->set_block("printStory","row","rows"); $this->template->set_block("printStory","alsotext","alsoblock"); ! $this->template->set_block($template,"row","rows"); ! $this->template->set_block($template,"alsotext","alsoblock"); } --- 469,474 ---- $this->template->set_block("printStory","row","rows"); $this->template->set_block("printStory","alsotext","alsoblock"); ! // $this->template->set_block($template,"row","rows"); ! // $this->template->set_block($template,"alsotext","alsoblock"); } |
From: Joe S. <joe...@us...> - 2002-10-31 21:38:54
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory usw-pr-cvs1:/tmp/cvs-serv21945/phpslash-ft/class Modified Files: Story.class Block.class Block_i.class Log Message: array index check fixes Index: Story.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/Story.class,v retrieving revision 1.42 retrieving revision 1.43 diff -C2 -d -r1.42 -r1.43 *** Story.class 24 Oct 2002 18:12:10 -0000 1.42 --- Story.class 31 Oct 2002 21:38:50 -0000 1.43 *************** *** 435,439 **** $default_tpl = "indexstory"; ! $topic_id_ary = ''; $site_homesection = $this->psl['site_homesection']; --- 435,439 ---- $default_tpl = "indexstory"; ! $topic_id_ary = array(); $site_homesection = $this->psl['site_homesection']; *************** *** 469,473 **** --- 469,477 ---- $this->template->set_block("printStory","row","rows"); $this->template->set_block("printStory","alsotext","alsoblock"); + $this->template->set_block($template,"row","rows"); + $this->template->set_block($template,"alsotext","alsoblock"); + } + $this->template->set_block($template, 'each_story', 'stories'); *************** *** 521,534 **** )); ! if(!empty($stories_ary[$i]['topic_id_ary'])) { $topic_id_ary = $stories_ary[$i]['topic_id_ary']; ! } $topic_name_ary = $stories_ary[$i]['topic_name_ary']; ! if (is_array($topic_id_ary)) { $max = count($topic_id_ary); ! $this->template->parse("alsoblock", "alsotext", true); for ($k = 0 ; $k < $max ; $k++) { --- 525,538 ---- )); ! // if(array_key_exists('topic_id_ary', $stories_ary[$i])) { $topic_id_ary = $stories_ary[$i]['topic_id_ary']; ! // } $topic_name_ary = $stories_ary[$i]['topic_name_ary']; ! if (!empty($topic_id_ary)) { $max = count($topic_id_ary); ! $this->template->parse("alsoblock", "alsotext", true); for ($k = 0 ; $k < $max ; $k++) { Index: Block.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/Block.class,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** Block.class 24 Oct 2002 19:36:03 -0000 1.18 --- Block.class 31 Oct 2002 21:38:50 -0000 1.19 *************** *** 1,4 **** <?php ! /* @version $Id$ */ /** --- 1,4 ---- <?php ! /* @version $Id$ */ /** *************** *** 396,405 **** if (is_string($this->block_info["block_options"]["width"])) { $width = $this->block_info["block_options"]["width"]; ! } if (is_string($this->block_info["block_options"]["box_type"])) { $box_type = $this->block_info["block_options"]["box_type"]; ! } } ! if( !is_string($this->block_info['block_options']['perms'])) { return getFancyBox($width, pslgetText($temptitle), $this->block_info["cache_data"],$link, $box_type); } elseif ($this->perm->have_perm($this->block_info['block_options']['perms'])) { --- 396,405 ---- if (is_string($this->block_info["block_options"]["width"])) { $width = $this->block_info["block_options"]["width"]; ! } if (is_string($this->block_info["block_options"]["box_type"])) { $box_type = $this->block_info["block_options"]["box_type"]; ! } } ! if( empty($this->block_info['block_options']['perms'])) { return getFancyBox($width, pslgetText($temptitle), $this->block_info["cache_data"],$link, $box_type); } elseif ($this->perm->have_perm($this->block_info['block_options']['perms'])) { Index: Block_i.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/Block_i.class,v retrieving revision 1.20 retrieving revision 1.21 diff -C2 -d -r1.20 -r1.21 *** Block_i.class 24 Oct 2002 18:12:10 -0000 1.20 --- Block_i.class 31 Oct 2002 21:38:50 -0000 1.21 *************** *** 103,107 **** for ($i=0; $i < count($this->block_ary); $i++) { ! if( !isset($this->block_ary[$i]['block_options']['perms'])) { $output .= $this->parseBlock($this->block_ary[$i], $column); } elseif ($this->perm->have_perm($this->block_ary[$i]['block_options']['perms'])) { --- 103,107 ---- for ($i=0; $i < count($this->block_ary); $i++) { ! if( empty($this->block_ary[$i]['block_options']['perms'])) { $output .= $this->parseBlock($this->block_ary[$i], $column); } elseif ($this->perm->have_perm($this->block_ary[$i]['block_options']['perms'])) { |
From: Joe S. <joe...@us...> - 2002-10-31 21:38:54
|
Update of /cvsroot/phpslash/phpslash-ft In directory usw-pr-cvs1:/tmp/cvs-serv21945/phpslash-ft Modified Files: CHANGES Log Message: array index check fixes Index: CHANGES =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/CHANGES,v retrieving revision 1.590 retrieving revision 1.591 diff -C2 -d -r1.590 -r1.591 *** CHANGES 29 Oct 2002 17:13:58 -0000 1.590 --- CHANGES 31 Oct 2002 21:38:49 -0000 1.591 *************** *** 13,16 **** --- 13,20 ---- 9 - Removal of something (kill -9 :) + 2002-October-31 3:00PM CST Joe Stewart <joe...@us...> + [B] - Story.class - topics display in getStories was a little broke. + Block.class, Block_i.class - A more clean perms check. ( Thanks Peter) + 2002-October-29 10:00AM CST Joe Stewart <joe...@us...> [W] - Author.class, slashAuthCR.lcass, login.php3 - more tweaks to user options. |
From: Joe S. <joe...@us...> - 2002-10-29 17:14:26
|
Update of /cvsroot/phpslash/phpslash-ft/public_html In directory usw-pr-cvs1:/tmp/cvs-serv6525/phpslash-ft/public_html Modified Files: login.php3 Log Message: more user option tweaks Index: login.php3 =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/public_html/login.php3,v retrieving revision 1.25 retrieving revision 1.26 diff -C2 -d -r1.25 -r1.26 *** login.php3 29 Oct 2002 15:49:33 -0000 1.25 --- login.php3 29 Oct 2002 17:14:22 -0000 1.26 *************** *** 14,19 **** if (isset($HTTP_GET_VARS['logout'])) { if(isset($HTTP_COOKIE_VARS['user_info'])) { ! $user_info = $HTTP_COOKIE_VARS['user_info']; ! if(empty($user_info['preferences'])) { setcookie( 'user_info', '', time()-31536000, $_PSL['rooturl'], "", ""); $sess->delete(); --- 14,19 ---- if (isset($HTTP_GET_VARS['logout'])) { if(isset($HTTP_COOKIE_VARS['user_info'])) { ! $user_info = unserialize(base64_decode($HTTP_COOKIE_VARS['user_info'])); ! if(!array_key_exists($user_info, 'preferences')) { setcookie( 'user_info', '', time()-31536000, $_PSL['rooturl'], "", ""); $sess->delete(); |
From: Joe S. <joe...@us...> - 2002-10-29 17:14:02
|
Update of /cvsroot/phpslash/phpslash-ft/class In directory usw-pr-cvs1:/tmp/cvs-serv6303/phpslash-ft/class Modified Files: Author.class slashAuthCR.class Log Message: more user option tweaks Index: Author.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/Author.class,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -d -r1.31 -r1.32 *** Author.class 28 Oct 2002 22:30:19 -0000 1.31 --- Author.class 29 Oct 2002 17:13:59 -0000 1.32 *************** *** 36,42 **** $this->db = new slashDB; ! $this->perm = $perm; ! $this->psl = $_PSL; ! $this->auth = $auth; /* Templates */ --- 36,42 ---- $this->db = new slashDB; ! $this->perm = &$perm; ! $this->psl = &$_PSL; ! $this->auth = &$auth; /* Templates */ *************** *** 285,289 **** function saveProfile($ary) { ! global $auth, $HTTP_COOKIE_VARS; if ($ary['author_name'] == "") { --- 285,289 ---- function saveProfile($ary) { ! global $HTTP_COOKIE_VARS; if ($ary['author_name'] == "") { *************** *** 314,330 **** $author_options_ary['preferences']['skin'] = $ary['skin']; $author_options_ary['_PSL']['skin'] = $ary['skin']; ! $auth->auth['preferences']['skin'] = $ary['skin']; } if(!empty($ary['loggedoutprefs'])) { - debug("yes", $ary['loggedoutprefs']); $preferences['skin'] = $ary['skin']; $cookie_ary['preferences'] = $preferences; setcookie( 'user_info', base64_encode(serialize($cookie_ary)), time()+31536000,$this->psl['rooturl'] , "" , ""); ! } elseif(!empty($HTTP_COOKIE_VARS['user_info']['preferences'])) { ! setcookie( 'user_info', '', time()-31536000, $this->psl['rooturl'], "", ""); ! $HTTP_COOKIE_VARS['user_info'] = ''; ! } --- 314,332 ---- $author_options_ary['preferences']['skin'] = $ary['skin']; $author_options_ary['_PSL']['skin'] = $ary['skin']; ! $this->auth->auth['preferences']['skin'] = $ary['skin']; ! $this->psl['templatedir'] = setSkinTpl($ary['skin']); } if(!empty($ary['loggedoutprefs'])) { $preferences['skin'] = $ary['skin']; $cookie_ary['preferences'] = $preferences; setcookie( 'user_info', base64_encode(serialize($cookie_ary)), time()+31536000,$this->psl['rooturl'] , "" , ""); ! } elseif(array_key_exists($HTTP_COOKIE_VARS,'user_info')) { ! $user_info = unserialize(base64_decode($HTTP_COOKIE_VARS['user_info'])); ! if(array_key_exists($user_info, 'preferences')) { ! setcookie( 'user_info', '', time()-31536000, $this->psl['rooturl'], "", ""); ! $HTTP_COOKIE_VARS['user_info'] = ''; ! } } Index: slashAuthCR.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-ft/class/slashAuthCR.class,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** slashAuthCR.class 28 Oct 2002 22:30:19 -0000 1.29 --- slashAuthCR.class 29 Oct 2002 17:13:59 -0000 1.30 *************** *** 37,41 **** global $_PSL, $HTTP_GET_VARS; ! $this->psl = $_PSL; if (!empty($HTTP_GET_VARS['mode']) && $HTTP_GET_VARS['mode']=='reg') { if( !empty($_PSL['authmode'])) { --- 37,41 ---- global $_PSL, $HTTP_GET_VARS; ! $this->psl = &$_PSL; if (!empty($HTTP_GET_VARS['mode']) && $HTTP_GET_VARS['mode']=='reg') { if( !empty($_PSL['authmode'])) { *************** *** 272,275 **** --- 272,278 ---- if(!empty($temparray['preferences'])){ $this->auth['preferences'] = $temparray['preferences']; + if(isset($this->auth['preferences']['skin'])) { + $this->psl['templatedir'] = setSkinTpl($this->auth['preferences']['skin']); + } } |