From: <lph...@us...> - 2008-07-28 14:58:23
|
Revision: 13915 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=13915&view=rev Author: lphuberdeau Date: 2008-07-28 14:58:28 +0000 (Mon, 28 Jul 2008) Log Message: ----------- [MRG] Automatic merge, branches/2.0 13877 to 13914 Modified Paths: -------------- trunk/fgal_listing_conf.php trunk/installer/tiki-installer.php trunk/lib/admin/adminlib.php trunk/lib/csslib.php trunk/lib/setup/tikisetup.class.php trunk/lib/setup/twversion.class.php trunk/lib/smarty_tiki/function.tree.php trunk/lib/tikilib.php trunk/styles/darkroom.css trunk/styles/feb12.css trunk/styles/tikinewt.css trunk/styles/transitions/1.9to2.0.css trunk/templates/comments.tpl trunk/templates/tiki-admin-include-look.tpl trunk/tiki-install.php trunk/tiki-setup.php Modified: trunk/fgal_listing_conf.php =================================================================== --- trunk/fgal_listing_conf.php 2008-07-28 14:43:34 UTC (rev 13914) +++ trunk/fgal_listing_conf.php 2008-07-28 14:58:28 UTC (rev 13915) @@ -61,7 +61,7 @@ $k_prefs = 'fgal_'.$k_gal; // Only check the current gallery value if the feature (in global prefs) is enabled - $fgal_options[$k_gal]['value'] = ( $prefs[$k_prefs] == 'y' && isset($gal_info) ) ? $gal_info[$k_gal] : $prefs[$k_prefs]; + $fgal_options[$k_gal]['value'] = ( $prefs[$k_prefs] == 'y' && isset($gal_info) && isset($gal_info[$k_gal]) ) ? $gal_info[$k_gal] : $prefs[$k_prefs]; } $smarty->assign_by_ref('fgal_options', $fgal_options); Modified: trunk/installer/tiki-installer.php =================================================================== --- trunk/installer/tiki-installer.php 2008-07-28 14:43:34 UTC (rev 13914) +++ trunk/installer/tiki-installer.php 2008-07-28 14:58:28 UTC (rev 13915) @@ -366,7 +366,7 @@ a) To run setup.sh, follow the instructions: \$ cd $docroot - \$ sh ./setup.sh + \$ sh setup.sh The script will offer you options depending on your server configuration. Modified: trunk/lib/admin/adminlib.php =================================================================== --- trunk/lib/admin/adminlib.php 2008-07-28 14:43:34 UTC (rev 13914) +++ trunk/lib/admin/adminlib.php 2008-07-28 14:58:28 UTC (rev 13915) @@ -396,11 +396,11 @@ } function list_content_tables() { - global $dbversion_tiki; + global $TWV; // this function lists all tables and fields that hold textual content. // used in System Admin -> Fix UTF-8 Errors. - $tikisql=file('db/tiki-'.$dbversion_tiki.'-mysql.sql'); + $tikisql=file('db/tiki-'.$TWV->getBaseVersion().'-mysql.sql'); $tabfields=array(); foreach($tikisql as $item) { if(preg_match('/^CREATE TABLE ([a-zA-Z0-9_]+)/',$item,$tmatch)) { Modified: trunk/lib/csslib.php =================================================================== --- trunk/lib/csslib.php 2008-07-28 14:43:34 UTC (rev 13914) +++ trunk/lib/csslib.php 2008-07-28 14:58:28 UTC (rev 13915) @@ -159,12 +159,13 @@ * @TODO: return empty string if CSS file is /newer/ than db version? */ function transition_css($path, $default_ver='1.9') { - global $dbversion_tiki; + global $TWV; + $cssversion = $this->version_css($path); // assume default_ver if no @version string $cssversion = $cssversion ? $cssversion : $default_ver; if( $dbversion_tiki == $cssversion || !$cssversion ) { return ''; } - return $cssversion."to".$dbversion_tiki.".css"; + return $cssversion."to".$TWV->getBaseVersion().".css"; } } global $dbTiki; Modified: trunk/lib/setup/tikisetup.class.php =================================================================== --- trunk/lib/setup/tikisetup.class.php 2008-07-28 14:43:34 UTC (rev 13914) +++ trunk/lib/setup/tikisetup.class.php 2008-07-28 14:58:28 UTC (rev 13915) @@ -144,8 +144,7 @@ a) Run setup.sh and follow the instructions: \$ bash \$ cd $docroot - \$ chmod +x setup.sh - \$ ./setup.sh + \$ sh setup.sh The script will offer you options depending on your server configuration. Modified: trunk/lib/setup/twversion.class.php =================================================================== --- trunk/lib/setup/twversion.class.php 2008-07-28 14:43:34 UTC (rev 13914) +++ trunk/lib/setup/twversion.class.php 2008-07-28 14:58:28 UTC (rev 13915) @@ -40,6 +40,12 @@ // Check for CVS or not $this->cvs = is_dir('CVS') ? 'y' : 'n'; } + + function getBaseVersion() + { + return preg_replace( "/^(\d+\.\d+).*$/", '$1', $this->version ); + } + // Returns an array of all used Tiki stars. function tikiStars() { return array( Modified: trunk/lib/smarty_tiki/function.tree.php =================================================================== --- trunk/lib/smarty_tiki/function.tree.php 2008-07-28 14:43:34 UTC (rev 13914) +++ trunk/lib/smarty_tiki/function.tree.php 2008-07-28 14:58:28 UTC (rev 13915) @@ -65,27 +65,34 @@ $structure = data2struct($params['data'], 1, $expanded); } - if ( $prefs['javascript_enabled'] == 'y' ) { + $default_expand = $params['expanded']; + $phplm_expand = ''; - // Update cookie that stores tree elements that should be expanded - // by keeping those already expanded by the user and those that should now be expanded ($params['expanded']) - // - if ( isset($_COOKIE) && isset($_COOKIE['phplm_expand']) && $_COOKIE['phplm_expand'] != '' ) { - $phplm_expand = implode('|', array_unique(array_merge($params['expanded'], explode('|', $_COOKIE['phplm_expand'])))); - if ( ! headers_sent() ) { - // Not using php's setcookie function because pipes '|' are converted to %7C - // and are no more understood by PHP Layers javacript - header('Set-Cookie: phplm_expand='.$phplm_expand.'; path=/'); - } - } - - // Reset cookie that stores tree elements collapsed by the user, in order - // to be sure every elements of $params['expanded'] are really expanded - // - setcookie('phplm_collapse', '', false, '/'); + // Update cookie that stores tree elements that should be expanded + // by keeping those already expanded by the user and those that should now be expanded ($params['expanded']) + // + if ( isset($_COOKIE) && isset($_COOKIE['phplm_expand']) && ereg('^[0-9\|]+$', $_COOKIE['phplm_expand']) ) { + // Get user choices stored in Cookies from this script and from phplayers itself in javascript version + $phplm_expand = $_COOKIE['phplm_expand']; + $default_expand = array_unique(array_merge($params['expanded'], explode('|', $_COOKIE['phplm_expand']))); + } + if ( isset($_GET['p']) && ereg('^[0-9\|]+$', $_GET['p']) ) { + // Get user choices from URLs generated by phplayers in php version + $phplm_expand = $_GET['p']; + $default_expand = array_unique(array_merge($params['expanded'], explode('|', $_GET['p']))); + } + if ( ! headers_sent() ) { + // Not using php's setcookie function because pipes '|' are converted to %7C + // and are no more understood by PHP Layers javacript + header('Set-Cookie: phplm_expand='.$phplm_expand.'; path=/'); } - return $tikiphplayers->mkMenu($structure, '', $params['type'], '', 0, max($params['expanded'])); + // Reset cookie that stores tree elements collapsed by the user, in order + // to be sure every elements of $params['expanded'] are really expanded + // + setcookie('phplm_collapse', '', false, '/'); + + return $tikiphplayers->mkMenu($structure, '', $params['type'], '', 0, implode('|', $default_expand)); } ?> Modified: trunk/lib/tikilib.php =================================================================== --- trunk/lib/tikilib.php 2008-07-28 14:43:34 UTC (rev 13914) +++ trunk/lib/tikilib.php 2008-07-28 14:58:28 UTC (rev 13915) @@ -5317,7 +5317,7 @@ $attrib .= 'target="_blank" '; if ($prefs['feature_wiki_ext_icon'] == 'y') { $attrib .= 'class="wiki external" '; - $ext_icon = "<img border=\"0\" class=\"externallink\" src=\"img/icons/external_link.gif\" alt=\"external link\" />"; + $ext_icon = "<img border=\"0\" class=\"externallink\" src=\"img/icons/external_link.gif\" alt=\" (external link)\" />"; } else { $attrib .= 'class="wiki" '; $ext_icon = ""; @@ -6083,8 +6083,10 @@ // then also resize the image server-side, because it will generally imply less data to download from the user // (i.e. speed up the page download) and a better image quality (browser resize algorithms are quick but bad) // - if ( $imgdata['width'] ) $imgdata['src'] .= '&x='.$imgdata['width']; - if ( $imgdata['height'] ) $imgdata['src'] .= '&y='.$imgdata['height']; + // Note: ctype_digit is used to ensure there is only digits in width and height strings (e.g. to avoid '50%', ...) + // + if ( (int)$imgdata['width'] > 0 && ctype_digit($imgdata['width']) ) $imgdata['src'] .= '&x='.$imgdata['width']; + if ( (int)$imgdata['height'] > 0 && ctype_digit($imgdata['height']) ) $imgdata['src'] .= '&y='.$imgdata['height']; } if ( $imgdata['width'] ) $imgdata_dim .= ' width="' . $imgdata['width'] . '"'; if ( $imgdata['height'] ) $imgdata_dim .= ' height="' . $imgdata['height'] . '"'; @@ -6161,7 +6163,7 @@ } else { $class = 'class="wiki external"'; if ($prefs['feature_wiki_ext_icon'] == 'y') { - $ext_icon = "<img border=\"0\" class=\"externallink\" src=\"img/icons/external_link.gif\" alt=\"external link\" />"; + $ext_icon = "<img border=\"0\" class=\"externallink\" src=\"img/icons/external_link.gif\" alt=\" (external link)\" />"; } $rel='external'; } Modified: trunk/styles/darkroom.css =================================================================== --- trunk/styles/darkroom.css 2008-07-28 14:43:34 UTC (rev 13914) +++ trunk/styles/darkroom.css 2008-07-28 14:58:28 UTC (rev 13915) @@ -17,6 +17,8 @@ font-family: "Trebuchet MS", "Bitstream Vera Sans", sans-serif} html>body {font-size: 74% !important} +*:first-child+html body {font-size: 72% !important; +} body.fullscreen { } a, @@ -39,7 +41,7 @@ padding: 0} h1 { - font-size: 1.8em; + font-size: 1.7em; margin:0pt 10px 3px} h2 {font-size: 1.6em} @@ -866,9 +868,14 @@ .rbox-title { text-align: left; padding: 3px; - font-weight: bold} + font-weight: bold; + background: transparent; + border: 0} -.rbox-data {padding: 3px} +.rbox-data { + padding: 3px; + background: transparent; + border: 0} .rbox a {text-decoration: underline} @@ -1339,11 +1346,13 @@ font-weight: bold} /* Quote plugin */ -div.quoteheader {margin-left: 20px} +div.quoteheader { + margin-left: 20px; + margin-right: 10px} div.quotebody { font-style: italic; - margin: 0 5px 10px 5px; + margin: 0 10px 10px 5px; padding: 5px; background: #696969; color: #F5F5F5} @@ -1580,11 +1589,15 @@ width: 100%} .post .postbody { + clear: both; background: #343434; - width: 100%} + width: 100%; + min-width: 100%; + margin: 0; + border: 0} * html .post .postbody {font-size: 11px} -*:first-child+html .postbody { width: 55em } +*:first-child+html .post .postbody {min-width: 100% !important} #col1 .post .postbody .content { color: #D8D8D8; @@ -1593,22 +1606,26 @@ float: left; padding: 0 3px 3px 3px !important; margin: 0 !important; - width: 100% !important; + width: 100%; + min-width: 100% !important; height: 100%; text-align: left; - color: #D8D8D8/*#3F3F3F*/} + color: #D8D8D8} .post .postbody .content p { margin: 5px 10px } .post .postbody-title { + background-color: inherit; background: #343434 url(darkroom/button.png) repeat-x; + border-bottom: 0; + overflow: hidden; color: #D8D8D8} .post .postbody-title .checkbox { float: left} .post .postbody-title .title { float: left; - color: #29677B; + color: #D8D8D8; font-weight: bold; font-size: 1.1em; margin-left: 5px; @@ -1631,9 +1648,14 @@ border: none; padding-left: 4px; padding-bottom: 4px} + +.post .author_info { + background-color: #575757; + border: 0} .post .author_info .icons { display: block} .post .author_info .icons .actions { margin-right: 10px} +.post .author_post_info {background-color: #575757} .post .author_post_info_on { font-style: italic} .commentStyle_headers .author_info { float: left} @@ -1641,13 +1663,16 @@ .post .postbody-title .actions { float: right; font-size: .9em} + +.postbody-content {min-width: 100%; margin: 5px} +*:first-child+html .postbody-content {min-width: 73%} .post .postbody .attachments { clear: both; border-top: 1px dotted #D9D9D9; margin-top: 5px} -.post .postbody .attachments img { vertical-align: text-bottom} +.post .postbody .attachments img {vertical-align: text-bottom} .post .postfooter .actions, .post .postfooter .status { @@ -1655,18 +1680,18 @@ margin-left: 5px; vertical-align: top} -.post .postfooter .status { font-size: 10px} +.post .postfooter .status {font-size: 10px} .post .postfooter { float: right; text-align: right} -.post .inner > .postfooter { clear: both} +.post .inner > .postfooter {clear: both} .post .contribution { background-color: #F0F8FF; border: 1px solid #D7E5F3; - padding: 0 2px 0 2px} + padding: 0 2px} .post .avatar { float: right; @@ -1711,7 +1736,7 @@ .nb_replies {white-space: nowrap} .post_preview, -.top_post { margin-bottom: 15px} +.top_post {margin-bottom: 15px} /*.post .postbody .signature { float: left}*/ /* Comments */ @@ -1740,7 +1765,9 @@ text-align: center; font-weight: bold} -textarea#editpost2 {font-size: 1em} +textarea#editpost2 { + width: 100%; + font-size: 1em} /***** Categories *****/ Modified: trunk/styles/feb12.css =================================================================== --- trunk/styles/feb12.css 2008-07-28 14:43:34 UTC (rev 13914) +++ trunk/styles/feb12.css 2008-07-28 14:58:28 UTC (rev 13915) @@ -1315,7 +1315,7 @@ font-weight: normal} * html .post .postbody {font-size: 1em} -*:first-child+html .postbody {width: 50em !important} +*:first-child+html .postbody {min-width: 100% !important} .postbody-content {padding: 8px } @@ -1464,7 +1464,8 @@ .subcomment { margin-left: 10px} div.commentsedithelp { background: #ffcfcf; color: black; border: 1px solid #ff0000; text-align: center; font-weight: bold} -textarea#editpost2 {font-size: .9em} +textarea#editpost2 {font-size: 1em} + /***** Categories *****/ table.tcategpath {} Modified: trunk/styles/tikinewt.css =================================================================== --- trunk/styles/tikinewt.css 2008-07-28 14:43:34 UTC (rev 13914) +++ trunk/styles/tikinewt.css 2008-07-28 14:58:28 UTC (rev 13915) @@ -145,8 +145,8 @@ cursor: pointer; } -.findtable input { - _font-size: 1em; +* html .findtable input { + font-size: 1em; } fieldset { @@ -362,8 +362,7 @@ #c1c2 #wrapper #col1 #tiki-center { background: #F3F6F9; margin: 0; - padding-left: 5px; - padding-bottom: 0; + padding: 0 5px; border-left: 1px solid #8CACBB; /* font-size: .9em;*/ } @@ -1795,6 +1794,7 @@ color: black; } /* forums new */ + .post .postbody { clear: both; border: solid 1px #E7EAED; @@ -1802,12 +1802,11 @@ margin: 0; margin-top: 5px; padding: 0; - background-color: #F9FCFF; - /*font-size: 1.1em;*/ + background-color: #F9FCFF } * html .post .postbody {font-size: 11px} -*:first-child+html .post .postbody {width: 67em !important} +*:first-child+html .post .postbody {min-width: 100% !important} .postbody-title { display: block; @@ -1830,10 +1829,10 @@ #col1 .post .postbody .content { color: #000000; background: #E7E9EA !important; - height: 100%;/* - padding: 0 3px 3px;*/ + height: 100%; + padding: 0; text-align: left; - width: 100%} + width: 100% !important} .post .author { float: left; @@ -1871,7 +1870,10 @@ float: right; width: 73%; min-height: 4em; - margin: 2px} + margin: 2px; +} + +*:first-child+html .postbody-content {min-width: 73%} /*.postbody .content .quoteheader {} .postbody .content .quotebody {display: block}*/ @@ -1972,7 +1974,7 @@ font-weight: bold; } -textarea#editpost2 {font-size: .97em} +textarea#editpost2 {font-size: 1.1em} /***** Categories *****/ @@ -2660,7 +2662,7 @@ #shadowbox_title { height: auto !important; padding: 0; - overflow: display} + overflow: visible;} #shadowbox_title_inner{ height: auto !important; Modified: trunk/styles/transitions/1.9to2.0.css =================================================================== --- trunk/styles/transitions/1.9to2.0.css 2008-07-28 14:43:34 UTC (rev 13914) +++ trunk/styles/transitions/1.9to2.0.css 2008-07-28 14:58:28 UTC (rev 13915) @@ -1,8 +1,8 @@ /* $Header: /cvsroot/tikiwiki/tiki/styles/transitions/1.9to1.10.css,v 1.15.2.4 2008-03-16 01:02:39 nyloth Exp $ -The following CSS classes were added to Tiki between v1.9 and v1.10 -They should be added to themes (possibly with tweaks) to make the theme v1.10 ready +The following CSS classes were added to Tiki between v1.9 and v2.0 +They should be added to themes (possibly with tweaks) to make the theme v2.0 ready */ /* editable wiki section */ div.split { Modified: trunk/templates/comments.tpl =================================================================== --- trunk/templates/comments.tpl 2008-07-28 14:43:34 UTC (rev 13914) +++ trunk/templates/comments.tpl 2008-07-28 14:58:28 UTC (rev 13915) @@ -205,7 +205,7 @@ {$msgError}</div><br />{/if} {if $comment_preview eq 'y'} - <div class="post_preview"> + <div class="clearfix post_preview"> {if $forum_mode neq 'y'}<b>{tr}Preview{/tr}</b>{/if} <div class="post"><div class="inner"><span class="corners-top"><span></span></span><div class="postbody"> <div class="postbody-title"><div class="title">{$comments_preview_title}</div></div> @@ -217,6 +217,7 @@ </div> </div><span class="corners-bottom"><span></span></span></div></div> </div> +{* <br class="clear" />*} {/if} <form enctype="multipart/form-data" method="post" action="{$comments_father}" id='editpostform'> Modified: trunk/templates/tiki-admin-include-look.tpl =================================================================== --- trunk/templates/tiki-admin-include-look.tpl 2008-07-28 14:43:34 UTC (rev 13914) +++ trunk/templates/tiki-admin-include-look.tpl 2008-07-28 14:58:28 UTC (rev 13915) @@ -84,7 +84,7 @@ </tr> <tr> <td class="form" > {if $prefs.feature_help eq 'y'}<a href="{$prefs.helpurl}Site+Identity" target="tikihelp" class="tikihelp" title="{tr}Site Identity{/tr}">{/if} {tr}Site Identity{/tr} {if $prefs.feature_help eq 'y'}</a>{/if}</td> - <td ><input type="checkbox" name="feature_siteidentity" {if $prefs.feature_siteidentity eq 'y'}checked="checked"{/if}/> {tr}Required for all the following features{/tr}</td> + <td ><input type="checkbox" name="feature_siteidentity" {if $prefs.feature_siteidentity eq 'y'}checked="checked"{/if}/> {tr}Required for many of the general layout features{/tr}</td> </tr> </table> {if $prefs.feature_tabs neq 'y'}</div>{/if} Modified: trunk/tiki-install.php =================================================================== --- trunk/tiki-install.php 2008-07-28 14:43:34 UTC (rev 13914) +++ trunk/tiki-install.php 2008-07-28 14:58:28 UTC (rev 13915) @@ -28,14 +28,6 @@ return $default; } -function user_is_admin( $dbTiki, $name ) -{ - $result = $dbTiki->query( "SELECT COUNT(*) FROM users_users u INNER JOIN users_usergroups g ON u.userId = g.userId WHERE login = ?", array( $name ) ); - - $count = reset( $result->fetchRow() ); - return $count > 0; -} - function installer_is_accessible() { global $cookie_name, $dbTiki, $db_tiki, $host_tiki, $user_tiki, $pass_tiki, $dbs_tiki; @@ -49,8 +41,11 @@ return true; $session_type = get_pref( $dbTiki, 'session_db', 'n' ); - $cookie_name = 'tiki-user-' . get_pref( $dbTiki, 'cookie_name', 'tikiwiki' ); + $cookie_name = get_pref( $dbTiki, 'cookie_name', 'tikiwiki' ); + // Clean cookie name, the same way it's done in tiki-setup_base.php + $cookie_name = 'tiki-user-'.ereg_replace("[^a-zA-Z0-9]", "", $cookie_name); + if ($session_type == 'y') { include('db/local.php'); $ADODB_SESSION_DRIVER=$db_tiki; @@ -72,7 +67,7 @@ if( ! isset( $_SESSION[$cookie_name] ) ) return false; - if( user_is_admin( $dbTiki, $_SESSION[$cookie_name] ) ) + if( $_SESSION[$cookie_name] == 'admin' ) return true; global $db_tiki; Modified: trunk/tiki-setup.php =================================================================== --- trunk/tiki-setup.php 2008-07-28 14:43:34 UTC (rev 13914) +++ trunk/tiki-setup.php 2008-07-28 14:58:28 UTC (rev 13915) @@ -12,6 +12,12 @@ exit; } +// Enable Versioning +// Please update the specified class below at release time, as well as +// adding new release to http://tikiwiki.org/{$branch}.version file +include_once ('lib/setup/twversion.class.php'); +$TWV = new TWVersion(); + /* Automatically set params used for absolute URLs - BEGIN */ $tiki_setup_dir = realpath(dirname(__FILE__)); @@ -161,13 +167,7 @@ $smarty->assign('show_stay_in_ssl_mode', $show_stay_in_ssl_mode); $smarty->assign('stay_in_ssl_mode', $stay_in_ssl_mode); -// Enable Versioning -// Please update the specified class below at release time, as well as -// adding new release to http://tikiwiki.org/{$branch}.version file -include_once ('lib/setup/twversion.class.php'); -$TWV = new TWVersion(); $smarty->assign('tiki_version', $TWV->version); $smarty->assign('tiki_branch', $TWV->branch); $smarty->assign('tiki_star', $TWV->star); $smarty->assign('tiki_uses_cvs', $TWV->cvs); - This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Jy...@us...> - 2008-07-28 17:52:23
|
Revision: 13920 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=13920&view=rev Author: Jyhem Date: 2008-07-28 17:52:33 +0000 (Mon, 28 Jul 2008) Log Message: ----------- [ENH] Also give feedback in case of failure Modified Paths: -------------- trunk/templates/tiki-newsletters.tpl trunk/tiki-newsletters.php Modified: trunk/templates/tiki-newsletters.tpl =================================================================== --- trunk/templates/tiki-newsletters.tpl 2008-07-28 17:51:09 UTC (rev 13919) +++ trunk/templates/tiki-newsletters.tpl 2008-07-28 17:52:33 UTC (rev 13920) @@ -6,6 +6,8 @@ {if $unsub eq 'y'} <div class="highlight"> {tr}Your email address was removed from the list of subscriptors.{/tr}</div> +{elseif $unsub eq 'f'} +<div class="simplebox error">{tr}Removal of your email address failed.{/tr}</div> {/if} {if $confirm eq 'y'} @@ -23,6 +25,9 @@ </tr> </table> <br /> +{elseif $confirm eq 'f'} +<div class="simplebox error">{tr}Subscription failed.{/tr}</div> +<br /> {/if} {if $subscribe eq 'y'} Modified: trunk/tiki-newsletters.php =================================================================== --- trunk/tiki-newsletters.php 2008-07-28 17:51:09 UTC (rev 13919) +++ trunk/tiki-newsletters.php 2008-07-28 17:52:33 UTC (rev 13920) @@ -27,6 +27,8 @@ $smarty->assign('confirm', 'y'); $smarty->assign('nl_info', $conf); + } else { + $smarty->assign('confirm', 'f'); // Signal failure } } @@ -38,6 +40,8 @@ $smarty->assign('unsub', 'y'); $smarty->assign('nl_info', $conf); + } else { + $smarty->assign('unsub', 'f'); // Signal failure } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Jy...@us...> - 2008-07-28 18:04:07
|
Revision: 13922 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=13922&view=rev Author: Jyhem Date: 2008-07-28 18:04:06 +0000 (Mon, 28 Jul 2008) Log Message: ----------- [FIX] Capitalization typo Modified Paths: -------------- trunk/lang/ar/language.php trunk/lang/ca/language.php trunk/lang/cn/language.php trunk/lang/cs/language.php trunk/lang/da/language.php trunk/lang/de/language.php trunk/lang/el/language.php trunk/lang/en/language.php trunk/lang/en-uk/language.php trunk/lang/es/language.php trunk/lang/fa/language.php trunk/lang/fi/language.php trunk/lang/fj/language.php trunk/lang/fr/language.php trunk/lang/gl/language.php trunk/lang/he/language.php trunk/lang/hr/language.php trunk/lang/hu/language.php trunk/lang/it/language.php trunk/lang/ja/language.php trunk/lang/ko/language.php trunk/lang/nl/language.php trunk/lang/no/language.php trunk/lang/pl/language.php trunk/lang/pt/language.php trunk/lang/pt-br/language.php trunk/lang/ru/language.php trunk/lang/sb/language.php trunk/lang/sk/language.php trunk/lang/sr/language.php trunk/lang/sr-latn/language.php trunk/lang/sv/language.php trunk/lang/tv/language.php trunk/lang/tw/language.php trunk/lang/uk/language.php trunk/templates/tiki-newsletters.tpl Modified: trunk/lang/ar/language.php =================================================================== --- trunk/lang/ar/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/ar/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -5441,6 +5441,7 @@ // "Subscription confirmed!" => "Subscription confirmed!", // "Subscribe to Newsletter" => "Subscribe to Newsletter", // "Subscribe to This Newsletter" => "Subscribe to This Newsletter", +// "Subscribe to this Newsletter" => "Subscribe to This Newsletter", // "Available Newsletters" => "Available Newsletters", // "Select news group" => "Select news group", // "Back to servers" => "Back to servers", Modified: trunk/lang/ca/language.php =================================================================== --- trunk/lang/ca/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/ca/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -7807,6 +7807,7 @@ "Subscription confirmed!" => "Subscripció confirmada!", "Subscribe to Newsletter" => "Subscriure a butlletí", "Subscribe to This Newsletter" => "Subscriu", +"Subscribe to this Newsletter" => "Subscriu", "Available Newsletters" => "Butlletins disponibles", "Select news group" => "Selecciona un grup de notícies", "Back to servers" => "tornar a servidors", Modified: trunk/lang/cn/language.php =================================================================== --- trunk/lang/cn/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/cn/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -8061,6 +8061,7 @@ "Subscription confirmed!" => "订阅已确认!", "Subscribe to Newsletter" => "订阅电子期刊", "Subscribe to This Newsletter" => "订阅", +"Subscribe to this Newsletter" => "订阅", "Select news group" => "选择新闻讨论组", "Back to servers" => "返回服务器列表", "Msgs" => "消息", Modified: trunk/lang/cs/language.php =================================================================== --- trunk/lang/cs/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/cs/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -7213,6 +7213,7 @@ "Subscription confirmed!" => "Přihlášení potvrzeno!", "Subscribe to Newsletter" => "Přihlásit k odběru newsletteru", "Subscribe to This Newsletter" => "Přihlásit", +"Subscribe to this Newsletter" => "Přihlásit", "Select news group" => "Vybrat news skupinu", "Back to servers" => "Zpět na servery", "Msgs" => "Zpráv", Modified: trunk/lang/da/language.php =================================================================== --- trunk/lang/da/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/da/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -7448,6 +7448,7 @@ "Subscription confirmed!" => "Abonnement bekræftiget!", "Subscribe to Newsletter" => "Abonner på nyhedsbrev", "Subscribe to This Newsletter" => "Abonner", +"Subscribe to this Newsletter" => "Abonner", "Select news group" => "Vælg nyhedsgruppe", "Back to servers" => "Tilbage til servere", "Msgs" => "Beskeder", Modified: trunk/lang/de/language.php =================================================================== --- trunk/lang/de/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/de/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -7084,6 +7084,7 @@ "Subscription confirmed!" => "Abonnement bestätigt!", "Subscribe to Newsletter" => "Newsletter abonnieren", "Subscribe to This Newsletter" => "Abonnieren", +"Subscribe to this Newsletter" => "Abonnieren", "Available Newsletters" => "Verfügbare Newsletter", "Select news group" => "Newsgroup auswählen", "Back to servers" => "Zurück zur Serverübersicht", Modified: trunk/lang/el/language.php =================================================================== --- trunk/lang/el/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/el/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -5256,6 +5256,7 @@ // "Subscription confirmed!" => "Subscription confirmed!", // "Subscribe to Newsletter" => "Subscribe to Newsletter", // "Subscribe to This Newsletter" => "Subscribe to This Newsletter", +// "Subscribe to this Newsletter" => "Subscribe to This Newsletter", // "Available Newsletters" => "Available Newsletters", // "Select news group" => "Select news group", // "Back to servers" => "Back to servers", Modified: trunk/lang/en/language.php =================================================================== --- trunk/lang/en/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/en/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -5645,6 +5645,7 @@ // "Subscription confirmed!" => "Subscription confirmed!", // "Subscribe to Newsletter" => "Subscribe to Newsletter", // "Subscribe to This Newsletter" => "Subscribe to This Newsletter", +// "Subscribe to this Newsletter" => "Subscribe to This Newsletter", // "Available Newsletters" => "Available Newsletters", // "Select news group" => "Select news group", // "Back to servers" => "Back to servers", Modified: trunk/lang/en-uk/language.php =================================================================== --- trunk/lang/en-uk/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/en-uk/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -5644,6 +5644,7 @@ // "Subscription confirmed!" => "Subscription confirmed!", // "Subscribe to Newsletter" => "Subscribe to Newsletter", // "Subscribe to This Newsletter" => "Subscribe to This Newsletter", +// "Subscribe to this Newsletter" => "Subscribe to This Newsletter", // "Available Newsletters" => "Available Newsletters", // "Select news group" => "Select news group", // "Back to servers" => "Back to servers", Modified: trunk/lang/es/language.php =================================================================== --- trunk/lang/es/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/es/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -7231,6 +7231,7 @@ "Subscription confirmed!" => "¡Suscripción confirmada!", "Subscribe to Newsletter" => "Suscribirse al boletín", "Subscribe to This Newsletter" => "Suscribir", +"Subscribe to this Newsletter" => "Suscribir", "Available Newsletters" => "Boletines Disponibles", "Select news group" => "Seleccione grupo de noticias", "Back to servers" => "Volver a servidores", Modified: trunk/lang/fa/language.php =================================================================== --- trunk/lang/fa/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/fa/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -7291,6 +7291,7 @@ "Subscription confirmed!" => "عضصويت تاييد شد", "Subscribe to Newsletter" => "عضويت در خبرنامه", "Subscribe to This Newsletter" => "عضويت", +"Subscribe to this Newsletter" => "عضويت", "Available Newsletters" => "خبرنامههاي موجود", "Select news group" => "انتخاب گروه خبري", "Back to servers" => "بازگشت به سرورها", Modified: trunk/lang/fi/language.php =================================================================== --- trunk/lang/fi/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/fi/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -7454,6 +7454,7 @@ "Subscription confirmed!" => "Tilaus varmistettu!", "Subscribe to Newsletter" => "Tilaa uutislehti", "Subscribe to This Newsletter" => "Tilaa", +"Subscribe to this Newsletter" => "Tilaa", "Available Newsletters" => "Saatavilla olevat Uutislehdet", "Select news group" => "Valitse uutisryhmä", "Back to servers" => "Takaisin palvelimelle", Modified: trunk/lang/fj/language.php =================================================================== --- trunk/lang/fj/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/fj/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -5465,6 +5465,7 @@ // "Subscription confirmed!" => "Subscription confirmed!", // "Subscribe to Newsletter" => "Subscribe to Newsletter", // "Subscribe to This Newsletter" => "Subscribe to This Newsletter", +// "Subscribe to this Newsletter" => "Subscribe to This Newsletter", // "Available Newsletters" => "Available Newsletters", // "Select news group" => "Select news group", // "Back to servers" => "Back to servers", Modified: trunk/lang/fr/language.php =================================================================== --- trunk/lang/fr/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/fr/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -5965,6 +5965,7 @@ "Subscription confirmed!" => "Votre inscription est confirmée!", "Subscribe to Newsletter" => "S'abonner à une lettre d'informations", "Subscribe to This Newsletter" => "S'abonner à cette lettre d'informations", +"Subscribe to this Newsletter" => "S'abonner à cette lettre d'informations", "Available Newsletters" => "Lettres d'informations disponibles", "Select news group" => "Choisir un groupe de news", "Back to servers" => "Retour au serveur", Modified: trunk/lang/gl/language.php =================================================================== --- trunk/lang/gl/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/gl/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -7164,6 +7164,7 @@ "Subscription confirmed!" => "Subscrición confirmada!", "Subscribe to Newsletter" => "Subscribirse ao boletín", "Subscribe to This Newsletter" => "Subscribirse", +"Subscribe to this Newsletter" => "Subscribirse", "Available Newsletters" => "Boletíns dispoñibles", "Select news group" => "Seleccione un grupo de novas", "Back to servers" => "Volver a servidores", Modified: trunk/lang/he/language.php =================================================================== --- trunk/lang/he/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/he/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -7321,6 +7321,7 @@ "Subscription confirmed!" => "ההרשמה אושרה!", "Subscribe to Newsletter" => "הרשמה לחדשון", "Subscribe to This Newsletter" => "הרשמה", +"Subscribe to this Newsletter" => "הרשמה", "First" => "ראשון", "Assign permissions to " => "הקצאת הרשאות עבור ", "Back" => "אחורה", Modified: trunk/lang/hu/language.php =================================================================== --- trunk/lang/hu/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/hu/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -7140,6 +7140,7 @@ "MyFiles" => "Fájljaim", "Subscribe" => "Előfizet", "Subscribe to This Newsletter" => "Előfizet", +"Subscribe to this Newsletter" => "Előfizet", "Select news group" => "Hírcsoport választása", "Back to servers" => "Vissza a szerverekhez", "Msgs" => "Üzenetek", Modified: trunk/lang/it/language.php =================================================================== --- trunk/lang/it/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/it/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -7527,6 +7527,7 @@ "Subscription confirmed!" => "Abbonamento confermato!", "Subscribe to Newsletter" => "Abbonati alla newsletter", "Subscribe to This Newsletter" => "Invia richiesta", +"Subscribe to this Newsletter" => "Invia richiesta", "Select news group" => "Scegli newsgroup", "Back to servers" => "Indietro ai server", "Back to groups" => "Indietro ai gruppi", Modified: trunk/lang/ja/language.php =================================================================== --- trunk/lang/ja/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/ja/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -7422,6 +7422,7 @@ "Your email address was removed from the list of subscriptors." => "Your\nemail address was removed from the list of subscriptors.", "Subscribe to Newsletter" => "Subscribe to newsletter", "Subscribe to This Newsletter" => "Subscribe", +"Subscribe to this Newsletter" => "Subscribe", "Newsgroup" => "ニュースグループ", "Configure news servers" => "ネットニュースの設定", "Select a news server to browse" => "ニュースサーバを選択する", Modified: trunk/lang/ko/language.php =================================================================== --- trunk/lang/ko/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/ko/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -5005,6 +5005,7 @@ // "Subscription confirmed!" => "Subscription confirmed!", // "Subscribe to Newsletter" => "Subscribe to Newsletter", // "Subscribe to This Newsletter" => "Subscribe to This Newsletter", +// "Subscribe to this Newsletter" => "Subscribe to This Newsletter", // "Available Newsletters" => "Available Newsletters", // "Select news group" => "Select news group", // "Back to servers" => "Back to servers", Modified: trunk/lang/nl/language.php =================================================================== --- trunk/lang/nl/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/nl/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -7107,6 +7107,7 @@ "Subscription confirmed!" => "Inschrijving bevestigd!", "Subscribe to Newsletter" => "Zich op nieuwsbrief abonneren", "Subscribe to This Newsletter" => "Abonneren", +"Subscribe to this Newsletter" => "Abonneren", "Available Newsletters" => "Beschikbare nieuwsbrieven", "Select news group" => "Selecteren nieuwsgroep", "Back to servers" => "Terug naar de servers", Modified: trunk/lang/no/language.php =================================================================== --- trunk/lang/no/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/no/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -5643,6 +5643,7 @@ // "Subscription confirmed!" => "Subscription confirmed!", // "Subscribe to Newsletter" => "Subscribe to Newsletter", // "Subscribe to This Newsletter" => "Subscribe to This Newsletter", +// "Subscribe to this Newsletter" => "Subscribe to This Newsletter", // "Available Newsletters" => "Available Newsletters", // "Select news group" => "Select news group", // "Back to servers" => "Back to servers", Modified: trunk/lang/pl/language.php =================================================================== --- trunk/lang/pl/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/pl/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -7544,6 +7544,7 @@ "Subscription confirmed!" => "Subskrypcja potwierdzona!", "Subscribe to Newsletter" => "Subskrybuj biuletyn", "Subscribe to This Newsletter" => "Subskrybuj", +"Subscribe to this Newsletter" => "Subskrybuj", "Back to list of articles" => "Powróć do wykazu artykułów", "Notes" => "Notatki", "Write a note" => "Napisz natatkę", Modified: trunk/lang/pt/language.php =================================================================== --- trunk/lang/pt/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/pt/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -7476,6 +7476,7 @@ "Subscription confirmed!" => "Assinatura confirmada!", "Subscribe to Newsletter" => "Assine o comunicado", "Subscribe to This Newsletter" => "Inscrever-se", +"Subscribe to this Newsletter" => "Inscrever-se", "Select news group" => "seleccionar grupo de news", "Back to servers" => "Voltar aos servidores", "Msgs" => "Mens", Modified: trunk/lang/pt-br/language.php =================================================================== --- trunk/lang/pt-br/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/pt-br/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -2987,6 +2987,7 @@ // "Not sent" => "Not sent", // "Subscribe to Newsletter" => "Subscribe to Newsletter", // "Subscribe to This Newsletter" => "Subscribe to This Newsletter", +// "Subscribe to this Newsletter" => "Subscribe to This Newsletter", // "Add a news server" => "Add a news server", // "Edit news server" => "Edit news server", "View Permissions" => "Ver permissões", Modified: trunk/lang/ru/language.php =================================================================== --- trunk/lang/ru/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/ru/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -7436,6 +7436,7 @@ "Subscription confirmed!" => "Подписка подтверждена!", "Subscribe to Newsletter" => "Подписаться на рассылку", "Subscribe to This Newsletter" => "Подписаться", +"Subscribe to this Newsletter" => "Подписаться", "Select news group" => "Выберите группу новостей", "Back to servers" => "Вернуться к серверам", "Msgs" => "Сообщ", Modified: trunk/lang/sb/language.php =================================================================== --- trunk/lang/sb/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/sb/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -7474,6 +7474,7 @@ "Your email address was removed from the list of subscriptors." => "Email adres blong iu hemi bin tekaotem from disfala list long olketa subscriptor.", "Subscribe to Newsletter" => "Subscribe go long niusleta", "Subscribe to This Newsletter" => "Subscribe", +"Subscribe to this Newsletter" => "Subscribe", "Select news group" => " nius grup", "Back to servers" => "Go baek long olketa server", "Back to groups" => "Go baek long olketa grup", Modified: trunk/lang/sk/language.php =================================================================== --- trunk/lang/sk/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/sk/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -7333,6 +7333,7 @@ "Subscription confirmed!" => "Přihlásenie k odberu potvrdené!", "Subscribe to Newsletter" => "Prihlásiť sa k odberu newsletteru", "Subscribe to This Newsletter" => "Přihlásiť sa k odberu", +"Subscribe to this Newsletter" => "Přihlásiť sa k odberu", "Select news group" => "Vybrať news group", "Back to servers" => "Späť na servery", "Msgs" => "Správ", Modified: trunk/lang/sr/language.php =================================================================== --- trunk/lang/sr/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/sr/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -5643,6 +5643,7 @@ // "Subscription confirmed!" => "Subscription confirmed!", // "Subscribe to Newsletter" => "Subscribe to Newsletter", // "Subscribe to This Newsletter" => "Subscribe to This Newsletter", +// "Subscribe to this Newsletter" => "Subscribe to This Newsletter", // "Available Newsletters" => "Available Newsletters", // "Select news group" => "Select news group", // "Back to servers" => "Back to servers", Modified: trunk/lang/sr-latn/language.php =================================================================== --- trunk/lang/sr-latn/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/sr-latn/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -7303,6 +7303,7 @@ "Subscription confirmed!" => "Upis potvrđen!", "Subscribe to Newsletter" => "Upišite se na novine", "Subscribe to This Newsletter" => "Upis", +"Subscribe to this Newsletter" => "Upis", "Select news group" => "Odaberite grupo novosti", "Back to servers" => "Nazad na servere", "Msgs" => "Poruka", Modified: trunk/lang/sv/language.php =================================================================== --- trunk/lang/sv/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/sv/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -7455,6 +7455,7 @@ "Subscription confirmed!" => "Prenumerationen bekräftad!", "Subscribe to Newsletter" => "Prenumerera på ett nyhetsbrev", "Subscribe to This Newsletter" => "Prenumerera", +"Subscribe to this Newsletter" => "Prenumerera", "Select news group" => "Välj en nyhetsgrupp", "Back to servers" => "Åter till servrar", "Msgs" => "Medelanden", Modified: trunk/lang/tv/language.php =================================================================== --- trunk/lang/tv/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/tv/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -5596,6 +5596,7 @@ // "Subscription confirmed!" => "Subscription confirmed!", // "Subscribe to Newsletter" => "Subscribe to Newsletter", // "Subscribe to This Newsletter" => "Subscribe to This Newsletter", +// "Subscribe to this Newsletter" => "Subscribe to This Newsletter", // "Available Newsletters" => "Available Newsletters", // "Select news group" => "Select news group", // "Back to servers" => "Back to servers", Modified: trunk/lang/tw/language.php =================================================================== --- trunk/lang/tw/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/tw/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -7475,6 +7475,7 @@ "Subscription confirmed!" => "訂閱已確認!", "Subscribe to Newsletter" => "訂閱電子報", "Subscribe to This Newsletter" => "訂閱", +"Subscribe to this Newsletter" => "訂閱", "Select news group" => "選擇 news 討論群", "Back to servers" => "返回伺服器列表", "Msgs" => "訊息", Modified: trunk/lang/uk/language.php =================================================================== --- trunk/lang/uk/language.php 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/lang/uk/language.php 2008-07-28 18:04:06 UTC (rev 13922) @@ -7328,6 +7328,7 @@ "Subscription confirmed!" => "Підписку підтверджено!", "Subscribe to Newsletter" => "Підписатися на листок новин", "Subscribe to This Newsletter" => "Підписатися", +"Subscribe to this Newsletter" => "Підписатися", "Select news group" => "Вибрати групу новин", "Back to servers" => "Повернутися до серверів", "Msgs" => "Листи", Modified: trunk/templates/tiki-newsletters.tpl =================================================================== --- trunk/templates/tiki-newsletters.tpl 2008-07-28 17:56:41 UTC (rev 13921) +++ trunk/templates/tiki-newsletters.tpl 2008-07-28 18:04:06 UTC (rev 13922) @@ -56,7 +56,7 @@ {/if} <tr> <td class="even"> </td> - <td class="even"><input type="submit" name="subscribe" value="{tr}Subscribe to This Newsletter{/tr}" /></td> + <td class="even"><input type="submit" name="subscribe" value="{tr}Subscribe to this Newsletter{/tr}" /></td> </tr> {/if} </table> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sy...@us...> - 2008-07-28 20:13:41
|
Revision: 13924 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=13924&view=rev Author: sylvieg Date: 2008-07-28 20:13:50 +0000 (Mon, 28 Jul 2008) Log Message: ----------- [MOD]tracker: new option to email field that allows to send a notification to the email id item status changes Modified Paths: -------------- trunk/lib/trackers/trackerlib.php trunk/templates/mail/tracker_changed_notification.tpl Modified: trunk/lib/trackers/trackerlib.php =================================================================== --- trunk/lib/trackers/trackerlib.php 2008-07-28 19:24:48 UTC (rev 13923) +++ trunk/lib/trackers/trackerlib.php 2008-07-28 20:13:50 UTC (rev 13924) @@ -897,7 +897,7 @@ include_once('lib/categories/categlib.php'); include_once('lib/notifications/notificationlib.php'); - if ($itemId && $itemId!=0) { + if (!empty($itemId)) { $oldStatus = $this->getOne("select `status` from `tiki_tracker_items` where `itemId`=?", array($itemId)); if ($status) { $query = "update `tiki_tracker_items` set `status`=?,`lastModif`=? where `itemId`=?"; @@ -1236,7 +1236,7 @@ // Don't send a notification if this operation is part of a bulk import if(!$bulk_import) { $options = $this->get_tracker_options( $trackerId ); - $watchers = $this->get_notification_emails($trackerId, $itemId, $options, $new_itemId); + $watchers = $this->get_notification_emails($trackerId, $itemId, $options, $new_itemId, $status, isset($oldStatus)?$oldStatus: ''); if (count($watchers) > 0) { if( array_key_exists( "simpleEmail", $options ) ) { @@ -1267,6 +1267,7 @@ if (count($parts) > 1) unset ($parts[count($parts) - 1]); $smarty->assign('mail_machine_raw', $this->httpPrefix(). implode('/', $parts)); + $smarty->assign_by_ref('status', $status); foreach ($watchers as $watcher) { if ($itemId) { $mail_action = "\r\n".tra('Item Modification', $watcher['language'])."\r\n\r\n"; @@ -1278,6 +1279,8 @@ } $smarty->assign('mail_action', $mail_action); $smarty->assign('mail_data', $the_data); + if (isset($watcher['action'])) + $smarty->assign('mail_action', $watcher['action']); $mail_data = $smarty->fetchLang($watcher['language'], 'mail/tracker_changed_notification.tpl'); @@ -2270,7 +2273,7 @@ $type['m'] = array( 'label'=>tra('email'), 'opt'=>true, - 'help'=>tra('Email address options: 0|1|2 where 0 puts the address as plain text, 1 does a hex encoded mailto link (more difficult for web spiders to pick it up and spam) and 2 does the normal href mailto.') ); + 'help'=>tra('Email address options: 0|1|2,o,p,c where the first param=0 puts the address as plain text, 1 does a hex encoded mailto link (more difficult for web spiders to pick it up and spam) and 2 does the normal href mailto. The second param=o watches status becoming open. The third param=p watches status becomin pending. The fourth param=c watches status becoming closed') ); $type['M'] = array( 'label'=>tra('multimedia'), 'opt'=>true, @@ -2470,9 +2473,9 @@ } return $field; } - function get_notification_emails($trackerId, $itemId, $options, $newItemId=0) { + function get_notification_emails($trackerId, $itemId, $options, $newItemId=0, $status='', $oldStatus='') { $watchers_global = $this->get_event_watches('tracker_modified',$trackerId); - $watchers_local = $this->get_local_notifications($itemId, $newItemId); + $watchers_local = $this->get_local_notifications($itemId, $newItemId, $status, $oldStatus); $watchers_item = $itemId? $this->get_event_watches('tracker_item_modified',$itemId, array('trackerId'=>$trackerId)): array(); $watchers_outbound = array(); if( array_key_exists( "outboundEmail", $options ) && $options["outboundEmail"] ) { @@ -2537,20 +2540,34 @@ return $ret; } /* return all the emails that are locally watching an item */ - function get_local_notifications($itemId, $newItemId=0) { - global $tikilib, $userlib, $user_preferences; + function get_local_notifications($itemId, $newItemId=0, $status='', $oldStatus='') { + global $tikilib, $userlib, $user_preferences, $prefs; $emails = array(); + // user field watching item $res = $this->get_item_values_by_type($itemId?$itemId:$newItemId, 'u'); - if (!is_array($res)) - return $emails; - foreach ($res as $f) { - if (isset($f['options_array'][0]) && ($f['options_array'][0] == 1 || $f['options_array'][0] == 2) && empty($itemId)) - continue;//do not send email on a new item for a creator/modif field - if (isset($f['options_array'][1]) && $f['options_array'][1] == 1) { - $tikilib->get_user_preferences($f['value'], array('email', 'user', 'language', 'mailCharset')); - $emails[] = array('email'=>$userlib->get_user_email($f['value']), 'user'=>$f['value'], 'language'=>$user_preferences[$f['value']]['language'], 'mailCharset'=>$user_preferences[$f['value']]['mailCharset']); + if (is_array($res)) { + foreach ($res as $f) { + if (isset($f['options_array'][0]) && ($f['options_array'][0] == 1 || $f['options_array'][0] == 2) && empty($itemId)) + continue;//do not send email on a new item for a creator/modif field + if (isset($f['options_array'][1]) && $f['options_array'][1] == 1) { + $tikilib->get_user_preferences($f['value'], array('email', 'user', 'language', 'mailCharset')); + $emails[] = array('email'=>$userlib->get_user_email($f['value']), 'user'=>$f['value'], 'language'=>$user_preferences[$f['value']]['language'], 'mailCharset'=>$user_preferences[$f['value']]['mailCharset']); + } } } + // email field watching status change + if ($status != $oldStatus) { + $res = $this->get_item_values_by_type($itemId?$itemId:$newItemId, 'm'); + if (is_array($res)) { + foreach ($res as $f) { + if ((isset($f['options_array'][1]) && $f['options_array'][1] == 'o' && $status == 'o') + || (isset($f['options_array'][2]) && $f['options_array'][2] == 'p' && $status == 'p') + || (isset($f['options_array'][3]) && $f['options_array'][3] == 'c' && $status == 'c')) { + $emails[] = array('email'=> $f['value'], 'user'=>'', 'language'=>$prefs['language'], 'mailCharset'=>$prefs['users_prefs_mailCharset'], 'action'=>'status'); + } + } + } + } return $emails; } function get_join_values($itemId, $fieldIds, $finalTrackerId='', $finalFields='', $separator=' ') { Modified: trunk/templates/mail/tracker_changed_notification.tpl =================================================================== --- trunk/templates/mail/tracker_changed_notification.tpl 2008-07-28 19:24:48 UTC (rev 13923) +++ trunk/templates/mail/tracker_changed_notification.tpl 2008-07-28 20:13:50 UTC (rev 13924) @@ -1,5 +1,7 @@ {if $mail_action eq 'deleted'} {tr}ItemID {$mail_itemId} was deleted in the tracker {$mail_trackerName}{/tr} +{elseif $mail_action eq 'status'} +{tr}New status ItemID {$mail_itemId} for the tracker {$mail_trackerName}:{/tr} {if $status eq 'o'}{tr}open{/tr}{elseif $status eq 'p'}{tr}pending{/tr}{elseif $status eq 'c'}{tr}closed{/tr}{/if} {else} {$mail_action} {tr}View the tracker item at:{/tr} {$mail_machine_raw}/tiki-view_tracker_item.php?trackerId={$mail_trackerId}&offset=0&sort_mode=lastModif_desc&itemId={$mail_itemId} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lph...@us...> - 2008-07-29 19:11:05
|
Revision: 13947 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=13947&view=rev Author: lphuberdeau Date: 2008-07-29 19:11:14 +0000 (Tue, 29 Jul 2008) Log Message: ----------- [MOD] Adding checks for plugin extract EXTR_SKIP and fix for > 2.0 Modified Paths: -------------- trunk/doc/devtools/securitycheck.php trunk/lib/wiki-plugins/wikiplugin_copyright.php trunk/lib/wiki-plugins/wikiplugin_topfriends.php Modified: trunk/doc/devtools/securitycheck.php =================================================================== --- trunk/doc/devtools/securitycheck.php 2008-07-29 18:36:15 UTC (rev 13946) +++ trunk/doc/devtools/securitycheck.php 2008-07-29 19:11:14 UTC (rev 13947) @@ -61,7 +61,7 @@ $tl = '\\$tikilib->get_preference'; return "/(\\\${$featureName}\s*(!=|==)=?\s*$q(y|n)[\"'])|($tl\s*\(\s*$q{$featureName}$q\s*(,\s*{$q}n?$q)?\s*\)\s*(==|!=)=?\s*$q(y|n)$q)/"; } - elseif( $major == 1 && $minor == 10 ) + elseif( ($major == 1 && $minor == 10) || $major >= 2 ) { $featureNameIndex = 1; return "/\\\$prefs\s*\[$q$featureName$q\]\s*(!=|==)=?\s*$q(y|n)$q/"; @@ -140,6 +140,8 @@ $type = 'blocker'; elseif( $name == 'language.php' ) $type = 'lang'; + elseif( strpos( $path, './lib/wiki-plugins' ) === 0 ) + $type = 'wikiplugin'; elseif( strpos( $path, './lib/' ) === 0 ) { $parts = explode( '/', $path ); @@ -182,6 +184,7 @@ 'includeonce' => false, 'noweb' => false, 'tikisetup' => false, + 'unsafeextract' => false, ); } // }}} @@ -243,6 +246,18 @@ $file['tikisetup'] = count( $parts[0] ) > 0; } // }}} +function perform_extract_skip_check( &$file ) // {{{ +{ + $pattern = "/extract\s*\([^\)]+\)/"; + + preg_match_all( $pattern, get_content($file['path']), $parts ); + + foreach( $parts[0] as $extract ) + if( strpos( $extract, 'EXTR_SKIP' ) === false ) + $file['unsafeextract'] = true; + +} // }}} + $files = array(); scanfiles( '.', $files ); @@ -253,6 +268,13 @@ switch( $file['type'] ) { + case 'wikiplugin': + perform_extract_skip_check( $file ); + + if( $file['unsafeextract'] ) + $unsafe[] = $file; + + break; case 'public': case 'include': case 'script': @@ -265,7 +287,7 @@ perform_noweb_check( $file ); perform_tikisetup_check( $file ); - if( ! $file['noweb'] && ! $file['includeonly'] && ! count( $file['features'] ) && ! count( $file['permissions'] ) ) + if( ! $file['noweb'] && ! $file['includeonly'] && ! count( $file['features'] ) && ! count( $file['permissions'] ) ) $unsafe[] = $file; break; @@ -303,19 +325,21 @@ <th>Include only check</th> <th>Not web accessible</th> <th>Includes tiki-setup</th> + <th>Unsafe extract</th> <th>Permissions checked</th> <th>Features checked</th> </tr> </thead> <tbody> <?php foreach( $files as $file ) if( in_array( $file['type'], array( - 'script', 'module', 'include', 'public', 'lib', '3rdparty' + 'script', 'module', 'include', 'public', 'lib', '3rdparty', 'wikiplugin' ) ) ): ?> <tr> <td><a href="<?php echo htmlentities( substr( $file['path'], 2 ) ) ?>"><?php echo htmlentities( $file['path'] ) ?></a></td> <td><?php if( $file['includeonly'] ) echo 'X' ?></td> <td><?php if( $file['noweb'] ) echo 'X' ?></td> <td><?php if( $file['tikisetup'] ) echo 'X' ?></td> + <td><?php if( $file['unsafeextract'] ) echo 'X' ?></td> <td> <?php foreach( $file['permissions'] as $perm ): ?> <div><?php echo $perm ?></div> Modified: trunk/lib/wiki-plugins/wikiplugin_copyright.php =================================================================== --- trunk/lib/wiki-plugins/wikiplugin_copyright.php 2008-07-29 18:36:15 UTC (rev 13946) +++ trunk/lib/wiki-plugins/wikiplugin_copyright.php 2008-07-29 19:11:14 UTC (rev 13947) @@ -25,7 +25,6 @@ return ''; } - //extract($params); $result = ''; $copyrights = $copyrightslib->list_copyrights($_REQUEST['page']); Modified: trunk/lib/wiki-plugins/wikiplugin_topfriends.php =================================================================== --- trunk/lib/wiki-plugins/wikiplugin_topfriends.php 2008-07-29 18:36:15 UTC (rev 13946) +++ trunk/lib/wiki-plugins/wikiplugin_topfriends.php 2008-07-29 19:11:14 UTC (rev 13947) @@ -10,7 +10,7 @@ if($prefs['feature_friends'] != 'y') { return ' '; } - extract ($params); + extract ($params, EXTR_SKIP); if(!(isset($limit) && $limit <> '')) { $limit = 5; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ker...@us...> - 2008-07-29 23:44:47
|
Revision: 13954 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=13954&view=rev Author: kerrnel22 Date: 2008-07-29 23:44:56 +0000 (Tue, 29 Jul 2008) Log Message: ----------- [NEW] Since SLVN has been updated for 2.0, I have migrated the 1.9x SLVN into a new since_last_visit2 module. Similar functionality to SLVN except it breaks out tracker changes by tracker and rolls it all up. Added Paths: ----------- trunk/modules/mod-since_last_visit2.php trunk/templates/modules/mod-since_last_visit2.tpl Added: trunk/modules/mod-since_last_visit2.php =================================================================== --- trunk/modules/mod-since_last_visit2.php (rev 0) +++ trunk/modules/mod-since_last_visit2.php 2008-07-29 23:44:56 UTC (rev 13954) @@ -0,0 +1,492 @@ +<?php + +// MOD-SINCE_LAST_VISIT2 +// Based off of mod-since_last_visit_new. +// This mod will cull the Tiki database for new or updated content since last +// login. More or less the same as SLVN, but with different views. Use +// whichever meets your needs. + +//this script may only be included - so its better to die if called directly. +if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) { + header("location: index.php"); + exit; +} + +require_once('lib/smarty_tiki/modifier.userlink.php'); + +if (!function_exists('since_last_visit2')) { +function since_last_visit2($user, $params = null) { + if (!$user) return false; + + global $tikilib; + global $userlib; + global $prefs; + + $ret = array(); + $ret["label"] = tra("Since your last visit..."); + $ret["version"] = "2.0"; + if ( $params == null ) $params = array(); + + if (strpos($_SERVER["SCRIPT_NAME"],"tiki-calendar.php") && isset($_REQUEST["todate"]) && $_REQUEST["todate"]) { + $last = $_REQUEST["todate"]; + $_SESSION["slv_last_login"] = $last; + $ret["label"] = tra("Changes")." ".tra("since"); + } else if (isset($_SESSION["slv_last_login"])) { + $last = $_SESSION["slv_last_login"]; + $ret["label"] = tra("Changes since"); + } else { + $last = $tikilib->getOne("select `lastLogin` from `users_users` where `login`=?",array($user)); + if (!$last) $last = time(); + } + $ret["lastLogin"] = $last; + + $ret["items"]["comments"]["label"] = tra("new comments"); + $ret["items"]["comments"]["cname"] = "slv_comments_menu"; + $query = "select `object`,`objectType`,`title`,`commentDate`,`userName`,`threadId`, `parentId` from `tiki_comments` where `commentDate`>? and `objectType` != 'forum' order by `commentDate` desc"; + $result = $tikilib->query($query, array((int)$last)); + + $count = 0; + while ($res = $result->fetchRow()) + { + switch($res["objectType"]) { + case "article": + $perm = 'tiki_p_read_article'; + $ret["items"]["comments"]["list"][$count]["href"] + = "tiki-read_article.php?articleId=" . $res["object"]; + break; + case "post": + $perm = 'tiki_p_read_blog'; + $ret["items"]["comments"]["list"][$count]["href"] + = "tiki-view_blog_post.php?postId=" . $res["object"]; + break; + case "blog": + $perm = 'tiki_p_read_blog'; + $ret["items"]["comments"]["list"][$count]["href"] + = "tiki-view_blog.php?blogId=" . $res["object"]; + break; + case "faq": + $perm = 'tiki_p_view_faqs'; + $ret["items"]["comments"]["list"][$count]["href"] + = "tiki-view_faq.php?faqId=" . $res["object"]; + break; + case "file gallery": + $perm = 'tiki_p_view_file_gallery'; + $ret["items"]["comments"]["list"][$count]["href"] + = "tiki-list_file_gallery.php?galleryId=" . $res["object"]; + break; + case "image gallery": + $perm = 'tiki_p_view_image_gallery'; + $ret["items"]["comments"]["list"][$count]["href"] + = "tiki-browse_gallery.php?galleryId=" . $res["object"]; + break; + case "poll": + // no perm check for viewing polls, only a perm for taking them + $ret["items"]["comments"]["list"][$count]["href"] + = "tiki-poll_results.php?pollId=" . $res["object"]; + break; + case "wiki page": + $perm = 'tiki_p_view'; + $ret["items"]["comments"]["list"][$count]["href"] + = "tiki-index.php?page=" . urlencode($res["object"]); + break; + default: + $perm = 'tiki_p_read_comments'; + break; + } + + if (!isset($perm) || $userlib->user_has_perm_on_object($user,$res['object'], $res['objectType'], $perm)) { + if (isset($ret["items"]["comments"]["list"][$count]["href"])) { + $ret["items"]["comments"]["list"][$count]["href"] .= '&comments_show=y#threadId'.$res['threadId']; + } + $ret["items"]["comments"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["commentDate"]) ." ". tra("by") ." ". $res["userName"]; + $ret["items"]["comments"]["list"][$count]["label"] = $res["title"]; + $count++; + } + } + $ret["items"]["comments"]["count"] = $count; + + + ///////////////////////////////////////////////////////////////////////// + // FORUMS + if ($prefs['feature_forums'] == 'y') { + $ret["items"]["posts"]["label"] = tra("new posts"); + $ret["items"]["posts"]["cname"] = "slv_posts_menu"; + $query = "select `object`,`objectType`,`title`,`commentDate`,`userName`,`threadId`, `parentId` from `tiki_comments` where `commentDate`>? and `objectType` = 'forum' order by `commentDate` desc"; + $result = $tikilib->query($query, array((int)$last)); + + $count = 0; + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['object'], $res['objectType'], 'tiki_p_forum_read')) { + $ret["items"]["posts"]["list"][$count]["href"] + = "tiki-view_forum_thread.php?forumId=" . $res["object"] . "&comments_parentId="; + if ($res["parentId"]) { + $ret["items"]["posts"]["list"][$count]["href"].=$res["parentId"].'#threadId'.$res['threadId']; + } else { + $ret["items"]["posts"]["list"][$count]["href"].=$res["threadId"]; + } + $ret["items"]["posts"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["commentDate"]) ." ". tra("by") ." ". $res["userName"]; + $ret["items"]["posts"]["list"][$count]["label"] = $res["title"]; + ++$count; + } + } + $ret["items"]["posts"]["count"] = $count; + } + + + ///////////////////////////////////////////////////////////////////////// + // WIKI PAGES + if ($prefs['feature_wiki'] == 'y') { + // && $tikilib->getOne("select count(*) from `tiki_pages` where `lastModif`>?",array((int)$last))!=0) { + $ret["items"]["pages"]["label"] = tra("wiki pages changed"); + $ret["items"]["pages"]["cname"] = "slv_pages_menu"; + $query = "select `pageName`, `user`, `lastModif` from `tiki_pages` where `lastModif`>? order by `lastModif` desc"; + $result = $tikilib->query($query, array((int)$last)); + + $count = 0; + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['pageName'], 'wiki page', 'tiki_p_view')) { + $ret["items"]["pages"]["list"][$count]["href"] = "tiki-index.php?page=" . urlencode($res["pageName"]); + $ret["items"]["pages"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["lastModif"]) ." ". tra("by") ." ". $res["user"]; + $ret["items"]["pages"]["list"][$count]["label"] = $res["pageName"]; + $count++; + } + } + $ret["items"]["pages"]["count"] = $count; + } + + + ///////////////////////////////////////////////////////////////////////// + // ARTICLES + if ($prefs['feature_articles'] == 'y' ) { + $ret["items"]["articles"]["label"] = tra("new articles"); + $ret["items"]["articles"]["cname"] = "slv_articles_menu"; + + if($userlib->user_has_permission($user, "tiki_p_edit_article")) { + $query = "select `articleId`,`title`,`publishDate`,`authorName` from `tiki_articles` where `created`>? and `expireDate`>?"; + $bindvars = array((int)$last,time()); + } else { + $query = "select `articleId`,`title`,`publishDate`,`authorName` from `tiki_articles` where `publishDate`>? and `publishDate`<=? and `expireDate`>?"; + $bindvars = array((int)$last,time(),time()); + } + $result = $tikilib->query($query, $bindvars); + + $count = 0; + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['articleId'], 'article', 'tiki_p_read_article')) { + $ret["items"]["articles"]["list"][$count]["href"] = "tiki-read_article.php?articleId=" . $res["articleId"]; + $ret["items"]["articles"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["publishDate"]) ." ". tra("by") ." ". $res["authorName"]; + $ret["items"]["articles"]["list"][$count]["label"] = $res["title"]; + $count++; + } + } + $ret["items"]["articles"]["count"] = $count; + } + + + ///////////////////////////////////////////////////////////////////////// + // FAQs + if ($prefs['feature_faqs'] == 'y') { + $ret["items"]["faqs"]["label"] = tra("new FAQs"); + $ret["items"]["faqs"]["cname"] = "slv_faqs_menu"; + + $query = "select `faqId`, `title`, `created` from `tiki_faqs` where `created`>? order by `created` desc"; + $result = $tikilib->query($query, array((int)$last)); + + $count = 0; + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['faqId'], 'faq', 'tiki_p_view_faq')) { + $ret["items"]["faqs"]["list"][$count]["href"] = "tiki-view_faq.php?faqId=" . $res["faqId"]; + $ret["items"]["faqs"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["created"]); + $ret["items"]["faqs"]["list"][$count]["label"] = $res["title"]; + $count++; + } + } + $ret["items"]["faqs"]["count"] = $count; + } + + + ///////////////////////////////////////////////////////////////////////// + // BLOGS + if ($prefs['feature_blogs'] == 'y') { + $ret["items"]["blogs"]["label"] = tra("new blogs"); + $ret["items"]["blogs"]["cname"] = "slv_blogs_menu"; + + $query = "select `blogId`, `title`, `user`, `created` from `tiki_blogs` where `created`>? order by `created` desc"; + $result = $tikilib->query($query, array((int)$last)); + + $count = 0; + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['blogId'], 'blog', 'tiki_p_read_blog')) { + $ret["items"]["blogs"]["list"][$count]["href"] = "tiki-view_blog.php?blogId=" . $res["blogId"]; + $ret["items"]["blogs"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". $res["user"]; + $ret["items"]["blogs"]["list"][$count]["label"] = $res["title"]; + $count++; + } + } + + $ret["items"]["blogs"]["count"] = $count; + + $ret["items"]["blogPosts"]["label"] = tra("new blog posts"); + $ret["items"]["blogPosts"]["cname"] = "slv_blogPosts_menu"; + + $query = "select `postId`, `blogId`, `title`, `user`, `created` from `tiki_blog_posts` where `created`>? order by `created` desc"; + $result = $tikilib->query($query, array((int)$last)); + + $count = 0; + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['blogId'], 'blog', 'tiki_p_read_blog')) { + $ret["items"]["blogPosts"]["list"][$count]["href"] = "tiki-view_blog_post.php?blogId=" . $res["blogId"] . "&postId=" . $res["postId"]; + $ret["items"]["blogPosts"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". $res["user"]; + $ret["items"]["blogPosts"]["list"][$count]["label"] = $res["title"]; + $count++; + } + } + $ret["items"]["blogPosts"]["count"] = $count; + } + + + ///////////////////////////////////////////////////////////////////////// + // IMAGE GALLERIES + if ($prefs['feature_galleries'] == 'y') { + // image galleries + $ret["items"]["imageGalleries"]["label"] = tra("new image galleries"); + $ret["items"]["imageGalleries"]["cname"] = "slv_imageGalleries_menu"; + $query = "select `galleryId`,`name`,`created`,`user` from `tiki_galleries` where `created`>? order by `created` desc"; + $result = $tikilib->query($query, array((int)$last)); + + $count = 0; + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'image gallery', 'tiki_p_view_image_gallery')) { + $ret["items"]["imageGalleries"]["list"][$count]["href"] = "tiki-browse_gallery.php?galleryId=" . $res["galleryId"]; + $ret["items"]["imageGalleries"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". $res["user"]; + $ret["items"]["imageGalleries"]["list"][$count]["label"] = $res["name"]; + $count++; + } + } + $ret["items"]["imageGalleries"]["count"] = $count; + + // images + $ret["items"]["images"]["label"] = tra("new images"); + $ret["items"]["images"]["cname"] = "slv_images_menu"; + $query = "select `imageId`,`galleryId`,`name`,`created`,`user` from `tiki_images` where `created`>? order by `created` desc"; + $result = $tikilib->query($query, array((int)$last)); + + $count = 0; + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'image gallery', 'tiki_p_view_image_gallery')) { + $ret["items"]["images"]["list"][$count]["href"] = "tiki-browse_image.php?galleryId=" . $res["galleryId"]. "&imageId=" .$res["imageId"]; + $ret["items"]["images"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". $res["user"]; + $ret["items"]["images"]["list"][$count]["label"] = $res["name"]; + $count++; + } + } + $ret["items"]["images"]["count"] = $count; + } + + + ///////////////////////////////////////////////////////////////////////// + // FILE GALLERIES + if ($prefs['feature_file_galleries'] == 'y') { + // file galleries + $ret["items"]["fileGalleries"]["label"] = tra("new file galleries"); + $ret["items"]["fileGalleries"]["cname"] = "slv_fileGalleries_menu"; + $query = "select `galleryId`,`name`,`created`,`user` from `tiki_file_galleries` where `created`>? order by `created` desc"; + $result = $tikilib->query($query, array((int)$last)); + + $count = 0; + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'file gallery', 'tiki_p_view_file_gallery')) { + $ret["items"]["fileGalleries"]["list"][$count]["href"] = "tiki-list_file_gallery.php?galleryId=" . $res["galleryId"]; + $ret["items"]["fileGalleries"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". $res["user"]; + $ret["items"]["fileGalleries"]["list"][$count]["label"] = $res["name"]; + $count++; + } + } + $ret["items"]["fileGalleries"]["count"] = $count; + + // files + $ret["items"]["files"]["label"] = tra("new files"); + $ret["items"]["files"]["cname"] = "slv_files_menu"; + $query = "select `galleryId`,`name`,`filename`,`created`,`user` from `tiki_files` where `created`>? order by `created` desc"; + $result = $tikilib->query($query, array((int)$last)); + + $count = 0; + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'file gallery', 'tiki_p_view_file_gallery')) { + $ret["items"]["files"]["list"][$count]["href"] = "tiki-list_file_gallery.php?galleryId=" . $res["galleryId"]; + $ret["items"]["files"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". $res["user"]; + $ret["items"]["files"]["list"][$count]["label"] = $res["name"]. " (".$res["filename"].")"; + $count++; + } + } + $ret["items"]["files"]["count"] = $count; + } + + + ///////////////////////////////////////////////////////////////////////// + // POLLS + if ($prefs['feature_polls'] == 'y') { + $ret["items"]["polls"]["label"] = tra("new polls"); + $ret["items"]["polls"]["cname"] = "slv_polls_menu"; + + $query = "select `pollId`, `title`, `publishDate` from `tiki_polls` where `publishDate`>? order by `publishDate` desc"; + $result = $tikilib->query($query, array((int)$last)); + + $count = 0; + while ($res = $result->fetchRow()) { + $ret["items"]["polls"]["list"][$count]["href"] = "tiki-poll_results.php?pollId=" . $res["pollId"]; + $ret["items"]["polls"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["publishDate"]); + $ret["items"]["polls"]["list"][$count]["label"] = $res["title"]; + $count++; + } + $ret["items"]["polls"]["count"] = $count; + } + + + ///////////////////////////////////////////////////////////////////////// + // NEW USERS + $ret["items"]["users"]["label"] = tra("new users"); + $ret["items"]["users"]["cname"] = "slv_users_menu"; + $query = "select `login`, `registrationDate` from `users_users` where `registrationDate`>?"; + $result = $tikilib->query($query, array((int)$last)); + + $count = 0; + $slv_tmp_href = $userlib->user_has_permission($user, "tiki_p_admin") ? "tiki-assignuser.php?assign_user=" : "tiki-user_information.php?view_user="; + while ($res = $result->fetchRow()) { + $ret["items"]["users"]["list"][$count]["href"] = $slv_tmp_href . $res["login"]; + $ret["items"]["users"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["registrationDate"]); + $ret["items"]["users"]["list"][$count]["label"] = $res["login"]; + $count++; + } + $ret["items"]["users"]["count"] = $count; + + + if ($prefs['feature_trackers'] == 'y') { + ///////////////////////////////////////////////////////////////////////// + // NEW TRACKER ITEMS + $ret["items"]["trackers"]["label"] = tra("new tracker items"); + $ret["items"]["trackers"]["cname"] = "slv_trackers_menu"; + + $query = "select `itemId`, `trackerId`, `created`, `lastModif` from `tiki_tracker_items` where `created`>? order by `created` desc"; + $result = $tikilib->query($query, array((int)$last)); + + $count = 0; + $counta = array(); + $tracker_name = array(); + global $cachelib; + require_once('lib/cache/cachelib.php'); + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['trackerId'], 'tracker', 'tiki_p_view_trackers')) { + // Initialize tracker counter if needed. + if (!isset($counta[$res['trackerId']])) $counta[$res['trackerId']] = 0; + + // Pull Tracker Name + if (!isset($tracker_name[$res['trackerId']])) { + $query = "select `name` from `tiki_trackers` where `trackerId` = ?"; + $tracker_name[$res['trackerId']] = $tikilib->getOne($query, $res['trackerId']); + } + + $ret["items"]["trackers"]["tid"][$res['trackerId']]["label"] = tra("in " . $tracker_name[$res["trackerId"]]); + $ret["items"]["trackers"]["tid"][$res['trackerId']]["cname"] = "slv_tracker" . $res["trackerId"] . "_menu"; + $ret["items"]["trackers"]["tid"][$res['trackerId']]["list"][$counta[$res['trackerId']]]["href"] = "tiki-view_tracker_item.php?itemId=" . $res["itemId"]; + $ret["items"]["trackers"]["tid"][$res['trackerId']]["list"][$counta[$res['trackerId']]]["title"] = $tikilib->get_short_datetime($res["created"]); + + // routine to verify field in tracker that's used as label + $cacheKey = 'trackerItemLabel'.$res['itemId']; + if (!$cachelib->isCached($cacheKey)) { + $query = "select `fieldId` from `tiki_tracker_fields` where `isMain` = ? and `trackerId` = ? order by `position`"; + $fieldId = $tikilib->getOne($query, array('y',$res['trackerId'])); + $query = "select `value` from `tiki_tracker_item_fields` where `fieldId` = ? and `itemId` = ?"; + $label = $tikilib->getOne($query, array($fieldId,$res['itemId'])); + + $cachelib->cacheItem($cacheKey, $label); + } else { + $label = $cachelib->getCached($cacheKey); + } + + // If the label is empty (b:0;), then use the item ID + if ($label == 'b:0;' || $label == '') { + $label = "Trk i" . $res['trackerId'] . " - ID: " . $res['itemId']; + } + $ret["items"]["trackers"]["tid"][$res['trackerId']]["list"][$counta[$res['trackerId']]]["label"] = $label; + $counta[$res['trackerId']]++; + $ret["items"]["trackers"]["tid"][$res['trackerId']]["count"] = $counta[$res['trackerId']]; + $count++; + } + } + $ret["items"]["trackers"]["count"] = $count; + + + ///////////////////////////////////////////////////////////////////////// + // UPDATED TRACKER ITEMS - ignore updates on same day as creation + $ret["items"]["utrackers"]["label"] = tra("updated tracker items"); + $ret["items"]["utrackers"]["cname"] = "slv_utrackers_menu"; + + $query = "select `itemId`, `trackerId`, `created`, `lastModif` from `tiki_tracker_items` where `lastModif`>? and `lastModif`!=`created` order by `lastModif` desc"; + $result = $tikilib->query($query, array((int)$last)); + + $count = 0; + $countb = array(); + global $cachelib; + require_once('lib/cache/cachelib.php'); + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['trackerId'], 'tracker', 'tiki_p_view_trackers')) { + // Initialize tracker counter if needed. + if (!isset($countb[$res['trackerId']])) $countb[$res['trackerId']] = 0; + + // Pull Tracker Name + if (!isset($tracker_name[$res['trackerId']])) { + $query = "select `name` from `tiki_trackers` where `trackerId` = ?"; + $tracker_name[$res['trackerId']] = $tikilib->getOne($query, $res['trackerId']); + } + + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["label"] = tra("in " . $tracker_name[$res["trackerId"]]); + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["cname"] = "slv_utracker" . $res["trackerId"] . "_menu"; + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["list"][$countb[$res['trackerId']]]["href"] = "tiki-view_tracker_item.php?itemId=" . $res["itemId"]; + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["list"][$countb[$res['trackerId']]]["title"] = $tikilib->get_short_datetime($res["lastModif"]); + + // routine to verify field in tracker that's used as label + $cacheKey = 'trackerItemLabel'.$res['itemId']; + if (!$cachelib->isCached($cacheKey)) { + $query = "select `fieldId` from `tiki_tracker_fields` where `isMain` = ? and `trackerId` = ? order by `position`"; + $fieldId = $tikilib->getOne($query, array('y',$res['trackerId'])); + $query = "select `value` from `tiki_tracker_item_fields` where `fieldId` = ? and `itemId` = ?"; + $label = $tikilib->getOne($query, array($fieldId,$res['itemId'])); + + $cachelib->cacheItem($cacheKey, $label); + } else { + $label = $cachelib->getCached($cacheKey); + } + + // If the label is empty (b:0;), then use the item ID + if ($label == 'b:0;' || $label == '') { + $label = "Trk i" . $res['trackerId'] . " - ID: " . $res['itemId']; + } + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["list"][$countb[$res['trackerId']]]["label"] = $label; + $countb[$res['trackerId']]++; + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["count"] = $countb[$res['trackerId']]; + $count++; + } + } + $ret["items"]["utrackers"]["count"] = $count; + } + + + + ////////////////////////////////////////////////////////////////////////// + // SUMMARY + //get the total of itemss + $ret["cant"] = 0; + foreach ($ret["items"] as $item) { + $ret["cant"] += $item["count"]; +} + + return $ret; +} +} + +$slv_info = since_last_visit2($user, $module_params); +$smarty->assign('slv_info', $slv_info); +$smarty->assign('nonums', isset($module_params["nonums"]) ? $module_params["noms"] : 'n'); + +?> Added: trunk/templates/modules/mod-since_last_visit2.tpl =================================================================== --- trunk/templates/modules/mod-since_last_visit2.tpl (rev 0) +++ trunk/templates/modules/mod-since_last_visit2.tpl 2008-07-29 23:44:56 UTC (rev 13954) @@ -0,0 +1,84 @@ +{* + * MOD-SINCE_LAST_VISIT2 + * Template for the module based off of since_last_visit_new. + * More or less the same as SLVN, except separates new entries from updates + * in some system areas, and breaks trackers into individual trackers. Use + * whichever meets your needs. + *} +{if $user} + {assign var=module_title value=$slv_info.label} + {tikimodule title="$module_title" name="since_last_visit2" flip=$module_params.flip decorations=$module_params.decorations} + <div style="margin-bottom: 5px; text-align:center;"> + {if $prefs.feature_calendar eq 'y'} + <a class="linkmodule" href="tiki-calendar.php?todate={$slv_info.lastLogin}" title="{tr}click to edit{/tr}"> + {/if} + <b>{$slv_info.lastLogin|tiki_short_date}</b> + {if $prefs.feature_calendar eq 'y'} + </a> + {/if} + </div> + {if $slv_info.cant == 0} + <div class="separator">{tr}Nothing has changed{/tr}</div> + {else} + {foreach key=pos item=slv_item from=$slv_info.items} + {if $slv_item.count > 0 } + {assign var=cname value=$slv_item.cname} + <div class="separator"><a class="separator" href="javascript:flip('{$cname}');">{$slv_item.count} {$slv_item.label}</a></div> + {assign var=showcname value=show_$cname} + + {if $pos eq 'trackers' or $pos eq 'utrackers'} + <div id="{$cname}" style="display:{if !isset($cookie.$showcname) or $cookie.$showcname eq 'y'}block{else}none{/if};"> + + {****** Parse out the trackers *****} + {foreach key=tp item=tracker from=$slv_item.tid} + {assign var=tcname value=$tracker.cname} + <div class="separator" style="margin-left: 10px; display:{if !isset($cookie.$showcname) or $cookie.$showcname eq 'y'}block{else}none{/if};"> + {assign var=showtcname value=show_$tcname} + <a class="separator" href="javascript:flip('{$tcname}');">{$tracker.count} {$tracker.label}</a> + <div id="{$tcname}" style="display:{if !isset($cookie.$showtcname) or $cookie.$showtcname eq 'y'}block{else}none{/if};"> + <table cellpadding="0" cellspacing="0"> + {section name=xx loop=$tracker.list} + <tr class="module"> + <td width="10" /> + <td width="20" align="right" class="module"> {$smarty.section.xx.index_next})</td> + <td> + <a class="linkmodule" + href="{$tracker.list[xx].href|escape}" + title="{$tracker.list[xx].title|escape}">{if $tracker.list[xx].label == ''}-{else}{$tracker.list[xx].label|escape}{/if} + </a> + </td> + </tr> + {/section} + </table> + </div> + </div> + {/foreach} + {****** End tracker section *****} + </div> + + {else} + <div id="{$cname}" style="display:{if !isset($cookie.$showcname) or $cookie.$showcname eq 'y'}block{else}none{/if};"> + <table cellpadding="0" cellspacing="0"> + {section name=ix loop=$slv_item.list} + <tr class="module"> + <td width="10" /> + <td width="20" align="right" class="module">{$smarty.section.ix.index_next})</td> + <td> + <a class="linkmodule" + href="{$slv_item.list[ix].href|escape}" + title="{$slv_item.list[ix].title|escape}"> + {if $slv_item.list[ix].label == ''}-{else}{$slv_item.list[ix].label|escape}{/if} + </a> + </td> + </tr> + {/section} + </table> + </div> + {/if} + {/if} + {/foreach} + {/if} + {* <div style="color:#aaaaaa; text-align:right; font-size:8px; margin-bottom: 0;">SLV{$slv_info.version}</div> *} + {/tikimodule} +{/if} + This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: Nyloth <ny...@ti...> - 2008-07-29 23:49:42
|
Hi Kerrnel, If those two modules are so similar, I would prefer to have only one module with an option to change it's behavior... duplicated code is really a pain to maintain :/ Cheers, Nyloth. On Wednesday 30 July 2008 01:44:57 ker...@us... wrote: > Revision: 13954 > http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=13954&view=rev > Author: kerrnel22 > Date: 2008-07-29 23:44:56 +0000 (Tue, 29 Jul 2008) > > Log Message: > ----------- > [NEW] Since SLVN has been updated for 2.0, I have migrated the 1.9x SLVN > into a new since_last_visit2 module. Similar functionality to SLVN except > it breaks out tracker changes by tracker and rolls it all up. > > Added Paths: > ----------- > trunk/modules/mod-since_last_visit2.php > trunk/templates/modules/mod-since_last_visit2.tpl > > Added: trunk/modules/mod-since_last_visit2.php > =================================================================== > --- trunk/modules/mod-since_last_visit2.php (rev 0) > +++ trunk/modules/mod-since_last_visit2.php 2008-07-29 23:44:56 UTC (rev > 13954) @@ -0,0 +1,492 @@ > +<?php > + > +// MOD-SINCE_LAST_VISIT2 > +// Based off of mod-since_last_visit_new. > +// This mod will cull the Tiki database for new or updated content since > last +// login. More or less the same as SLVN, but with different views. > Use +// whichever meets your needs. > + > +//this script may only be included - so its better to die if called > directly. +if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== > false) { + header("location: index.php"); > + exit; > +} > + > +require_once('lib/smarty_tiki/modifier.userlink.php'); > + > +if (!function_exists('since_last_visit2')) { > +function since_last_visit2($user, $params = null) { > + if (!$user) return false; > + > + global $tikilib; > + global $userlib; > + global $prefs; > + > + $ret = array(); > + $ret["label"] = tra("Since your last visit..."); > + $ret["version"] = "2.0"; > + if ( $params == null ) $params = array(); > + > + if (strpos($_SERVER["SCRIPT_NAME"],"tiki-calendar.php") && > isset($_REQUEST["todate"]) && $_REQUEST["todate"]) { + $last = > $_REQUEST["todate"]; > + $_SESSION["slv_last_login"] = $last; > + $ret["label"] = tra("Changes")." ".tra("since"); > + } else if (isset($_SESSION["slv_last_login"])) { > + $last = $_SESSION["slv_last_login"]; > + $ret["label"] = tra("Changes since"); > + } else { > + $last = $tikilib->getOne("select `lastLogin` from `users_users` where > `login`=?",array($user)); + if (!$last) $last = time(); > + } > + $ret["lastLogin"] = $last; > + > + $ret["items"]["comments"]["label"] = tra("new comments"); > + $ret["items"]["comments"]["cname"] = "slv_comments_menu"; > + $query = "select > `object`,`objectType`,`title`,`commentDate`,`userName`,`threadId`, > `parentId` from `tiki_comments` where `commentDate`>? and `objectType` != > 'forum' order by `commentDate` desc"; + $result = $tikilib->query($query, > array((int)$last)); > + > + $count = 0; > + while ($res = $result->fetchRow()) > + { > + switch($res["objectType"]) { > + case "article": > + $perm = 'tiki_p_read_article'; > + $ret["items"]["comments"]["list"][$count]["href"] > + = "tiki-read_article.php?articleId=" . $res["object"]; > + break; > + case "post": > + $perm = 'tiki_p_read_blog'; > + $ret["items"]["comments"]["list"][$count]["href"] > + = "tiki-view_blog_post.php?postId=" . $res["object"]; > + break; > + case "blog": > + $perm = 'tiki_p_read_blog'; > + $ret["items"]["comments"]["list"][$count]["href"] > + = "tiki-view_blog.php?blogId=" . $res["object"]; > + break; > + case "faq": > + $perm = 'tiki_p_view_faqs'; > + $ret["items"]["comments"]["list"][$count]["href"] > + = "tiki-view_faq.php?faqId=" . $res["object"]; > + break; > + case "file gallery": > + $perm = 'tiki_p_view_file_gallery'; > + $ret["items"]["comments"]["list"][$count]["href"] > + = "tiki-list_file_gallery.php?galleryId=" . $res["object"]; > + break; > + case "image gallery": > + $perm = 'tiki_p_view_image_gallery'; > + $ret["items"]["comments"]["list"][$count]["href"] > + = "tiki-browse_gallery.php?galleryId=" . $res["object"]; > + break; > + case "poll": > + // no perm check for viewing polls, only a perm for taking them > + $ret["items"]["comments"]["list"][$count]["href"] > + = "tiki-poll_results.php?pollId=" . $res["object"]; > + break; > + case "wiki page": > + $perm = 'tiki_p_view'; > + $ret["items"]["comments"]["list"][$count]["href"] > + = "tiki-index.php?page=" . urlencode($res["object"]); > + break; > + default: > + $perm = 'tiki_p_read_comments'; > + break; > + } > + > + if (!isset($perm) || > $userlib->user_has_perm_on_object($user,$res['object'], $res['objectType'], > $perm)) { + if (isset($ret["items"]["comments"]["list"][$count]["href"])) > { + $ret["items"]["comments"]["list"][$count]["href"] .= > '&comments_show=y#threadId'.$res['threadId']; + } > + $ret["items"]["comments"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["commentDate"]) ." ". tra("by") ." ". > $res["userName"]; + $ret["items"]["comments"]["list"][$count]["label"] = > $res["title"]; + $count++; > + } > + } > + $ret["items"]["comments"]["count"] = $count; > + > + > + ///////////////////////////////////////////////////////////////////////// > + // FORUMS > + if ($prefs['feature_forums'] == 'y') { > + $ret["items"]["posts"]["label"] = tra("new posts"); > + $ret["items"]["posts"]["cname"] = "slv_posts_menu"; > + $query = "select > `object`,`objectType`,`title`,`commentDate`,`userName`,`threadId`, > `parentId` from `tiki_comments` where `commentDate`>? and `objectType` = > 'forum' order by `commentDate` desc"; + $result = $tikilib->query($query, > array((int)$last)); > + > + $count = 0; > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['object'], > $res['objectType'], 'tiki_p_forum_read')) { > + $ret["items"]["posts"]["list"][$count]["href"] > + = "tiki-view_forum_thread.php?forumId=" . $res["object"] . > "&comments_parentId="; + if ($res["parentId"]) { > + $ret["items"]["posts"]["list"][$count]["href"].=$res["parentId"].'#th >readId'.$res['threadId']; + } else { > + $ret["items"]["posts"]["list"][$count]["href"].=$res["threadId"]; > + } > + $ret["items"]["posts"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["commentDate"]) ." ". tra("by") ." ". > $res["userName"]; + $ret["items"]["posts"]["list"][$count]["label"] = > $res["title"]; + ++$count; > + } > + } > + $ret["items"]["posts"]["count"] = $count; > + } > + > + > + ///////////////////////////////////////////////////////////////////////// > + // WIKI PAGES > + if ($prefs['feature_wiki'] == 'y') { > + // && $tikilib->getOne("select count(*) from `tiki_pages` where > `lastModif`>?",array((int)$last))!=0) { + $ret["items"]["pages"]["label"] > = tra("wiki pages changed"); > + $ret["items"]["pages"]["cname"] = "slv_pages_menu"; > + $query = "select `pageName`, `user`, `lastModif` from `tiki_pages` > where `lastModif`>? order by `lastModif` desc"; + $result = > $tikilib->query($query, array((int)$last)); > + > + $count = 0; > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['pageName'], 'wiki > page', 'tiki_p_view')) { > + $ret["items"]["pages"]["list"][$count]["href"] = > "tiki-index.php?page=" . urlencode($res["pageName"]); > + $ret["items"]["pages"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["lastModif"]) ." ". tra("by") ." ". > $res["user"]; + $ret["items"]["pages"]["list"][$count]["label"] = > $res["pageName"]; + $count++; > + } > + } > + $ret["items"]["pages"]["count"] = $count; > + } > + > + > + ///////////////////////////////////////////////////////////////////////// > + // ARTICLES > + if ($prefs['feature_articles'] == 'y' ) { > + $ret["items"]["articles"]["label"] = tra("new articles"); > + $ret["items"]["articles"]["cname"] = "slv_articles_menu"; > + > + if($userlib->user_has_permission($user, "tiki_p_edit_article")) { > + $query = "select `articleId`,`title`,`publishDate`,`authorName` from > `tiki_articles` where `created`>? and `expireDate`>?"; + $bindvars = > array((int)$last,time()); > + } else { > + $query = "select `articleId`,`title`,`publishDate`,`authorName` from > `tiki_articles` where `publishDate`>? and `publishDate`<=? and > `expireDate`>?"; + $bindvars = array((int)$last,time(),time()); > + } > + $result = $tikilib->query($query, $bindvars); > + > + $count = 0; > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['articleId'], > 'article', 'tiki_p_read_article')) { > + $ret["items"]["articles"]["list"][$count]["href"] = > "tiki-read_article.php?articleId=" . $res["articleId"]; > + $ret["items"]["articles"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["publishDate"]) ." ". tra("by") ." ". > $res["authorName"]; + $ret["items"]["articles"]["list"][$count]["label"] > = $res["title"]; + $count++; > + } > + } > + $ret["items"]["articles"]["count"] = $count; > + } > + > + > + ///////////////////////////////////////////////////////////////////////// > + // FAQs > + if ($prefs['feature_faqs'] == 'y') { > + $ret["items"]["faqs"]["label"] = tra("new FAQs"); > + $ret["items"]["faqs"]["cname"] = "slv_faqs_menu"; > + > + $query = "select `faqId`, `title`, `created` from `tiki_faqs` where > `created`>? order by `created` desc"; + $result = $tikilib->query($query, > array((int)$last)); > + > + $count = 0; > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['faqId'], 'faq', > 'tiki_p_view_faq')) { + $ret["items"]["faqs"]["list"][$count]["href"] = > "tiki-view_faq.php?faqId=" . $res["faqId"]; > + $ret["items"]["faqs"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["created"]); > + $ret["items"]["faqs"]["list"][$count]["label"] = $res["title"]; > + $count++; > + } > + } > + $ret["items"]["faqs"]["count"] = $count; > + } > + > + > + ///////////////////////////////////////////////////////////////////////// > + // BLOGS > + if ($prefs['feature_blogs'] == 'y') { > + $ret["items"]["blogs"]["label"] = tra("new blogs"); > + $ret["items"]["blogs"]["cname"] = "slv_blogs_menu"; > + > + $query = "select `blogId`, `title`, `user`, `created` from `tiki_blogs` > where `created`>? order by `created` desc"; + $result = > $tikilib->query($query, array((int)$last)); > + > + $count = 0; > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['blogId'], 'blog', > 'tiki_p_read_blog')) { + $ret["items"]["blogs"]["list"][$count]["href"] > = "tiki-view_blog.php?blogId=" . $res["blogId"]; > + $ret["items"]["blogs"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". > $res["user"]; + $ret["items"]["blogs"]["list"][$count]["label"] = > $res["title"]; + $count++; > + } > + } > + > + $ret["items"]["blogs"]["count"] = $count; > + > + $ret["items"]["blogPosts"]["label"] = tra("new blog posts"); > + $ret["items"]["blogPosts"]["cname"] = "slv_blogPosts_menu"; > + > + $query = "select `postId`, `blogId`, `title`, `user`, `created` from > `tiki_blog_posts` where `created`>? order by `created` desc"; + $result = > $tikilib->query($query, array((int)$last)); > + > + $count = 0; > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['blogId'], 'blog', > 'tiki_p_read_blog')) { > + $ret["items"]["blogPosts"]["list"][$count]["href"] = > "tiki-view_blog_post.php?blogId=" . $res["blogId"] . "&postId=" . > $res["postId"]; + $ret["items"]["blogPosts"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". > $res["user"]; + $ret["items"]["blogPosts"]["list"][$count]["label"] = > $res["title"]; + $count++; > + } > + } > + $ret["items"]["blogPosts"]["count"] = $count; > + } > + > + > + ///////////////////////////////////////////////////////////////////////// > + // IMAGE GALLERIES > + if ($prefs['feature_galleries'] == 'y') { > + // image galleries > + $ret["items"]["imageGalleries"]["label"] = tra("new image galleries"); > + $ret["items"]["imageGalleries"]["cname"] = "slv_imageGalleries_menu"; > + $query = "select `galleryId`,`name`,`created`,`user` from > `tiki_galleries` where `created`>? order by `created` desc"; + $result = > $tikilib->query($query, array((int)$last)); > + > + $count = 0; > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'image > gallery', 'tiki_p_view_image_gallery')) { > + $ret["items"]["imageGalleries"]["list"][$count]["href"] = > "tiki-browse_gallery.php?galleryId=" . $res["galleryId"]; > + $ret["items"]["imageGalleries"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". > $res["user"]; + $ret["items"]["imageGalleries"]["list"][$count]["label"] > = $res["name"]; + $count++; > + } > + } > + $ret["items"]["imageGalleries"]["count"] = $count; > + > + // images > + $ret["items"]["images"]["label"] = tra("new images"); > + $ret["items"]["images"]["cname"] = "slv_images_menu"; > + $query = "select `imageId`,`galleryId`,`name`,`created`,`user` from > `tiki_images` where `created`>? order by `created` desc"; + $result = > $tikilib->query($query, array((int)$last)); > + > + $count = 0; > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'image > gallery', 'tiki_p_view_image_gallery')) { > + $ret["items"]["images"]["list"][$count]["href"] = > "tiki-browse_image.php?galleryId=" . $res["galleryId"]. "&imageId=" > .$res["imageId"]; + $ret["items"]["images"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". > $res["user"]; + $ret["items"]["images"]["list"][$count]["label"] = > $res["name"]; + $count++; > + } > + } > + $ret["items"]["images"]["count"] = $count; > + } > + > + > + ///////////////////////////////////////////////////////////////////////// > + // FILE GALLERIES > + if ($prefs['feature_file_galleries'] == 'y') { > + // file galleries > + $ret["items"]["fileGalleries"]["label"] = tra("new file galleries"); > + $ret["items"]["fileGalleries"]["cname"] = "slv_fileGalleries_menu"; > + $query = "select `galleryId`,`name`,`created`,`user` from > `tiki_file_galleries` where `created`>? order by `created` desc"; > + $result = $tikilib->query($query, array((int)$last)); > + > + $count = 0; > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'file > gallery', 'tiki_p_view_file_gallery')) { > + $ret["items"]["fileGalleries"]["list"][$count]["href"] = > "tiki-list_file_gallery.php?galleryId=" . $res["galleryId"]; > + $ret["items"]["fileGalleries"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". > $res["user"]; + $ret["items"]["fileGalleries"]["list"][$count]["label"] > = $res["name"]; + $count++; > + } > + } > + $ret["items"]["fileGalleries"]["count"] = $count; > + > + // files > + $ret["items"]["files"]["label"] = tra("new files"); > + $ret["items"]["files"]["cname"] = "slv_files_menu"; > + $query = "select `galleryId`,`name`,`filename`,`created`,`user` from > `tiki_files` where `created`>? order by `created` desc"; + $result = > $tikilib->query($query, array((int)$last)); > + > + $count = 0; > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'file > gallery', 'tiki_p_view_file_gallery')) { > + $ret["items"]["files"]["list"][$count]["href"] = > "tiki-list_file_gallery.php?galleryId=" . $res["galleryId"]; > + $ret["items"]["files"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". > $res["user"]; + $ret["items"]["files"]["list"][$count]["label"] = > $res["name"]. " (".$res["filename"].")"; + $count++; > + } > + } > + $ret["items"]["files"]["count"] = $count; > + } > + > + > + ///////////////////////////////////////////////////////////////////////// > + // POLLS > + if ($prefs['feature_polls'] == 'y') { > + $ret["items"]["polls"]["label"] = tra("new polls"); > + $ret["items"]["polls"]["cname"] = "slv_polls_menu"; > + > + $query = "select `pollId`, `title`, `publishDate` from `tiki_polls` > where `publishDate`>? order by `publishDate` desc"; + $result = > $tikilib->query($query, array((int)$last)); > + > + $count = 0; > + while ($res = $result->fetchRow()) { > + $ret["items"]["polls"]["list"][$count]["href"] = > "tiki-poll_results.php?pollId=" . $res["pollId"]; > + $ret["items"]["polls"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["publishDate"]); > + $ret["items"]["polls"]["list"][$count]["label"] = $res["title"]; > + $count++; > + } > + $ret["items"]["polls"]["count"] = $count; > + } > + > + > + ///////////////////////////////////////////////////////////////////////// > + // NEW USERS > + $ret["items"]["users"]["label"] = tra("new users"); > + $ret["items"]["users"]["cname"] = "slv_users_menu"; > + $query = "select `login`, `registrationDate` from `users_users` where > `registrationDate`>?"; + $result = $tikilib->query($query, > array((int)$last)); > + > + $count = 0; > + $slv_tmp_href = $userlib->user_has_permission($user, "tiki_p_admin") ? > "tiki-assignuser.php?assign_user=" : > "tiki-user_information.php?view_user="; + while ($res = > $result->fetchRow()) { > + $ret["items"]["users"]["list"][$count]["href"] = $slv_tmp_href . > $res["login"]; + $ret["items"]["users"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["registrationDate"]); > + $ret["items"]["users"]["list"][$count]["label"] = $res["login"]; > + $count++; > + } > + $ret["items"]["users"]["count"] = $count; > + > + > + if ($prefs['feature_trackers'] == 'y') { > + ///////////////////////////////////////////////////////////////////////// > + // NEW TRACKER ITEMS > + $ret["items"]["trackers"]["label"] = tra("new tracker items"); > + $ret["items"]["trackers"]["cname"] = "slv_trackers_menu"; > + > + $query = "select `itemId`, `trackerId`, `created`, `lastModif` from > `tiki_tracker_items` where `created`>? order by `created` desc"; + $result > = $tikilib->query($query, array((int)$last)); > + > + $count = 0; > + $counta = array(); > + $tracker_name = array(); > + global $cachelib; > + require_once('lib/cache/cachelib.php'); > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['trackerId'], > 'tracker', 'tiki_p_view_trackers')) { + // Initialize tracker counter if > needed. > + if (!isset($counta[$res['trackerId']])) $counta[$res['trackerId']] = > 0; + > + // Pull Tracker Name > + if (!isset($tracker_name[$res['trackerId']])) { > + $query = "select `name` from `tiki_trackers` where `trackerId` = ?"; > + $tracker_name[$res['trackerId']] = $tikilib->getOne($query, > $res['trackerId']); + } > + > + $ret["items"]["trackers"]["tid"][$res['trackerId']]["label"] = tra("in > " . $tracker_name[$res["trackerId"]]); > + $ret["items"]["trackers"]["tid"][$res['trackerId']]["cname"] = > "slv_tracker" . $res["trackerId"] . "_menu"; > + $ret["items"]["trackers"]["tid"][$res['trackerId']]["list"][$counta[$r >es['trackerId']]]["href"] = "tiki-view_tracker_item.php?itemId=" . > $res["itemId"]; > + $ret["items"]["trackers"]["tid"][$res['trackerId']]["list"][$counta[$r >es['trackerId']]]["title"] = $tikilib->get_short_datetime($res["created"]); > + > + // routine to verify field in tracker that's used as label > + $cacheKey = 'trackerItemLabel'.$res['itemId']; > + if (!$cachelib->isCached($cacheKey)) { > + $query = "select `fieldId` from `tiki_tracker_fields` where `isMain` > = ? and `trackerId` = ? order by `position`"; + $fieldId = > $tikilib->getOne($query, array('y',$res['trackerId'])); + $query = > "select `value` from `tiki_tracker_item_fields` where `fieldId` = ? and > `itemId` = ?"; + $label = $tikilib->getOne($query, > array($fieldId,$res['itemId'])); + > + $cachelib->cacheItem($cacheKey, $label); > + } else { > + $label = $cachelib->getCached($cacheKey); > + } > + > + // If the label is empty (b:0;), then use the item ID > + if ($label == 'b:0;' || $label == '') { > + $label = "Trk i" . $res['trackerId'] . " - ID: " . $res['itemId']; > + } > + $ret["items"]["trackers"]["tid"][$res['trackerId']]["list"][$counta[$r >es['trackerId']]]["label"] = $label; + $counta[$res['trackerId']]++; > + $ret["items"]["trackers"]["tid"][$res['trackerId']]["count"] = > $counta[$res['trackerId']]; + $count++; > + } > + } > + $ret["items"]["trackers"]["count"] = $count; > + > + > + ///////////////////////////////////////////////////////////////////////// > + // UPDATED TRACKER ITEMS - ignore updates on same day as creation > + $ret["items"]["utrackers"]["label"] = tra("updated tracker items"); > + $ret["items"]["utrackers"]["cname"] = "slv_utrackers_menu"; > + > + $query = "select `itemId`, `trackerId`, `created`, `lastModif` from > `tiki_tracker_items` where `lastModif`>? and `lastModif`!=`created` order > by `lastModif` desc"; + $result = $tikilib->query($query, > array((int)$last)); > + > + $count = 0; > + $countb = array(); > + global $cachelib; > + require_once('lib/cache/cachelib.php'); > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['trackerId'], > 'tracker', 'tiki_p_view_trackers')) { + // Initialize tracker counter if > needed. > + if (!isset($countb[$res['trackerId']])) $countb[$res['trackerId']] = > 0; + > + // Pull Tracker Name > + if (!isset($tracker_name[$res['trackerId']])) { > + $query = "select `name` from `tiki_trackers` where `trackerId` = ?"; > + $tracker_name[$res['trackerId']] = $tikilib->getOne($query, > $res['trackerId']); + } > + > + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["label"] = > tra("in " . $tracker_name[$res["trackerId"]]); > + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["cname"] = > "slv_utracker" . $res["trackerId"] . "_menu"; > + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["list"][$countb[$ >res['trackerId']]]["href"] = "tiki-view_tracker_item.php?itemId=" . > $res["itemId"]; > + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["list"][$countb[$ >res['trackerId']]]["title"] = > $tikilib->get_short_datetime($res["lastModif"]); + > + // routine to verify field in tracker that's used as label > + $cacheKey = 'trackerItemLabel'.$res['itemId']; > + if (!$cachelib->isCached($cacheKey)) { > + $query = "select `fieldId` from `tiki_tracker_fields` where `isMain` > = ? and `trackerId` = ? order by `position`"; + $fieldId = > $tikilib->getOne($query, array('y',$res['trackerId'])); + $query = > "select `value` from `tiki_tracker_item_fields` where `fieldId` = ? and > `itemId` = ?"; + $label = $tikilib->getOne($query, > array($fieldId,$res['itemId'])); + > + $cachelib->cacheItem($cacheKey, $label); > + } else { > + $label = $cachelib->getCached($cacheKey); > + } > + > + // If the label is empty (b:0;), then use the item ID > + if ($label == 'b:0;' || $label == '') { > + $label = "Trk i" . $res['trackerId'] . " - ID: " . $res['itemId']; > + } > + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["list"][$countb[$ >res['trackerId']]]["label"] = $label; + $countb[$res['trackerId']]++; > + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["count"] = > $countb[$res['trackerId']]; + $count++; > + } > + } > + $ret["items"]["utrackers"]["count"] = $count; > + } > + > + > + > + ///////////////////////////////////////////////////////////////////////// >/ + // SUMMARY > + //get the total of itemss > + $ret["cant"] = 0; > + foreach ($ret["items"] as $item) { > + $ret["cant"] += $item["count"]; > +} > + > + return $ret; > +} > +} > + > +$slv_info = since_last_visit2($user, $module_params); > +$smarty->assign('slv_info', $slv_info); > +$smarty->assign('nonums', isset($module_params["nonums"]) ? > $module_params["noms"] : 'n'); + > +?> > > Added: trunk/templates/modules/mod-since_last_visit2.tpl > =================================================================== > --- trunk/templates/modules/mod-since_last_visit2.tpl > (rev 0) +++ trunk/templates/modules/mod-since_last_visit2.tpl 2008-07-29 > 23:44:56 UTC (rev 13954) @@ -0,0 +1,84 @@ > +{* > + * MOD-SINCE_LAST_VISIT2 > + * Template for the module based off of since_last_visit_new. > + * More or less the same as SLVN, except separates new entries from > updates + * in some system areas, and breaks trackers into individual > trackers. Use + * whichever meets your needs. > + *} > +{if $user} > + {assign var=module_title value=$slv_info.label} > + {tikimodule title="$module_title" name="since_last_visit2" > flip=$module_params.flip decorations=$module_params.decorations} + <div > style="margin-bottom: 5px; text-align:center;"> > + {if $prefs.feature_calendar eq 'y'} > + <a class="linkmodule" > href="tiki-calendar.php?todate={$slv_info.lastLogin}" title="{tr}click to > edit{/tr}"> + {/if} > + <b>{$slv_info.lastLogin|tiki_short_date}</b> > + {if $prefs.feature_calendar eq 'y'} > + </a> > + {/if} > + </div> > + {if $slv_info.cant == 0} > + <div class="separator">{tr}Nothing has changed{/tr}</div> > + {else} > + {foreach key=pos item=slv_item from=$slv_info.items} > + {if $slv_item.count > 0 } > + {assign var=cname value=$slv_item.cname} > + <div class="separator"><a class="separator" > href="javascript:flip('{$cname}');">{$slv_item.count} {$slv_item.label >}</a></div> + {assign var=showcname value=show_$cname} > + > + {if $pos eq 'trackers' or $pos eq 'utrackers'} > + <div id="{$cname}" style="display:{if !isset($cookie.$showcname) or > $cookie.$showcname eq 'y'}block{else}none{/if};"> + > + {****** Parse out the trackers *****} > + {foreach key=tp item=tracker from=$slv_item.tid} > + {assign var=tcname value=$tracker.cname} > + <div class="separator" style="margin-left: 10px; display:{if > !isset($cookie.$showcname) or $cookie.$showcname eq > 'y'}block{else}none{/if};"> + {assign var=showtcname > value=show_$tcname} > + <a class="separator" > href="javascript:flip('{$tcname}');">{$tracker.count} {$tracker.label} ></a> + <div id="{$tcname}" style="display:{if > !isset($cookie.$showtcname) or $cookie.$showtcname eq > 'y'}block{else}none{/if};"> + <table cellpadding="0" > cellspacing="0"> > + {section name=xx loop=$tracker.list} > + <tr class="module"> > + <td width="10" /> > + <td width="20" align="right" > class="module"> {$smarty.section.xx.index_next})</td> + <td> > + <a class="linkmodule" > + href="{$tracker.list[xx].href|escape}" > + title="{$tracker.list[xx].title|escape}">{if > $tracker.list[xx].label == ''}-{else}{$tracker.list[xx].label|escape}{/if} > + </a> > + </td> > + </tr> > + {/section} > + </table> > + </div> > + </div> > + {/foreach} > + {****** End tracker section *****} > + </div> > + > + {else} > + <div id="{$cname}" style="display:{if !isset($cookie.$showcname) or > $cookie.$showcname eq 'y'}block{else}none{/if};"> + <table > cellpadding="0" cellspacing="0"> > + {section name=ix loop=$slv_item.list} > + <tr class="module"> > + <td width="10" /> > + <td width="20" align="right" > class="module">{$smarty.section.ix.index_next})</td> + <td> > + <a class="linkmodule" > + href="{$slv_item.list[ix].href|escape}" > + title="{$slv_item.list[ix].title|escape}"> > + {if $slv_item.list[ix].label == > ''}-{else}{$slv_item.list[ix].label|escape}{/if} + </a> > + </td> > + </tr> > + {/section} > + </table> > + </div> > + {/if} > + {/if} > + {/foreach} > + {/if} > + {* <div style="color:#aaaaaa; text-align:right; font-size:8px; > margin-bottom: 0;">SLV{$slv_info.version}</div> *} + {/tikimodule} > +{/if} > + > > > This was sent by the SourceForge.net collaborative development platform, > the world's largest Open Source development site. > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Tikiwiki-cvs mailing list > Tik...@li... > https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs |
From: Mike K. \(kerrnel22\) <tik...@ke...> - 2008-07-30 02:32:50
|
I thought about that, but then thought that these were modules, not core pieces of the software, so opted instead to allow folks the choice. I have no problem combining the two if that's what makes more sense. Mike. -----Original Message----- From: Nyloth [mailto:ny...@ti...] Sent: Tuesday, July 29, 2008 7:50 PM To: tik...@li... Cc: ker...@us... Subject: Re: [Tikiwiki-cvs/svn] SF.net SVN: tikiwiki:[13954] trunk Hi Kerrnel, If those two modules are so similar, I would prefer to have only one module with an option to change it's behavior... duplicated code is really a pain to maintain :/ Cheers, Nyloth. On Wednesday 30 July 2008 01:44:57 ker...@us... wrote: > Revision: 13954 > http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=13954&view=rev > Author: kerrnel22 > Date: 2008-07-29 23:44:56 +0000 (Tue, 29 Jul 2008) > > Log Message: > ----------- > [NEW] Since SLVN has been updated for 2.0, I have migrated the 1.9x SLVN > into a new since_last_visit2 module. Similar functionality to SLVN except > it breaks out tracker changes by tracker and rolls it all up. > > Added Paths: > ----------- > trunk/modules/mod-since_last_visit2.php > trunk/templates/modules/mod-since_last_visit2.tpl > > Added: trunk/modules/mod-since_last_visit2.php > =================================================================== > --- trunk/modules/mod-since_last_visit2.php (rev 0) > +++ trunk/modules/mod-since_last_visit2.php 2008-07-29 23:44:56 UTC (rev > 13954) @@ -0,0 +1,492 @@ > +<?php > + > +// MOD-SINCE_LAST_VISIT2 > +// Based off of mod-since_last_visit_new. > +// This mod will cull the Tiki database for new or updated content since > last +// login. More or less the same as SLVN, but with different views. > Use +// whichever meets your needs. > + > +//this script may only be included - so its better to die if called > directly. +if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== > false) { + header("location: index.php"); > + exit; > +} > + > +require_once('lib/smarty_tiki/modifier.userlink.php'); > + > +if (!function_exists('since_last_visit2')) { > +function since_last_visit2($user, $params = null) { > + if (!$user) return false; > + > + global $tikilib; > + global $userlib; > + global $prefs; > + > + $ret = array(); > + $ret["label"] = tra("Since your last visit..."); > + $ret["version"] = "2.0"; > + if ( $params == null ) $params = array(); > + > + if (strpos($_SERVER["SCRIPT_NAME"],"tiki-calendar.php") && > isset($_REQUEST["todate"]) && $_REQUEST["todate"]) { + $last = > $_REQUEST["todate"]; > + $_SESSION["slv_last_login"] = $last; > + $ret["label"] = tra("Changes")." ".tra("since"); > + } else if (isset($_SESSION["slv_last_login"])) { > + $last = $_SESSION["slv_last_login"]; > + $ret["label"] = tra("Changes since"); > + } else { > + $last = $tikilib->getOne("select `lastLogin` from `users_users` where > `login`=?",array($user)); + if (!$last) $last = time(); > + } > + $ret["lastLogin"] = $last; > + > + $ret["items"]["comments"]["label"] = tra("new comments"); > + $ret["items"]["comments"]["cname"] = "slv_comments_menu"; > + $query = "select > `object`,`objectType`,`title`,`commentDate`,`userName`,`threadId`, > `parentId` from `tiki_comments` where `commentDate`>? and `objectType` != > 'forum' order by `commentDate` desc"; + $result = $tikilib->query($query, > array((int)$last)); > + > + $count = 0; > + while ($res = $result->fetchRow()) > + { > + switch($res["objectType"]) { > + case "article": > + $perm = 'tiki_p_read_article'; > + $ret["items"]["comments"]["list"][$count]["href"] > + = "tiki-read_article.php?articleId=" . $res["object"]; > + break; > + case "post": > + $perm = 'tiki_p_read_blog'; > + $ret["items"]["comments"]["list"][$count]["href"] > + = "tiki-view_blog_post.php?postId=" . $res["object"]; > + break; > + case "blog": > + $perm = 'tiki_p_read_blog'; > + $ret["items"]["comments"]["list"][$count]["href"] > + = "tiki-view_blog.php?blogId=" . $res["object"]; > + break; > + case "faq": > + $perm = 'tiki_p_view_faqs'; > + $ret["items"]["comments"]["list"][$count]["href"] > + = "tiki-view_faq.php?faqId=" . $res["object"]; > + break; > + case "file gallery": > + $perm = 'tiki_p_view_file_gallery'; > + $ret["items"]["comments"]["list"][$count]["href"] > + = "tiki-list_file_gallery.php?galleryId=" . $res["object"]; > + break; > + case "image gallery": > + $perm = 'tiki_p_view_image_gallery'; > + $ret["items"]["comments"]["list"][$count]["href"] > + = "tiki-browse_gallery.php?galleryId=" . $res["object"]; > + break; > + case "poll": > + // no perm check for viewing polls, only a perm for taking them > + $ret["items"]["comments"]["list"][$count]["href"] > + = "tiki-poll_results.php?pollId=" . $res["object"]; > + break; > + case "wiki page": > + $perm = 'tiki_p_view'; > + $ret["items"]["comments"]["list"][$count]["href"] > + = "tiki-index.php?page=" . urlencode($res["object"]); > + break; > + default: > + $perm = 'tiki_p_read_comments'; > + break; > + } > + > + if (!isset($perm) || > $userlib->user_has_perm_on_object($user,$res['object'], $res['objectType'], > $perm)) { + if (isset($ret["items"]["comments"]["list"][$count]["href"])) > { + $ret["items"]["comments"]["list"][$count]["href"] .= > '&comments_show=y#threadId'.$res['threadId']; + } > + $ret["items"]["comments"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["commentDate"]) ." ". tra("by") ." ". > $res["userName"]; + $ret["items"]["comments"]["list"][$count]["label"] = > $res["title"]; + $count++; > + } > + } > + $ret["items"]["comments"]["count"] = $count; > + > + > + //////////////////////////////////////////////////////////////////////// / > + // FORUMS > + if ($prefs['feature_forums'] == 'y') { > + $ret["items"]["posts"]["label"] = tra("new posts"); > + $ret["items"]["posts"]["cname"] = "slv_posts_menu"; > + $query = "select > `object`,`objectType`,`title`,`commentDate`,`userName`,`threadId`, > `parentId` from `tiki_comments` where `commentDate`>? and `objectType` = > 'forum' order by `commentDate` desc"; + $result = $tikilib->query($query, > array((int)$last)); > + > + $count = 0; > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['object'], > $res['objectType'], 'tiki_p_forum_read')) { > + $ret["items"]["posts"]["list"][$count]["href"] > + = "tiki-view_forum_thread.php?forumId=" . $res["object"] . > "&comments_parentId="; + if ($res["parentId"]) { > + $ret["items"]["posts"]["list"][$count]["href"].=$res["parentId"].'#th >readId'.$res['threadId']; + } else { > + $ret["items"]["posts"]["list"][$count]["href"].=$res["threadId"]; > + } > + $ret["items"]["posts"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["commentDate"]) ." ". tra("by") ." ". > $res["userName"]; + $ret["items"]["posts"]["list"][$count]["label"] = > $res["title"]; + ++$count; > + } > + } > + $ret["items"]["posts"]["count"] = $count; > + } > + > + > + //////////////////////////////////////////////////////////////////////// / > + // WIKI PAGES > + if ($prefs['feature_wiki'] == 'y') { > + // && $tikilib->getOne("select count(*) from `tiki_pages` where > `lastModif`>?",array((int)$last))!=0) { + $ret["items"]["pages"]["label"] > = tra("wiki pages changed"); > + $ret["items"]["pages"]["cname"] = "slv_pages_menu"; > + $query = "select `pageName`, `user`, `lastModif` from `tiki_pages` > where `lastModif`>? order by `lastModif` desc"; + $result = > $tikilib->query($query, array((int)$last)); > + > + $count = 0; > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['pageName'], 'wiki > page', 'tiki_p_view')) { > + $ret["items"]["pages"]["list"][$count]["href"] = > "tiki-index.php?page=" . urlencode($res["pageName"]); > + $ret["items"]["pages"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["lastModif"]) ." ". tra("by") ." ". > $res["user"]; + $ret["items"]["pages"]["list"][$count]["label"] = > $res["pageName"]; + $count++; > + } > + } > + $ret["items"]["pages"]["count"] = $count; > + } > + > + > + //////////////////////////////////////////////////////////////////////// / > + // ARTICLES > + if ($prefs['feature_articles'] == 'y' ) { > + $ret["items"]["articles"]["label"] = tra("new articles"); > + $ret["items"]["articles"]["cname"] = "slv_articles_menu"; > + > + if($userlib->user_has_permission($user, "tiki_p_edit_article")) { > + $query = "select `articleId`,`title`,`publishDate`,`authorName` from > `tiki_articles` where `created`>? and `expireDate`>?"; + $bindvars = > array((int)$last,time()); > + } else { > + $query = "select `articleId`,`title`,`publishDate`,`authorName` from > `tiki_articles` where `publishDate`>? and `publishDate`<=? and > `expireDate`>?"; + $bindvars = array((int)$last,time(),time()); > + } > + $result = $tikilib->query($query, $bindvars); > + > + $count = 0; > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['articleId'], > 'article', 'tiki_p_read_article')) { > + $ret["items"]["articles"]["list"][$count]["href"] = > "tiki-read_article.php?articleId=" . $res["articleId"]; > + $ret["items"]["articles"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["publishDate"]) ." ". tra("by") ." ". > $res["authorName"]; + $ret["items"]["articles"]["list"][$count]["label"] > = $res["title"]; + $count++; > + } > + } > + $ret["items"]["articles"]["count"] = $count; > + } > + > + > + //////////////////////////////////////////////////////////////////////// / > + // FAQs > + if ($prefs['feature_faqs'] == 'y') { > + $ret["items"]["faqs"]["label"] = tra("new FAQs"); > + $ret["items"]["faqs"]["cname"] = "slv_faqs_menu"; > + > + $query = "select `faqId`, `title`, `created` from `tiki_faqs` where > `created`>? order by `created` desc"; + $result = $tikilib->query($query, > array((int)$last)); > + > + $count = 0; > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['faqId'], 'faq', > 'tiki_p_view_faq')) { + $ret["items"]["faqs"]["list"][$count]["href"] = > "tiki-view_faq.php?faqId=" . $res["faqId"]; > + $ret["items"]["faqs"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["created"]); > + $ret["items"]["faqs"]["list"][$count]["label"] = $res["title"]; > + $count++; > + } > + } > + $ret["items"]["faqs"]["count"] = $count; > + } > + > + > + //////////////////////////////////////////////////////////////////////// / > + // BLOGS > + if ($prefs['feature_blogs'] == 'y') { > + $ret["items"]["blogs"]["label"] = tra("new blogs"); > + $ret["items"]["blogs"]["cname"] = "slv_blogs_menu"; > + > + $query = "select `blogId`, `title`, `user`, `created` from `tiki_blogs` > where `created`>? order by `created` desc"; + $result = > $tikilib->query($query, array((int)$last)); > + > + $count = 0; > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['blogId'], 'blog', > 'tiki_p_read_blog')) { + $ret["items"]["blogs"]["list"][$count]["href"] > = "tiki-view_blog.php?blogId=" . $res["blogId"]; > + $ret["items"]["blogs"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". > $res["user"]; + $ret["items"]["blogs"]["list"][$count]["label"] = > $res["title"]; + $count++; > + } > + } > + > + $ret["items"]["blogs"]["count"] = $count; > + > + $ret["items"]["blogPosts"]["label"] = tra("new blog posts"); > + $ret["items"]["blogPosts"]["cname"] = "slv_blogPosts_menu"; > + > + $query = "select `postId`, `blogId`, `title`, `user`, `created` from > `tiki_blog_posts` where `created`>? order by `created` desc"; + $result = > $tikilib->query($query, array((int)$last)); > + > + $count = 0; > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['blogId'], 'blog', > 'tiki_p_read_blog')) { > + $ret["items"]["blogPosts"]["list"][$count]["href"] = > "tiki-view_blog_post.php?blogId=" . $res["blogId"] . "&postId=" . > $res["postId"]; + $ret["items"]["blogPosts"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". > $res["user"]; + $ret["items"]["blogPosts"]["list"][$count]["label"] = > $res["title"]; + $count++; > + } > + } > + $ret["items"]["blogPosts"]["count"] = $count; > + } > + > + > + //////////////////////////////////////////////////////////////////////// / > + // IMAGE GALLERIES > + if ($prefs['feature_galleries'] == 'y') { > + // image galleries > + $ret["items"]["imageGalleries"]["label"] = tra("new image galleries"); > + $ret["items"]["imageGalleries"]["cname"] = "slv_imageGalleries_menu"; > + $query = "select `galleryId`,`name`,`created`,`user` from > `tiki_galleries` where `created`>? order by `created` desc"; + $result = > $tikilib->query($query, array((int)$last)); > + > + $count = 0; > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'image > gallery', 'tiki_p_view_image_gallery')) { > + $ret["items"]["imageGalleries"]["list"][$count]["href"] = > "tiki-browse_gallery.php?galleryId=" . $res["galleryId"]; > + $ret["items"]["imageGalleries"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". > $res["user"]; + $ret["items"]["imageGalleries"]["list"][$count]["label"] > = $res["name"]; + $count++; > + } > + } > + $ret["items"]["imageGalleries"]["count"] = $count; > + > + // images > + $ret["items"]["images"]["label"] = tra("new images"); > + $ret["items"]["images"]["cname"] = "slv_images_menu"; > + $query = "select `imageId`,`galleryId`,`name`,`created`,`user` from > `tiki_images` where `created`>? order by `created` desc"; + $result = > $tikilib->query($query, array((int)$last)); > + > + $count = 0; > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'image > gallery', 'tiki_p_view_image_gallery')) { > + $ret["items"]["images"]["list"][$count]["href"] = > "tiki-browse_image.php?galleryId=" . $res["galleryId"]. "&imageId=" > .$res["imageId"]; + $ret["items"]["images"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". > $res["user"]; + $ret["items"]["images"]["list"][$count]["label"] = > $res["name"]; + $count++; > + } > + } > + $ret["items"]["images"]["count"] = $count; > + } > + > + > + //////////////////////////////////////////////////////////////////////// / > + // FILE GALLERIES > + if ($prefs['feature_file_galleries'] == 'y') { > + // file galleries > + $ret["items"]["fileGalleries"]["label"] = tra("new file galleries"); > + $ret["items"]["fileGalleries"]["cname"] = "slv_fileGalleries_menu"; > + $query = "select `galleryId`,`name`,`created`,`user` from > `tiki_file_galleries` where `created`>? order by `created` desc"; > + $result = $tikilib->query($query, array((int)$last)); > + > + $count = 0; > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'file > gallery', 'tiki_p_view_file_gallery')) { > + $ret["items"]["fileGalleries"]["list"][$count]["href"] = > "tiki-list_file_gallery.php?galleryId=" . $res["galleryId"]; > + $ret["items"]["fileGalleries"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". > $res["user"]; + $ret["items"]["fileGalleries"]["list"][$count]["label"] > = $res["name"]; + $count++; > + } > + } > + $ret["items"]["fileGalleries"]["count"] = $count; > + > + // files > + $ret["items"]["files"]["label"] = tra("new files"); > + $ret["items"]["files"]["cname"] = "slv_files_menu"; > + $query = "select `galleryId`,`name`,`filename`,`created`,`user` from > `tiki_files` where `created`>? order by `created` desc"; + $result = > $tikilib->query($query, array((int)$last)); > + > + $count = 0; > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'file > gallery', 'tiki_p_view_file_gallery')) { > + $ret["items"]["files"]["list"][$count]["href"] = > "tiki-list_file_gallery.php?galleryId=" . $res["galleryId"]; > + $ret["items"]["files"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". > $res["user"]; + $ret["items"]["files"]["list"][$count]["label"] = > $res["name"]. " (".$res["filename"].")"; + $count++; > + } > + } > + $ret["items"]["files"]["count"] = $count; > + } > + > + > + //////////////////////////////////////////////////////////////////////// / > + // POLLS > + if ($prefs['feature_polls'] == 'y') { > + $ret["items"]["polls"]["label"] = tra("new polls"); > + $ret["items"]["polls"]["cname"] = "slv_polls_menu"; > + > + $query = "select `pollId`, `title`, `publishDate` from `tiki_polls` > where `publishDate`>? order by `publishDate` desc"; + $result = > $tikilib->query($query, array((int)$last)); > + > + $count = 0; > + while ($res = $result->fetchRow()) { > + $ret["items"]["polls"]["list"][$count]["href"] = > "tiki-poll_results.php?pollId=" . $res["pollId"]; > + $ret["items"]["polls"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["publishDate"]); > + $ret["items"]["polls"]["list"][$count]["label"] = $res["title"]; > + $count++; > + } > + $ret["items"]["polls"]["count"] = $count; > + } > + > + > + //////////////////////////////////////////////////////////////////////// / > + // NEW USERS > + $ret["items"]["users"]["label"] = tra("new users"); > + $ret["items"]["users"]["cname"] = "slv_users_menu"; > + $query = "select `login`, `registrationDate` from `users_users` where > `registrationDate`>?"; + $result = $tikilib->query($query, > array((int)$last)); > + > + $count = 0; > + $slv_tmp_href = $userlib->user_has_permission($user, "tiki_p_admin") ? > "tiki-assignuser.php?assign_user=" : > "tiki-user_information.php?view_user="; + while ($res = > $result->fetchRow()) { > + $ret["items"]["users"]["list"][$count]["href"] = $slv_tmp_href . > $res["login"]; + $ret["items"]["users"]["list"][$count]["title"] = > $tikilib->get_short_datetime($res["registrationDate"]); > + $ret["items"]["users"]["list"][$count]["label"] = $res["login"]; > + $count++; > + } > + $ret["items"]["users"]["count"] = $count; > + > + > + if ($prefs['feature_trackers'] == 'y') { > + //////////////////////////////////////////////////////////////////////// / > + // NEW TRACKER ITEMS > + $ret["items"]["trackers"]["label"] = tra("new tracker items"); > + $ret["items"]["trackers"]["cname"] = "slv_trackers_menu"; > + > + $query = "select `itemId`, `trackerId`, `created`, `lastModif` from > `tiki_tracker_items` where `created`>? order by `created` desc"; + $result > = $tikilib->query($query, array((int)$last)); > + > + $count = 0; > + $counta = array(); > + $tracker_name = array(); > + global $cachelib; > + require_once('lib/cache/cachelib.php'); > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['trackerId'], > 'tracker', 'tiki_p_view_trackers')) { + // Initialize tracker counter if > needed. > + if (!isset($counta[$res['trackerId']])) $counta[$res['trackerId']] = > 0; + > + // Pull Tracker Name > + if (!isset($tracker_name[$res['trackerId']])) { > + $query = "select `name` from `tiki_trackers` where `trackerId` = ?"; > + $tracker_name[$res['trackerId']] = $tikilib->getOne($query, > $res['trackerId']); + } > + > + $ret["items"]["trackers"]["tid"][$res['trackerId']]["label"] = tra("in > " . $tracker_name[$res["trackerId"]]); > + $ret["items"]["trackers"]["tid"][$res['trackerId']]["cname"] = > "slv_tracker" . $res["trackerId"] . "_menu"; > + $ret["items"]["trackers"]["tid"][$res['trackerId']]["list"][$counta[$r >es['trackerId']]]["href"] = "tiki-view_tracker_item.php?itemId=" . > $res["itemId"]; > + $ret["items"]["trackers"]["tid"][$res['trackerId']]["list"][$counta[$r >es['trackerId']]]["title"] = $tikilib->get_short_datetime($res["created"]); > + > + // routine to verify field in tracker that's used as label > + $cacheKey = 'trackerItemLabel'.$res['itemId']; > + if (!$cachelib->isCached($cacheKey)) { > + $query = "select `fieldId` from `tiki_tracker_fields` where `isMain` > = ? and `trackerId` = ? order by `position`"; + $fieldId = > $tikilib->getOne($query, array('y',$res['trackerId'])); + $query = > "select `value` from `tiki_tracker_item_fields` where `fieldId` = ? and > `itemId` = ?"; + $label = $tikilib->getOne($query, > array($fieldId,$res['itemId'])); + > + $cachelib->cacheItem($cacheKey, $label); > + } else { > + $label = $cachelib->getCached($cacheKey); > + } > + > + // If the label is empty (b:0;), then use the item ID > + if ($label == 'b:0;' || $label == '') { > + $label = "Trk i" . $res['trackerId'] . " - ID: " . $res['itemId']; > + } > + $ret["items"]["trackers"]["tid"][$res['trackerId']]["list"][$counta[$r >es['trackerId']]]["label"] = $label; + $counta[$res['trackerId']]++; > + $ret["items"]["trackers"]["tid"][$res['trackerId']]["count"] = > $counta[$res['trackerId']]; + $count++; > + } > + } > + $ret["items"]["trackers"]["count"] = $count; > + > + > + //////////////////////////////////////////////////////////////////////// / > + // UPDATED TRACKER ITEMS - ignore updates on same day as creation > + $ret["items"]["utrackers"]["label"] = tra("updated tracker items"); > + $ret["items"]["utrackers"]["cname"] = "slv_utrackers_menu"; > + > + $query = "select `itemId`, `trackerId`, `created`, `lastModif` from > `tiki_tracker_items` where `lastModif`>? and `lastModif`!=`created` order > by `lastModif` desc"; + $result = $tikilib->query($query, > array((int)$last)); > + > + $count = 0; > + $countb = array(); > + global $cachelib; > + require_once('lib/cache/cachelib.php'); > + while ($res = $result->fetchRow()) { > + if ($userlib->user_has_perm_on_object($user,$res['trackerId'], > 'tracker', 'tiki_p_view_trackers')) { + // Initialize tracker counter if > needed. > + if (!isset($countb[$res['trackerId']])) $countb[$res['trackerId']] = > 0; + > + // Pull Tracker Name > + if (!isset($tracker_name[$res['trackerId']])) { > + $query = "select `name` from `tiki_trackers` where `trackerId` = ?"; > + $tracker_name[$res['trackerId']] = $tikilib->getOne($query, > $res['trackerId']); + } > + > + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["label"] = > tra("in " . $tracker_name[$res["trackerId"]]); > + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["cname"] = > "slv_utracker" . $res["trackerId"] . "_menu"; > + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["list"][$countb[$ >res['trackerId']]]["href"] = "tiki-view_tracker_item.php?itemId=" . > $res["itemId"]; > + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["list"][$countb[$ >res['trackerId']]]["title"] = > $tikilib->get_short_datetime($res["lastModif"]); + > + // routine to verify field in tracker that's used as label > + $cacheKey = 'trackerItemLabel'.$res['itemId']; > + if (!$cachelib->isCached($cacheKey)) { > + $query = "select `fieldId` from `tiki_tracker_fields` where `isMain` > = ? and `trackerId` = ? order by `position`"; + $fieldId = > $tikilib->getOne($query, array('y',$res['trackerId'])); + $query = > "select `value` from `tiki_tracker_item_fields` where `fieldId` = ? and > `itemId` = ?"; + $label = $tikilib->getOne($query, > array($fieldId,$res['itemId'])); + > + $cachelib->cacheItem($cacheKey, $label); > + } else { > + $label = $cachelib->getCached($cacheKey); > + } > + > + // If the label is empty (b:0;), then use the item ID > + if ($label == 'b:0;' || $label == '') { > + $label = "Trk i" . $res['trackerId'] . " - ID: " . $res['itemId']; > + } > + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["list"][$countb[$ >res['trackerId']]]["label"] = $label; + $countb[$res['trackerId']]++; > + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["count"] = > $countb[$res['trackerId']]; + $count++; > + } > + } > + $ret["items"]["utrackers"]["count"] = $count; > + } > + > + > + > + //////////////////////////////////////////////////////////////////////// / >/ + // SUMMARY > + //get the total of itemss > + $ret["cant"] = 0; > + foreach ($ret["items"] as $item) { > + $ret["cant"] += $item["count"]; > +} > + > + return $ret; > +} > +} > + > +$slv_info = since_last_visit2($user, $module_params); > +$smarty->assign('slv_info', $slv_info); > +$smarty->assign('nonums', isset($module_params["nonums"]) ? > $module_params["noms"] : 'n'); + > +?> > > Added: trunk/templates/modules/mod-since_last_visit2.tpl > =================================================================== > --- trunk/templates/modules/mod-since_last_visit2.tpl > (rev 0) +++ trunk/templates/modules/mod-since_last_visit2.tpl 2008-07-29 > 23:44:56 UTC (rev 13954) @@ -0,0 +1,84 @@ > +{* > + * MOD-SINCE_LAST_VISIT2 > + * Template for the module based off of since_last_visit_new. > + * More or less the same as SLVN, except separates new entries from > updates + * in some system areas, and breaks trackers into individual > trackers. Use + * whichever meets your needs. > + *} > +{if $user} > + {assign var=module_title value=$slv_info.label} > + {tikimodule title="$module_title" name="since_last_visit2" > flip=$module_params.flip decorations=$module_params.decorations} + <div > style="margin-bottom: 5px; text-align:center;"> > + {if $prefs.feature_calendar eq 'y'} > + <a class="linkmodule" > href="tiki-calendar.php?todate={$slv_info.lastLogin}" title="{tr}click to > edit{/tr}"> + {/if} > + <b>{$slv_info.lastLogin|tiki_short_date}</b> > + {if $prefs.feature_calendar eq 'y'} > + </a> > + {/if} > + </div> > + {if $slv_info.cant == 0} > + <div class="separator">{tr}Nothing has changed{/tr}</div> > + {else} > + {foreach key=pos item=slv_item from=$slv_info.items} > + {if $slv_item.count > 0 } > + {assign var=cname value=$slv_item.cname} > + <div class="separator"><a class="separator" > href="javascript:flip('{$cname}');">{$slv_item.count} {$slv_item.la bel >}</a></div> + {assign var=showcname value=show_$cname} > + > + {if $pos eq 'trackers' or $pos eq 'utrackers'} > + <div id="{$cname}" style="display:{if !isset($cookie.$showcname) or > $cookie.$showcname eq 'y'}block{else}none{/if};"> + > + {****** Parse out the trackers *****} > + {foreach key=tp item=tracker from=$slv_item.tid} > + {assign var=tcname value=$tracker.cname} > + <div class="separator" style="margin-left: 10px; display:{if > !isset($cookie.$showcname) or $cookie.$showcname eq > 'y'}block{else}none{/if};"> + {assign var=showtcname > value=show_$tcname} > + <a class="separator" > href="javascript:flip('{$tcname}');">{$tracker.count} {$tracker.lab el} ></a> + <div id="{$tcname}" style="display:{if > !isset($cookie.$showtcname) or $cookie.$showtcname eq > 'y'}block{else}none{/if};"> + <table cellpadding="0" > cellspacing="0"> > + {section name=xx loop=$tracker.list} > + <tr class="module"> > + <td width="10" /> > + <td width="20" align="right" > class="module"> {$smarty.section.xx.index_next})</td> + <td> > + <a class="linkmodule" > + href="{$tracker.list[xx].href|escape}" > + title="{$tracker.list[xx].title|escape}">{if > $tracker.list[xx].label == ''}-{else}{$tracker.list[xx].label|escape}{/if} > + </a> > + </td> > + </tr> > + {/section} > + </table> > + </div> > + </div> > + {/foreach} > + {****** End tracker section *****} > + </div> > + > + {else} > + <div id="{$cname}" style="display:{if !isset($cookie.$showcname) or > $cookie.$showcname eq 'y'}block{else}none{/if};"> + <table > cellpadding="0" cellspacing="0"> > + {section name=ix loop=$slv_item.list} > + <tr class="module"> > + <td width="10" /> > + <td width="20" align="right" > class="module">{$smarty.section.ix.index_next})</td> + <td> > + <a class="linkmodule" > + href="{$slv_item.list[ix].href|escape}" > + title="{$slv_item.list[ix].title|escape}"> > + {if $slv_item.list[ix].label == > ''}-{else}{$slv_item.list[ix].label|escape}{/if} + </a> > + </td> > + </tr> > + {/section} > + </table> > + </div> > + {/if} > + {/if} > + {/foreach} > + {/if} > + {* <div style="color:#aaaaaa; text-align:right; font-size:8px; > margin-bottom: 0;">SLV{$slv_info.version}</div> *} + {/tikimodule} > +{/if} > + > > > This was sent by the SourceForge.net collaborative development platform, > the world's largest Open Source development site. > > ------------------------------------------------------------------------ - > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge Build the coolest Linux based applications with Moblin SDK & win > great prizes Grand prize is a trip for two to an Open Source event anywhere > in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Tikiwiki-cvs mailing list > Tik...@li... > https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs |
From: Nyloth <ny...@ti...> - 2008-07-30 08:48:14
|
Mike, I would prefer, yes, because future enhancements will be made on only one module and users will all have the benefits. It is always a good choice to factorize. Nyloth. On Wednesday 30 July 2008 04:32:20 Mike Kerr (kerrnel22) wrote: > I thought about that, but then thought that these were modules, not core > pieces of the software, so opted instead to allow folks the choice. I > have no problem combining the two if that's what makes more sense. > > Mike. > > > -----Original Message----- > From: Nyloth [mailto:ny...@ti...] > Sent: Tuesday, July 29, 2008 7:50 PM > To: tik...@li... > Cc: ker...@us... > Subject: Re: [Tikiwiki-cvs/svn] SF.net SVN: tikiwiki:[13954] trunk > > Hi Kerrnel, > > If those two modules are so similar, I would prefer to have only one > module > with an option to change it's behavior... duplicated code is really a > pain to > maintain :/ > > Cheers, > Nyloth. > > > On Wednesday 30 July 2008 01:44:57 ker...@us... > > wrote: > > Revision: 13954 > > http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=13954&view=rev > > > Author: kerrnel22 > > Date: 2008-07-29 23:44:56 +0000 (Tue, 29 Jul 2008) > > > > Log Message: > > ----------- > > [NEW] Since SLVN has been updated for 2.0, I have migrated the 1.9x > > SLVN > > > into a new since_last_visit2 module. Similar functionality to SLVN > > except > > > it breaks out tracker changes by tracker and rolls it all up. > > > > Added Paths: > > ----------- > > trunk/modules/mod-since_last_visit2.php > > trunk/templates/modules/mod-since_last_visit2.tpl > > > > Added: trunk/modules/mod-since_last_visit2.php > > =================================================================== > > --- trunk/modules/mod-since_last_visit2.php > > (rev 0) > > > +++ trunk/modules/mod-since_last_visit2.php 2008-07-29 23:44:56 UTC > > (rev > > > 13954) @@ -0,0 +1,492 @@ > > +<?php > > + > > +// MOD-SINCE_LAST_VISIT2 > > +// Based off of mod-since_last_visit_new. > > +// This mod will cull the Tiki database for new or updated content > > since > > > last +// login. More or less the same as SLVN, but with different > > views. > > > Use +// whichever meets your needs. > > + > > +//this script may only be included - so its better to die if called > > directly. +if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== > > false) { + header("location: index.php"); > > + exit; > > +} > > + > > +require_once('lib/smarty_tiki/modifier.userlink.php'); > > + > > +if (!function_exists('since_last_visit2')) { > > +function since_last_visit2($user, $params = null) { > > + if (!$user) return false; > > + > > + global $tikilib; > > + global $userlib; > > + global $prefs; > > + > > + $ret = array(); > > + $ret["label"] = tra("Since your last visit..."); > > + $ret["version"] = "2.0"; > > + if ( $params == null ) $params = array(); > > + > > + if (strpos($_SERVER["SCRIPT_NAME"],"tiki-calendar.php") && > > isset($_REQUEST["todate"]) && $_REQUEST["todate"]) { + > > $last = > > > $_REQUEST["todate"]; > > + $_SESSION["slv_last_login"] = $last; > > + $ret["label"] = tra("Changes")." ".tra("since"); > > + } else if (isset($_SESSION["slv_last_login"])) { > > + $last = $_SESSION["slv_last_login"]; > > + $ret["label"] = tra("Changes since"); > > + } else { > > + $last = $tikilib->getOne("select `lastLogin` from > > `users_users` where > > > `login`=?",array($user)); + if (!$last) $last = time(); > > + } > > + $ret["lastLogin"] = $last; > > + > > + $ret["items"]["comments"]["label"] = tra("new comments"); > > + $ret["items"]["comments"]["cname"] = "slv_comments_menu"; > > + $query = "select > > `object`,`objectType`,`title`,`commentDate`,`userName`,`threadId`, > > `parentId` from `tiki_comments` where `commentDate`>? and `objectType` > > != > > > 'forum' order by `commentDate` desc"; + $result = > > $tikilib->query($query, > > > array((int)$last)); > > + > > + $count = 0; > > + while ($res = $result->fetchRow()) > > + { > > + switch($res["objectType"]) { > > + case "article": > > + $perm = 'tiki_p_read_article'; > > + > > $ret["items"]["comments"]["list"][$count]["href"] > > > + = "tiki-read_article.php?articleId=" . > > $res["object"]; > > > + break; > > + case "post": > > + $perm = 'tiki_p_read_blog'; > > + > > $ret["items"]["comments"]["list"][$count]["href"] > > > + = "tiki-view_blog_post.php?postId=" . > > $res["object"]; > > > + break; > > + case "blog": > > + $perm = 'tiki_p_read_blog'; > > + > > $ret["items"]["comments"]["list"][$count]["href"] > > > + = "tiki-view_blog.php?blogId=" . > > $res["object"]; > > > + break; > > + case "faq": > > + $perm = 'tiki_p_view_faqs'; > > + > > $ret["items"]["comments"]["list"][$count]["href"] > > > + = "tiki-view_faq.php?faqId=" . > > $res["object"]; > > > + break; > > + case "file gallery": > > + $perm = 'tiki_p_view_file_gallery'; > > + > > $ret["items"]["comments"]["list"][$count]["href"] > > > + = > > "tiki-list_file_gallery.php?galleryId=" . $res["object"]; > > > + break; > > + case "image gallery": > > + $perm = 'tiki_p_view_image_gallery'; > > + > > $ret["items"]["comments"]["list"][$count]["href"] > > > + = "tiki-browse_gallery.php?galleryId=" . > > $res["object"]; > > > + break; > > + case "poll": > > + // no perm check for viewing polls, only a perm > > for taking them > > > + > > $ret["items"]["comments"]["list"][$count]["href"] > > > + = "tiki-poll_results.php?pollId=" . > > $res["object"]; > > > + break; > > + case "wiki page": > > + $perm = 'tiki_p_view'; > > + > > $ret["items"]["comments"]["list"][$count]["href"] > > > + = "tiki-index.php?page=" . > > urlencode($res["object"]); > > > + break; > > + default: > > + $perm = 'tiki_p_read_comments'; > > + break; > > + } > > + > > + if (!isset($perm) || > > $userlib->user_has_perm_on_object($user,$res['object'], > > $res['objectType'], > > > $perm)) { + if > > (isset($ret["items"]["comments"]["list"][$count]["href"])) > > > { + > > $ret["items"]["comments"]["list"][$count]["href"] .= > > > '&comments_show=y#threadId'.$res['threadId']; + > > } > > > + > > $ret["items"]["comments"]["list"][$count]["title"] = > > > $tikilib->get_short_datetime($res["commentDate"]) ." ". tra("by") ." > > ". > > > $res["userName"]; + > > $ret["items"]["comments"]["list"][$count]["label"] = > > > $res["title"]; + $count++; > > + } > > + } > > + $ret["items"]["comments"]["count"] = $count; > > + > > + > > + > > //////////////////////////////////////////////////////////////////////// > / > > > + // FORUMS > > + if ($prefs['feature_forums'] == 'y') { > > + $ret["items"]["posts"]["label"] = tra("new posts"); > > + $ret["items"]["posts"]["cname"] = "slv_posts_menu"; > > + $query = "select > > `object`,`objectType`,`title`,`commentDate`,`userName`,`threadId`, > > `parentId` from `tiki_comments` where `commentDate`>? and `objectType` > > = > > > 'forum' order by `commentDate` desc"; + $result = > > $tikilib->query($query, > > > array((int)$last)); > > + > > + $count = 0; > > + while ($res = $result->fetchRow()) { > > + if > > ($userlib->user_has_perm_on_object($user,$res['object'], > > > $res['objectType'], 'tiki_p_forum_read')) { > > + > > $ret["items"]["posts"]["list"][$count]["href"] > > > + = > > "tiki-view_forum_thread.php?forumId=" . $res["object"] . > > > "&comments_parentId="; + if > > ($res["parentId"]) { > > > + > > $ret["items"]["posts"]["list"][$count]["href"].=$res["parentId"].'#th > > >readId'.$res['threadId']; + } else { > > + > > $ret["items"]["posts"]["list"][$count]["href"].=$res["threadId"]; > > > + } > > + > > $ret["items"]["posts"]["list"][$count]["title"] = > > > $tikilib->get_short_datetime($res["commentDate"]) ." ". tra("by") ." > > ". > > > $res["userName"]; + > > $ret["items"]["posts"]["list"][$count]["label"] = > > > $res["title"]; + ++$count; > > + } > > + } > > + $ret["items"]["posts"]["count"] = $count; > > + } > > + > > + > > + > > //////////////////////////////////////////////////////////////////////// > / > > > + // WIKI PAGES > > + if ($prefs['feature_wiki'] == 'y') { > > + // && $tikilib->getOne("select count(*) from > > `tiki_pages` where > > > `lastModif`>?",array((int)$last))!=0) { + > > $ret["items"]["pages"]["label"] > > > = tra("wiki pages changed"); > > + $ret["items"]["pages"]["cname"] = "slv_pages_menu"; > > + $query = "select `pageName`, `user`, `lastModif` from > > `tiki_pages` > > > where `lastModif`>? order by `lastModif` desc"; + $result > > = > > > $tikilib->query($query, array((int)$last)); > > + > > + $count = 0; > > + while ($res = $result->fetchRow()) { > > + if > > ($userlib->user_has_perm_on_object($user,$res['pageName'], 'wiki > > > page', 'tiki_p_view')) { > > + > > $ret["items"]["pages"]["list"][$count]["href"] = > > > "tiki-index.php?page=" . urlencode($res["pageName"]); > > + > > $ret["items"]["pages"]["list"][$count]["title"] = > > > $tikilib->get_short_datetime($res["lastModif"]) ." ". tra("by") ." ". > > $res["user"]; + > > $ret["items"]["pages"]["list"][$count]["label"] = > > > $res["pageName"]; + $count++; > > + } > > + } > > + $ret["items"]["pages"]["count"] = $count; > > + } > > + > > + > > + > > //////////////////////////////////////////////////////////////////////// > / > > > + // ARTICLES > > + if ($prefs['feature_articles'] == 'y' ) { > > + $ret["items"]["articles"]["label"] = tra("new > > articles"); > > > + $ret["items"]["articles"]["cname"] = > > "slv_articles_menu"; > > > + > > + if($userlib->user_has_permission($user, > > "tiki_p_edit_article")) { > > > + $query = "select > > `articleId`,`title`,`publishDate`,`authorName` from > > > `tiki_articles` where `created`>? and `expireDate`>?"; + > > $bindvars = > > > array((int)$last,time()); > > + } else { > > + $query = "select > > `articleId`,`title`,`publishDate`,`authorName` from > > > `tiki_articles` where `publishDate`>? and `publishDate`<=? and > > `expireDate`>?"; + $bindvars = > > array((int)$last,time(),time()); > > > + } > > + $result = $tikilib->query($query, $bindvars); > > + > > + $count = 0; > > + while ($res = $result->fetchRow()) { > > + if > > ($userlib->user_has_perm_on_object($user,$res['articleId'], > > > 'article', 'tiki_p_read_article')) { > > + > > $ret["items"]["articles"]["list"][$count]["href"] = > > > "tiki-read_article.php?articleId=" . $res["articleId"]; > > + > > $ret["items"]["articles"]["list"][$count]["title"] = > > > $tikilib->get_short_datetime($res["publishDate"]) ." ". tra("by") ." > > ". > > > $res["authorName"]; + > > $ret["items"]["articles"]["list"][$count]["label"] > > > = $res["title"]; + $count++; > > + } > > + } > > + $ret["items"]["articles"]["count"] = $count; > > + } > > + > > + > > + > > //////////////////////////////////////////////////////////////////////// > / > > > + // FAQs > > + if ($prefs['feature_faqs'] == 'y') { > > + $ret["items"]["faqs"]["label"] = tra("new FAQs"); > > + $ret["items"]["faqs"]["cname"] = "slv_faqs_menu"; > > + > > + $query = "select `faqId`, `title`, `created` from > > `tiki_faqs` where > > > `created`>? order by `created` desc"; + $result = > > $tikilib->query($query, > > > array((int)$last)); > > + > > + $count = 0; > > + while ($res = $result->fetchRow()) { > > + if > > ($userlib->user_has_perm_on_object($user,$res['faqId'], 'faq', > > > 'tiki_p_view_faq')) { + > > $ret["items"]["faqs"]["list"][$count]["href"] = > > > "tiki-view_faq.php?faqId=" . $res["faqId"]; > > + > > $ret["items"]["faqs"]["list"][$count]["title"] = > > > $tikilib->get_short_datetime($res["created"]); > > + > > $ret["items"]["faqs"]["list"][$count]["label"] = $res["title"]; > > > + $count++; > > + } > > + } > > + $ret["items"]["faqs"]["count"] = $count; > > + } > > + > > + > > + > > //////////////////////////////////////////////////////////////////////// > / > > > + // BLOGS > > + if ($prefs['feature_blogs'] == 'y') { > > + $ret["items"]["blogs"]["label"] = tra("new blogs"); > > + $ret["items"]["blogs"]["cname"] = "slv_blogs_menu"; > > + > > + $query = "select `blogId`, `title`, `user`, `created` > > from `tiki_blogs` > > > where `created`>? order by `created` desc"; + $result = > > $tikilib->query($query, array((int)$last)); > > + > > + $count = 0; > > + while ($res = $result->fetchRow()) { > > + if > > ($userlib->user_has_perm_on_object($user,$res['blogId'], 'blog', > > > 'tiki_p_read_blog')) { + > > $ret["items"]["blogs"]["list"][$count]["href"] > > > = "tiki-view_blog.php?blogId=" . $res["blogId"]; > > + > > $ret["items"]["blogs"]["list"][$count]["title"] = > > > $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". > > $res["user"]; + > > $ret["items"]["blogs"]["list"][$count]["label"] = > > > $res["title"]; + $count++; > > + } > > + } > > + > > + $ret["items"]["blogs"]["count"] = $count; > > + > > + $ret["items"]["blogPosts"]["label"] = tra("new blog > > posts"); > > > + $ret["items"]["blogPosts"]["cname"] = > > "slv_blogPosts_menu"; > > > + > > + $query = "select `postId`, `blogId`, `title`, `user`, > > `created` from > > > `tiki_blog_posts` where `created`>? order by `created` desc"; + > > $result = > > > $tikilib->query($query, array((int)$last)); > > + > > + $count = 0; > > + while ($res = $result->fetchRow()) { > > + if > > ($userlib->user_has_perm_on_object($user,$res['blogId'], 'blog', > > > 'tiki_p_read_blog')) { > > + > > $ret["items"]["blogPosts"]["list"][$count]["href"] = > > > "tiki-view_blog_post.php?blogId=" . $res["blogId"] . "&postId=" . > > $res["postId"]; + > > $ret["items"]["blogPosts"]["list"][$count]["title"] = > > > $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". > > $res["user"]; + > > $ret["items"]["blogPosts"]["list"][$count]["label"] = > > > $res["title"]; + $count++; > > + } > > + } > > + $ret["items"]["blogPosts"]["count"] = $count; > > + } > > + > > + > > + > > //////////////////////////////////////////////////////////////////////// > / > > > + // IMAGE GALLERIES > > + if ($prefs['feature_galleries'] == 'y') { > > + // image galleries > > + $ret["items"]["imageGalleries"]["label"] = tra("new > > image galleries"); > > > + $ret["items"]["imageGalleries"]["cname"] = > > "slv_imageGalleries_menu"; > > > + $query = "select `galleryId`,`name`,`created`,`user` > > from > > > `tiki_galleries` where `created`>? order by `created` desc"; + > > $result = > > > $tikilib->query($query, array((int)$last)); > > + > > + $count = 0; > > + while ($res = $result->fetchRow()) { > > + if > > ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'image > > > gallery', 'tiki_p_view_image_gallery')) { > > + > > $ret["items"]["imageGalleries"]["list"][$count]["href"] = > > > "tiki-browse_gallery.php?galleryId=" . $res["galleryId"]; > > + > > $ret["items"]["imageGalleries"]["list"][$count]["title"] = > > > $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". > > $res["user"]; + > > $ret["items"]["imageGalleries"]["list"][$count]["label"] > > > = $res["name"]; + $count++; > > + } > > + } > > + $ret["items"]["imageGalleries"]["count"] = $count; > > + > > + // images > > + $ret["items"]["images"]["label"] = tra("new images"); > > + $ret["items"]["images"]["cname"] = "slv_images_menu"; > > + $query = "select > > `imageId`,`galleryId`,`name`,`created`,`user` from > > > `tiki_images` where `created`>? order by `created` desc"; + > > $result = > > > $tikilib->query($query, array((int)$last)); > > + > > + $count = 0; > > + while ($res = $result->fetchRow()) { > > + if > > ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'image > > > gallery', 'tiki_p_view_image_gallery')) { > > + > > $ret["items"]["images"]["list"][$count]["href"] = > > > "tiki-browse_image.php?galleryId=" . $res["galleryId"]. "&imageId=" > > .$res["imageId"]; + > > $ret["items"]["images"]["list"][$count]["title"] = > > > $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". > > $res["user"]; + > > $ret["items"]["images"]["list"][$count]["label"] = > > > $res["name"]; + $count++; > > + } > > + } > > + $ret["items"]["images"]["count"] = $count; > > + } > > + > > + > > + > > //////////////////////////////////////////////////////////////////////// > / > > > + // FILE GALLERIES > > + if ($prefs['feature_file_galleries'] == 'y') { > > + // file galleries > > + $ret["items"]["fileGalleries"]["label"] = tra("new file > > galleries"); > > > + $ret["items"]["fileGalleries"]["cname"] = > > "slv_fileGalleries_menu"; > > > + $query = "select `galleryId`,`name`,`created`,`user` > > from > > > `tiki_file_galleries` where `created`>? order by `created` desc"; > > + $result = $tikilib->query($query, array((int)$last)); > > + > > + $count = 0; > > + while ($res = $result->fetchRow()) { > > + if > > ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'file > > > gallery', 'tiki_p_view_file_gallery')) { > > + > > $ret["items"]["fileGalleries"]["list"][$count]["href"] = > > > "tiki-list_file_gallery.php?galleryId=" . $res["galleryId"]; > > + > > $ret["items"]["fileGalleries"]["list"][$count]["title"] = > > > $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". > > $res["user"]; + > > $ret["items"]["fileGalleries"]["list"][$count]["label"] > > > = $res["name"]; + $count++; > > + } > > + } > > + $ret["items"]["fileGalleries"]["count"] = $count; > > + > > + // files > > + $ret["items"]["files"]["label"] = tra("new files"); > > + $ret["items"]["files"]["cname"] = "slv_files_menu"; > > + $query = "select > > `galleryId`,`name`,`filename`,`created`,`user` from > > > `tiki_files` where `created`>? order by `created` desc"; + > > $result = > > > $tikilib->query($query, array((int)$last)); > > + > > + $count = 0; > > + while ($res = $result->fetchRow()) { > > + if > > ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'file > > > gallery', 'tiki_p_view_file_gallery')) { > > + > > $ret["items"]["files"]["list"][$count]["href"] = > > > "tiki-list_file_gallery.php?galleryId=" . $res["galleryId"]; > > + > > $ret["items"]["files"]["list"][$count]["title"] = > > > $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". > > $res["user"]; + > > $ret["items"]["files"]["list"][$count]["label"] = > > > $res["name"]. " (".$res["filename"].")"; + > > $count++; > > > + } > > + } > > + $ret["items"]["files"]["count"] = $count; > > + } > > + > > + > > + > > //////////////////////////////////////////////////////////////////////// > / > > > + // POLLS > > + if ($prefs['feature_polls'] == 'y') { > > + $ret["items"]["polls"]["label"] = tra("new polls"); > > + $ret["items"]["polls"]["cname"] = "slv_polls_menu"; > > + > > + $query = "select `pollId`, `title`, `publishDate` from > > `tiki_polls` > > > where `publishDate`>? order by `publishDate` desc"; + $result > > = > > > $tikilib->query($query, array((int)$last)); > > + > > + $count = 0; > > + while ($res = $result->fetchRow()) { > > + $ret["items"]["polls"]["list"][$count]["href"] > > = > > > "tiki-poll_results.php?pollId=" . $res["pollId"]; > > + $ret["items"]["polls"]["list"][$count]["title"] > > = > > > $tikilib->get_short_datetime($res["publishDate"]); > > + $ret["items"]["polls"]["list"][$count]["label"] > > = $res["title"]; > > > + $count++; > > + } > > + $ret["items"]["polls"]["count"] = $count; > > + } > > + > > + > > + > > //////////////////////////////////////////////////////////////////////// > / > > > + // NEW USERS > > + $ret["items"]["users"]["label"] = tra("new users"); > > + $ret["items"]["users"]["cname"] = "slv_users_menu"; > > + $query = "select `login`, `registrationDate` from `users_users` > > where > > > `registrationDate`>?"; + $result = $tikilib->query($query, > > array((int)$last)); > > + > > + $count = 0; > > + $slv_tmp_href = $userlib->user_has_permission($user, > > "tiki_p_admin") ? > > > "tiki-assignuser.php?assign_user=" : > > "tiki-user_information.php?view_user="; + while ($res = > > $result->fetchRow()) { > > + $ret["items"]["users"]["list"][$count]["href"] = > > $slv_tmp_href . > > > $res["login"]; + > > $ret["items"]["users"]["list"][$count]["title"] = > > > $tikilib->get_short_datetime($res["registrationDate"]); > > + $ret["items"]["users"]["list"][$count]["label"] = > > $res["login"]; > > > + $count++; > > + } > > + $ret["items"]["users"]["count"] = $count; > > + > > + > > + if ($prefs['feature_trackers'] == 'y') { > > + > > //////////////////////////////////////////////////////////////////////// > / > > > + // NEW TRACKER ITEMS > > + $ret["items"]["trackers"]["label"] = tra("new tracker > > items"); > > > + $ret["items"]["trackers"]["cname"] = > > "slv_trackers_menu"; > > > + > > + $query = "select `itemId`, `trackerId`, `created`, > > `lastModif` from > > > `tiki_tracker_items` where `created`>? order by `created` desc"; + > > $result > > > = $tikilib->query($query, array((int)$last)); > > + > > + $count = 0; > > + $counta = array(); > > + $tracker_name = array(); > > + global $cachelib; > > + require_once('lib/cache/cachelib.php'); > > + while ($res = $result->fetchRow()) { > > + if > > ($userlib->user_has_perm_on_object($user,$res['trackerId'], > > > 'tracker', 'tiki_p_view_trackers')) { + > > // Initialize tracker counter if > > > needed. > > + if (!isset($counta[$res['trackerId']])) > > $counta[$res['trackerId']] = > > > 0; + > > + // Pull Tracker Name > > + if > > (!isset($tracker_name[$res['trackerId']])) { > > > + $query = "select `name` from > > `tiki_trackers` where `trackerId` = ?"; > > > + $tracker_name[$res['trackerId']] > > = $tikilib->getOne($query, > > > $res['trackerId']); + } > > + > > + > > $ret["items"]["trackers"]["tid"][$res['trackerId']]["label"] = tra("in > > > " . $tracker_name[$res["trackerId"]]); > > + > > $ret["items"]["trackers"]["tid"][$res['trackerId']]["cname"] = > > > "slv_tracker" . $res["trackerId"] . "_menu"; > > + > > $ret["items"]["trackers"]["tid"][$res['trackerId']]["list"][$counta[$r > > >es['trackerId']]]["href"] = "tiki-view_tracker_item.php?itemId=" . > > $res["itemId"]; > > + > > $ret["items"]["trackers"]["tid"][$res['trackerId']]["list"][$counta[$r > > >es['trackerId']]]["title"] = > > $tikilib->get_short_datetime($res["created"]); > > > + > > + // routine to verify field in tracker > > that's used as label > > > + $cacheKey = > > 'trackerItemLabel'.$res['itemId']; > > > + if (!$cachelib->isCached($cacheKey)) { > > + $query = "select `fieldId` from > > `tiki_tracker_fields` where `isMain` > > > = ? and `trackerId` = ? order by `position`"; + > > $fieldId = > > > $tikilib->getOne($query, array('y',$res['trackerId'])); + > > $query = > > > "select `value` from `tiki_tracker_item_fields` where `fieldId` = ? > > and > > > `itemId` = ?"; + $label = > > $tikilib->getOne($query, > > > array($fieldId,$res['itemId'])); + > > + $cachelib->cacheItem($cacheKey, > > $label); > > > + } else { > > + $label = > > $cachelib->getCached($cacheKey); > > > + } > > + > > + // If the label is empty (b:0;), then > > use the item ID > > > + if ($label == 'b:0;' || $label == '') { > > + $label = "Trk i" . > > $res['trackerId'] . " - ID: " . $res['itemId']; > > > + } > > + > > $ret["items"]["trackers"]["tid"][$res['trackerId']]["list"][$counta[$r > > >es['trackerId']]]["label"] = $label; + > > $counta[$res['trackerId']]++; > > > + > > $ret["items"]["trackers"]["tid"][$res['trackerId']]["count"] = > > > $counta[$res['trackerId']]; + > > $count++; > > > + } > > + } > > + $ret["items"]["trackers"]["count"] = $count; > > + > > + > > + > > //////////////////////////////////////////////////////////////////////// > / > > > + // UPDATED TRACKER ITEMS - ignore updates on same day as > > creation > > > + $ret["items"]["utrackers"]["label"] = tra("updated > > tracker items"); > > > + $ret["items"]["utrackers"]["cname"] = > > "slv_utrackers_menu"; > > > + > > + $query = "select `itemId`, `trackerId`, `created`, > > `lastModif` from > > > `tiki_tracker_items` where `lastModif`>? and `lastModif`!=`created` > > order > > > by `lastModif` desc"; + $result = > > $tikilib->query($query, > > > array((int)$last)); > > + > > + $count = 0; > > + $countb = array(); > > + global $cachelib; > > + require_once('lib/cache/cachelib.php'); > > + while ($res = $result->fetchRow()) { > > + if > > ($userlib->user_has_perm_on_object($user,$res['trackerId'], > > > 'tracker', 'tiki_p_view_trackers')) { + > > // Initialize tracker counter if > > > needed. > > + if (!isset($countb[$res['trackerId']])) > > $countb[$res['trackerId']] = > > > 0; + > > + // Pull Tracker Name > > + if > > (!isset($tracker_name[$res['trackerId']])) { > > > + $query = "select `name` from > > `tiki_trackers` where `trackerId` = ?"; > > > + $tracker_name[$res['trackerId']] > > = $tikilib->getOne($query, > > > $res['trackerId']); + } > > + > > + > > $ret["items"]["utrackers"]["tid"][$res['trackerId']]["label"] = > > > tra("in " . $tracker_name[$res["trackerId"]]); > > + > > $ret["items"]["utrackers"]["tid"][$res['trackerId']]["cname"] = > > > "slv_utracker" . $res["trackerId"] . "_menu"; > > + > > $ret["items"]["utrackers"]["tid"][$res['trackerId']]["list"][$countb[$ > > >res['trackerId']]]["href"] = "tiki-view_tracker_item.php?itemId=" . > > $res["itemId"]; > > + > > $ret["items"]["utrackers"]["tid"][$res['trackerId']]["list"][$countb[$ > > >res['trackerId']]]["title"] = > > $tikilib->get_short_datetime($res["lastModif"]); + > > + // routine to verify field in tracker > > that's used as label > > > + $cacheKey = > > 'trackerItemLabel'.$res['itemId']; > > > + if (!$cachelib->isCached($cacheKey)) { > > + $query = "select `fieldId` from > > `tiki_tracker_fields` where `isMain` > > > = ? and `trackerId` = ? order by `position`"; + > > $fieldId = > > > $tikilib->getOne($query, array('y',$res['trackerId'])); + > > $query = > > > "select `value` from `tiki_tracker_item_fields` where `fieldId` = ? > > and > > > `itemId` = ?"; + $label = > > $tikilib->getOne($query, > > > array($fieldId,$res['itemId'])); + > > + $cachelib->cacheItem($cacheKey, > > $label); > > > + } else { > > + $label = > > $cachelib->getCached($cacheKey); > > > + } > > + > > + // If the label is empty (b:0;), then > > use the item ID > > > + if ($label == 'b:0;' || $label == '') { > > + $label = "Trk i" . > > $res['trackerId'] . " - ID: " . $res['itemId']; > > > + } > > + > > $ret["items"]["utrackers"]["tid"][$res['trackerId']]["list"][$countb[$ > > >res['trackerId']]]["label"] = $label; + > > $countb[$res['trackerId']]++; > > > + > > $ret["items"]["utrackers"]["tid"][$res['trackerId']]["count"] = > > > $countb[$res['trackerId']]; + > > $count++; > > > + } > > + } > > + $ret["items"]["utrackers"]["count"] = $count; > > + } > > + > > + > > + > > + > > //////////////////////////////////////////////////////////////////////// > / > > >/ + // SUMMARY > > + //get the total of itemss > > + $ret["cant"] = 0; > > + foreach ($ret["items"] as $item) { > > + $ret["cant"] += $item["count"]; > > +} > > + > > + return $ret; > > +} > > +} > > + > > +$slv_info = since_last_visit2($user, $module_params); > > +$smarty->assign('slv_info', $slv_info); > > +$smarty->assign('nonums', isset($module_params["nonums"]) ? > > $module_params["noms"] : 'n'); + > > +?> > > > > Added: trunk/templates/modules/mod-since_last_visit2.tpl > > =================================================================== > > --- trunk/templates/modules/mod-since_last_visit2.tpl > > > > (rev 0) +++ trunk/templates/modules/mod-since_last_visit2.tpl > > 2008-07-29 > > > 23:44:56 UTC (rev 13954) @@ -0,0 +1,84 @@ > > +{* > > + * MOD-SINCE_LAST_VISIT2 > > + * Template for the module based off of since_last_visit_new. > > + * More or less the same as SLVN, except separates new entries from > > updates + * in some system areas, and breaks trackers into individual > > trackers. Use + * whichever meets your needs. > > + *} > > +{if $user} > > + {assign var=module_title value=$slv_info.label} > > + {tikimodule title="$module_title" name="since_last_visit2" > > flip=$module_params.flip decorations=$module_params.decorations} + > > <div > > > style="margin-bottom: 5px; text-align:center;"> > > + {if $prefs.feature_calendar eq 'y'} > > + <a class="linkmodule" > > href="tiki-calendar.php?todate={$slv_info.lastLogin}" title="{tr}click > > to > > > edit{/tr}"> + {/if} > > + <b>{$slv_info.lastLogin|tiki_short_date}</b> > > + {if $prefs.feature_calendar eq 'y'} > > + </a> > > + {/if} > > + </div> > > + {if $slv_info.cant == 0} > > + <div class="separator">{tr}Nothing has > > changed{/tr}</div> > > > + {else} > > + {foreach key=pos item=slv_item from=$slv_info.items} > > + {if $slv_item.count > 0 } > > + {assign var=cname value=$slv_item.cname} > > + <div class="separator"><a > > class="separator" > > href="javascript:flip('{$cname}');">{$slv_item.count} {$slv_item.la > bel > > >}</a></div> + {assign var=showcname > > value=show_$cname} > > > + > > + {if $pos eq 'trackers' or $pos eq 'utrackers'} > > + <div id="{$cname}" > > style="display:{if !isset($cookie.$showcname) or > > > $cookie.$showcname eq 'y'}block{else}none{/if};"> + > > + {****** Parse out the trackers *****} > > + {foreach key=tp item=tracker > > from=$slv_item.tid} > > > + {assign var=tcname > > value=$tracker.cname} > > > + <div class="separator" > > style="margin-left: 10px; display:{if > > > !isset($cookie.$showcname) or $cookie.$showcname eq > > 'y'}block{else}none{/if};"> + > > {assign var=showtcname > > > value=show_$tcname} > > + <a > > class="separator" > > href="javascript:flip('{$tcname}');">{$tracker.count} {$tracker.lab > el} > > ></a> + <div > > id="{$tcname}" style="display:{if > > > !isset($cookie.$showtcname) or $cookie.$showtcname eq > > 'y'}block{else}none{/if};"> + > > <table cellpadding="0" > > > cellspacing="0"> > > + {section > > name=xx loop=$tracker.list} > > > + > > <tr class="module"> > > > + > > <td width="10" /> > > > + > > <td width="20" align="right" > > > class="module"> {$smarty.section.xx.index_next})</td> + > > <td> > > > + > > <a class="linkmodule" > > > + > > href="{$tracker.list[xx].href|escape}" > > > + > > title="{$tracker.list[xx].title|escape}">{if > > > $tracker.list[xx].label == > > ''}-{else}{$tracker.list[xx].label|escape}{/if} > > > + > > </a> > > > + > > </td> > > > + > > </tr> > > > + > > {/section} > > > + </table> > > + </div> > > + </div> > > + {/foreach} > > + {****** End tracker section *****} > > + </div> > > + > > + {else} > > + <div id="{$cname}" > > style="display:{if !isset($cookie.$showcname) or > > > $cookie.$showcname eq 'y'}block{else}none{/if};"> + > > <table > > > cellpadding="0" cellspacing="0"> > > + {section name=ix > > loop=$slv_item.list} > > > + <tr > > class="module"> > > > + <td > > width="10" /> > > > + <td > > width="20" align="right" > > > class="module">{$smarty.section.ix.index_next})</td> + > > <td> > > > + > > <a class="linkmodule" > > > + > > href="{$slv_item.list[ix].href|escape}" > > > + > > title="{$slv_item.list[ix].title|escape}"> > > > + > > {if $slv_item.list[ix].label == > > > ''}-{else}{$slv_item.list[ix].label|escape}{/if} + > > </a> > > > + </td> > > + </tr> > > + {/section} > > + </table> > > + </div> > > + {/if} > > + {/if} > > + {/foreach} > > + {/if} > > + {* <div style="color:#aaaaaa; text-align:right; font-size:8px; > > margin-bottom: 0;">SLV{$slv_info.version}</div> *} + {/tikimodule} > > +{/if} > > + > > > > > > This was sent by the SourceForge.net collaborative development > > platform, > > > the world's largest Open Source development site. > > ------------------------------------------------------------------------ > - > > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > challenge Build the coolest Linux based applications with Moblin SDK & > > win > > > great prizes Grand prize is a trip for two to an Open Source event > > anywhere > > > in the world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > > _______________________________________________ > > Tikiwiki-cvs mailing list > > Tik...@li... > > https://lists.sourceforge.net/lists/listinfo/tikiwiki-cvs |
From: <lph...@us...> - 2008-07-30 14:19:45
|
Revision: 13964 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=13964&view=rev Author: lphuberdeau Date: 2008-07-30 14:19:43 +0000 (Wed, 30 Jul 2008) Log Message: ----------- [MRG] Automatic merge, branches/2.0 13914 to 13963 Modified Paths: -------------- trunk/db/tiki-secdb_2.0_mysql.sql trunk/lang/pt-br/language.php trunk/lib/HTMLPurifier/AttrCollections.php trunk/lib/HTMLPurifier/AttrDef/CSS/Background.php trunk/lib/HTMLPurifier/AttrDef/CSS/BackgroundPosition.php trunk/lib/HTMLPurifier/AttrDef/CSS/Border.php trunk/lib/HTMLPurifier/AttrDef/CSS/Color.php trunk/lib/HTMLPurifier/AttrDef/CSS/Composite.php trunk/lib/HTMLPurifier/AttrDef/CSS/Font.php trunk/lib/HTMLPurifier/AttrDef/CSS/FontFamily.php trunk/lib/HTMLPurifier/AttrDef/CSS/Length.php trunk/lib/HTMLPurifier/AttrDef/CSS/ListStyle.php trunk/lib/HTMLPurifier/AttrDef/CSS/Multiple.php trunk/lib/HTMLPurifier/AttrDef/CSS/Number.php trunk/lib/HTMLPurifier/AttrDef/CSS/Percentage.php trunk/lib/HTMLPurifier/AttrDef/CSS/TextDecoration.php trunk/lib/HTMLPurifier/AttrDef/CSS/URI.php trunk/lib/HTMLPurifier/AttrDef/CSS.php trunk/lib/HTMLPurifier/AttrDef/Enum.php trunk/lib/HTMLPurifier/AttrDef/HTML/Bool.php trunk/lib/HTMLPurifier/AttrDef/HTML/Color.php trunk/lib/HTMLPurifier/AttrDef/HTML/FrameTarget.php trunk/lib/HTMLPurifier/AttrDef/HTML/ID.php trunk/lib/HTMLPurifier/AttrDef/HTML/Length.php trunk/lib/HTMLPurifier/AttrDef/HTML/LinkTypes.php trunk/lib/HTMLPurifier/AttrDef/HTML/MultiLength.php trunk/lib/HTMLPurifier/AttrDef/HTML/Nmtokens.php trunk/lib/HTMLPurifier/AttrDef/HTML/Pixels.php trunk/lib/HTMLPurifier/AttrDef/Integer.php trunk/lib/HTMLPurifier/AttrDef/Lang.php trunk/lib/HTMLPurifier/AttrDef/Text.php trunk/lib/HTMLPurifier/AttrDef/URI/Email/SimpleCheck.php trunk/lib/HTMLPurifier/AttrDef/URI/Email.php trunk/lib/HTMLPurifier/AttrDef/URI/Host.php trunk/lib/HTMLPurifier/AttrDef/URI/IPv4.php trunk/lib/HTMLPurifier/AttrDef/URI/IPv6.php trunk/lib/HTMLPurifier/AttrDef/URI.php trunk/lib/HTMLPurifier/AttrDef.php trunk/lib/HTMLPurifier/AttrTransform/BdoDir.php trunk/lib/HTMLPurifier/AttrTransform/BgColor.php trunk/lib/HTMLPurifier/AttrTransform/BoolToCSS.php trunk/lib/HTMLPurifier/AttrTransform/Border.php trunk/lib/HTMLPurifier/AttrTransform/EnumToCSS.php trunk/lib/HTMLPurifier/AttrTransform/ImgRequired.php trunk/lib/HTMLPurifier/AttrTransform/ImgSpace.php trunk/lib/HTMLPurifier/AttrTransform/Lang.php trunk/lib/HTMLPurifier/AttrTransform/Length.php trunk/lib/HTMLPurifier/AttrTransform/Name.php trunk/lib/HTMLPurifier/AttrTransform.php trunk/lib/HTMLPurifier/AttrTypes.php trunk/lib/HTMLPurifier/AttrValidator.php trunk/lib/HTMLPurifier/CSSDefinition.php trunk/lib/HTMLPurifier/ChildDef/Chameleon.php trunk/lib/HTMLPurifier/ChildDef/Custom.php trunk/lib/HTMLPurifier/ChildDef/Empty.php trunk/lib/HTMLPurifier/ChildDef/Optional.php trunk/lib/HTMLPurifier/ChildDef/Required.php trunk/lib/HTMLPurifier/ChildDef/StrictBlockquote.php trunk/lib/HTMLPurifier/ChildDef/Table.php trunk/lib/HTMLPurifier/ChildDef.php trunk/lib/HTMLPurifier/Config.php trunk/lib/HTMLPurifier/ConfigDef/Directive.php trunk/lib/HTMLPurifier/ConfigDef/DirectiveAlias.php trunk/lib/HTMLPurifier/ConfigDef/Namespace.php trunk/lib/HTMLPurifier/ConfigDef.php trunk/lib/HTMLPurifier/ConfigSchema.php trunk/lib/HTMLPurifier/ContentSets.php trunk/lib/HTMLPurifier/Context.php trunk/lib/HTMLPurifier/Definition.php trunk/lib/HTMLPurifier/DefinitionCache/Decorator/Cleanup.php trunk/lib/HTMLPurifier/DefinitionCache/Decorator/Memory.php trunk/lib/HTMLPurifier/DefinitionCache/Decorator.php trunk/lib/HTMLPurifier/DefinitionCache/Null.php trunk/lib/HTMLPurifier/DefinitionCache/Serializer.php trunk/lib/HTMLPurifier/DefinitionCache.php trunk/lib/HTMLPurifier/DefinitionCacheFactory.php trunk/lib/HTMLPurifier/Doctype.php trunk/lib/HTMLPurifier/DoctypeRegistry.php trunk/lib/HTMLPurifier/ElementDef.php trunk/lib/HTMLPurifier/Encoder.php trunk/lib/HTMLPurifier/EntityLookup.php trunk/lib/HTMLPurifier/EntityParser.php trunk/lib/HTMLPurifier/Error.php trunk/lib/HTMLPurifier/ErrorCollector.php trunk/lib/HTMLPurifier/Filter/YouTube.php trunk/lib/HTMLPurifier/Filter.php trunk/lib/HTMLPurifier/Generator.php trunk/lib/HTMLPurifier/HTMLDefinition.php trunk/lib/HTMLPurifier/HTMLModule/Bdo.php trunk/lib/HTMLPurifier/HTMLModule/CommonAttributes.php trunk/lib/HTMLPurifier/HTMLModule/Edit.php trunk/lib/HTMLPurifier/HTMLModule/Hypertext.php trunk/lib/HTMLPurifier/HTMLModule/Image.php trunk/lib/HTMLPurifier/HTMLModule/Legacy.php trunk/lib/HTMLPurifier/HTMLModule/List.php trunk/lib/HTMLPurifier/HTMLModule/NonXMLCommonAttributes.php trunk/lib/HTMLPurifier/HTMLModule/Object.php trunk/lib/HTMLPurifier/HTMLModule/Presentation.php trunk/lib/HTMLPurifier/HTMLModule/Ruby.php trunk/lib/HTMLPurifier/HTMLModule/Scripting.php trunk/lib/HTMLPurifier/HTMLModule/StyleAttribute.php trunk/lib/HTMLPurifier/HTMLModule/Tables.php trunk/lib/HTMLPurifier/HTMLModule/Target.php trunk/lib/HTMLPurifier/HTMLModule/Text.php trunk/lib/HTMLPurifier/HTMLModule/Tidy/Proprietary.php trunk/lib/HTMLPurifier/HTMLModule/Tidy/XHTML.php trunk/lib/HTMLPurifier/HTMLModule/Tidy/XHTMLAndHTML4.php trunk/lib/HTMLPurifier/HTMLModule/Tidy.php trunk/lib/HTMLPurifier/HTMLModule/XMLCommonAttributes.php trunk/lib/HTMLPurifier/HTMLModule.php trunk/lib/HTMLPurifier/HTMLModuleManager.php trunk/lib/HTMLPurifier/IDAccumulator.php trunk/lib/HTMLPurifier/Injector/AutoParagraph.php trunk/lib/HTMLPurifier/Injector/Linkify.php trunk/lib/HTMLPurifier/Injector/PurifierLinkify.php trunk/lib/HTMLPurifier/Injector.php trunk/lib/HTMLPurifier/Language/classes/en-x-test.php trunk/lib/HTMLPurifier/Language/messages/en-x-test.php trunk/lib/HTMLPurifier/Language/messages/en.php trunk/lib/HTMLPurifier/Language.php trunk/lib/HTMLPurifier/LanguageFactory.php trunk/lib/HTMLPurifier/Lexer/DOMLex.php trunk/lib/HTMLPurifier/Lexer/DirectLex.php trunk/lib/HTMLPurifier/Lexer/PEARSax3.php trunk/lib/HTMLPurifier/Lexer.php trunk/lib/HTMLPurifier/PercentEncoder.php trunk/lib/HTMLPurifier/Printer/CSSDefinition.php trunk/lib/HTMLPurifier/Printer/ConfigForm.css trunk/lib/HTMLPurifier/Printer/ConfigForm.js trunk/lib/HTMLPurifier/Printer/ConfigForm.php trunk/lib/HTMLPurifier/Printer/HTMLDefinition.php trunk/lib/HTMLPurifier/Printer.php trunk/lib/HTMLPurifier/Strategy/Composite.php trunk/lib/HTMLPurifier/Strategy/Core.php trunk/lib/HTMLPurifier/Strategy/FixNesting.php trunk/lib/HTMLPurifier/Strategy/MakeWellFormed.php trunk/lib/HTMLPurifier/Strategy/RemoveForeignElements.php trunk/lib/HTMLPurifier/Strategy/ValidateAttributes.php trunk/lib/HTMLPurifier/Strategy.php trunk/lib/HTMLPurifier/TagTransform/Font.php trunk/lib/HTMLPurifier/TagTransform/Simple.php trunk/lib/HTMLPurifier/TagTransform.php trunk/lib/HTMLPurifier/Token.php trunk/lib/HTMLPurifier/TokenFactory.php trunk/lib/HTMLPurifier/URI.php trunk/lib/HTMLPurifier/URIDefinition.php trunk/lib/HTMLPurifier/URIFilter/DisableExternal.php trunk/lib/HTMLPurifier/URIFilter/DisableExternalResources.php trunk/lib/HTMLPurifier/URIFilter/HostBlacklist.php trunk/lib/HTMLPurifier/URIFilter/MakeAbsolute.php trunk/lib/HTMLPurifier/URIFilter.php trunk/lib/HTMLPurifier/URIParser.php trunk/lib/HTMLPurifier/URIScheme/ftp.php trunk/lib/HTMLPurifier/URIScheme/http.php trunk/lib/HTMLPurifier/URIScheme/https.php trunk/lib/HTMLPurifier/URIScheme/mailto.php trunk/lib/HTMLPurifier/URIScheme/news.php trunk/lib/HTMLPurifier/URIScheme/nntp.php trunk/lib/HTMLPurifier/URIScheme.php trunk/lib/HTMLPurifier/URISchemeRegistry.php trunk/lib/HTMLPurifier.php trunk/lib/setup/twversion.class.php trunk/lib/smarty_tiki/modifier.explode.php trunk/lib/tikilib.php trunk/templates/pagehistory.tpl trunk/templates/tiki-calendar_nav.tpl trunk/templates/tiki-editpage.tpl trunk/templates/tiki-user_menu.tpl trunk/tiki-calendar.php trunk/tiki-calendars_rss.php trunk/tiki-editpage.php trunk/tiki-install.php trunk/tiki-setup_base.php Added Paths: ----------- trunk/lib/HTMLPurifier/AttrDef/CSS/DenyElementDecorator.php trunk/lib/HTMLPurifier/AttrDef/Switch.php trunk/lib/HTMLPurifier/DefinitionCache/Serializer/ trunk/lib/HTMLPurifier/DefinitionCache/Serializer/CSS/ trunk/lib/HTMLPurifier/DefinitionCache/Serializer/HTML/ trunk/lib/HTMLPurifier/DefinitionCache/Serializer/Test/ trunk/lib/HTMLPurifier/DefinitionCache/Serializer/URI/ trunk/lib/HTMLPurifier/Language/messages/en-x-testmini.php trunk/lib/HTMLPurifier/Length.php trunk/lib/HTMLPurifier/UnitConverter.php trunk/lib/setup/sanitization.php Removed Paths: ------------- trunk/lib/HTMLPurifier/DefinitionCache/Serializer/CSS/ trunk/lib/HTMLPurifier/DefinitionCache/Serializer/HTML/ trunk/lib/HTMLPurifier/DefinitionCache/Serializer/Test/ trunk/lib/HTMLPurifier/DefinitionCache/Serializer/URI/ Modified: trunk/db/tiki-secdb_2.0_mysql.sql =================================================================== --- trunk/db/tiki-secdb_2.0_mysql.sql 2008-07-30 13:56:56 UTC (rev 13963) +++ trunk/db/tiki-secdb_2.0_mysql.sql 2008-07-30 14:19:43 UTC (rev 13964) @@ -1,2034 +1,2078 @@ -DELETE FROM tiki_secdb WHERE tiki_version = '2.0RC2'; +DELETE FROM `tiki_secdb` WHERE `tiki_version` = '2.0RC3'; -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES -('fab2588a046522a85149b2d5b8e2e2c0', './db/index.php', '2.0RC2', 0), -('ff3e4a668ea84b79decd9f7dc641c46d', './db/oracle/index.php', '2.0RC2', 0), -('acce8338f0537cb5a292aa2f33484750', './db/convertscripts/mysql3tosqlite.php', '2.0RC2', 0), -('96f9345583603f8333a48e86efdc1716', './db/convertscripts/mysql3tooci8.php', '2.0RC2', 0), -('c1cdd5b40f66fd478fd4aef6f3c37891', './db/convertscripts/mysql3tosybase.php', '2.0RC2', 0), -('981226b2822bdbc810cf839f969bc6c3', './db/convertscripts/mysql3topgsql72.php', '2.0RC2', 0), -('b84d0e93b84ee54b3ec2c01a3edb9ec8', './db/convertscripts/index.php', '2.0RC2', 0), -('758fe7e1b2d65e5e201ac82cf0dfc032', './db/case_patch.php', '2.0RC2', 0), -('b84d0e93b84ee54b3ec2c01a3edb9ec8', './db/profiles/index.php', '2.0RC2', 0), -('9a710ba0ff1a932e2a7e713428569e4c', './db/tiki-db.php', '2.0RC2', 0), -('9959b81fff4b39e86f328c598b572e3b', './tiki-wiki3d.php', '2.0RC2', 0), -('ec75c5fa3f718c640767be649417a5b7', './bin/index.php', '2.0RC2', 0), -('98b156560ae47141e5f06afb531787ca', './doc/index.php', '2.0RC2', 0), -('642192a280220fb484477817d0fd4afa', './doc/devtools/tiki-show_raw_links.php', '2.0RC2', 0), -('d5f98e6c1ffeb11e9724212e130c51a2', './doc/devtools/tiki-create_md5.php', '2.0RC2', 0), -('ca6989660ea083dbcdec83c93138ca8e', './doc/devtools/fckpackager.php', '2.0RC2', 0), -('5f712f151c33cd66a8096ef73a11412b', './doc/devtools/convert_templates_prefs-1.10.php', '2.0RC2', 0), -('a2102e195d7b845fe3aec9184da4ca1c', './doc/devtools/extract-img-db-to-fs.php', '2.0RC2', 0), -('3514b40bf6f4151f3b19c05bb84d82b9', './doc/devtools/restorehelp.php', '2.0RC2', 0), -('84545819812b922d3463c53f0ecdba9f', './doc/devtools/search_smarty_prefs-1.10.php', '2.0RC2', 0), -('993788daae4188dc07ff036874f7970e', './doc/devtools/index.php', '2.0RC2', 0), -('a7855a353c3c38f68f769f06f334afd4', './doc/devtools/sync.php', '2.0RC2', 0), -('2c450afc683c36483abc8e9e4ea2e999', './doc/devtools/securitycheck.php', '2.0RC2', 0), -('da8a55568ec35d0130d764a5976a0f94', './doc/devtools/usergeo.php', '2.0RC2', 0), -('3bd515c5bd89e945caf9e08b59fe7619', './doc/devtools/ggg-trace.php', '2.0RC2', 0), -('b9c6185e71811671e4549264502b82bb', './doc/devtools/cleanCatTrackers.php', '2.0RC2', 0), -('112a6d18e92b63c6463a3db8ed5d8c2e', './doc/devtools/parse_tiki.php', '2.0RC2', 0), -('e4f65c095b094f9bd60a11c191b95a68', './img/icn/index.php', '2.0RC2', 0), -('67a447e1617b272089af7a2e84855ad8', './img/tiki/index.php', '2.0RC2', 0), -('7d8390e7c547041a7161901a690ba2ac', './img/wiki/index.php', '2.0RC2', 0), -('2906db7e1abbd5c3ed3ecc2d191685d0', './img/flags/flagnames.php', '2.0RC2', 0), -('22bf51530fb705aa22e1f2b3ecbf39b7', './img/flags/index.php', '2.0RC2', 0), -('1f7dfd42b8552677a3853a2bf7a6ddac', './img/icons/index.php', '2.0RC2', 0), -('f1f841fad35e53602411a0d298640463', './img/custom/index.php', '2.0RC2', 0), -('62e1f5586a189d6157828d7b50300ab9', './img/icons2/index.php', '2.0RC2', 0), -('b8f39d8cc7ec125c12c27429dbdb1221', './img/index.php', '2.0RC2', 0), -('a81ec8f70e6bfb91f04a00f8dd3d547d', './img/mytiki/index.php', '2.0RC2', 0), -('9049496e6ffb5220b37c9c244db6702a', './img/smiles/index.php', '2.0RC2', 0), -('cf8a1a166b85563dc538483b4405e0b7', './img/webmail/index.php', '2.0RC2', 0), -('72349be9d8730e019f32349f18118c71', './img/avatars/index.php', '2.0RC2', 0), -('7ae15492ff707ed43c42291f56a217c6', './img/wiki_up/index.php', '2.0RC2', 0), -('5e5b4d8ee5db315ac0d36ab197a9414b', './img/trackers/index.php', '2.0RC2', 0), -('bfc3faa37b498df6e03beb1e301d2f93', './lib/x/index.php', '2.0RC2', 0), -('caafb52dbf89c488a97d61fbed231827', './lib/db/tikitable.php', '2.0RC2', 0), -('0184c887eada64d4bd7a662f0cd45da2', './lib/db/tiki_registration_fields.php', '2.0RC2', 0), -('8ee79fe4c9705c61dc526156fc5d856f', './lib/ban/banlib.php', '2.0RC2', 0), -('1b3fdd97ecadb197e8806d3138c2ed6a', './lib/ban/index.php', '2.0RC2', 0), -('9935e69a1566b1a77e167151fb211f91', './lib/dcs/index.php', '2.0RC2', 0), -('17d66419d1ff042d5e1cf4a7e90a18d0', './lib/dcs/dcslib.php', '2.0RC2', 0), -('4e68e7ecd35a6180a2764c7582423c01', './lib/map/maplib.php', '2.0RC2', 0), -('a734127180dc0cbf6cf89b0244d158c4', './lib/map/usermap.php', '2.0RC2', 0), -('00702d2837ee02790d3878f671b754b5', './lib/map/index.php', '2.0RC2', 0), -('a7104f11673caa4f289d88ac6b87de5c', './lib/map/map_query.php', '2.0RC2', 0), -('6010daf30b5f81776e33fab0bd616822', './lib/rss/rsslib.php', '2.0RC2', 0), -('32d7ae7cc42abdc99ebf7adefb4fb00d', './lib/rss/index.php', '2.0RC2', 0), -('7d6cc4810cea3d9dbb3ba811c3bc12e7', './lib/ajax/xajaxCompress.php', '2.0RC2', 0), -('9c05a39fb5eae61213a387a32f50570a', './lib/ajax/xajax.inc.php', '2.0RC2', 0), -('5b3689129349efd63672f0d946eebec9', './lib/ajax/xajaxResponse.inc.php', '2.0RC2', 0), -('d48f2e1347104d84cf914b93b5fc3f1d', './lib/ajax/ajaxlib.php', '2.0RC2', 0), -('4bdf3fa1044d81cd6fed81c63b6b61bb', './lib/diff/renderer_character.php', '2.0RC2', 0), -('cb46f5f1c56b406fd1a448b06437d329', './lib/diff/renderer_sidebyside.php', '2.0RC2', 0), -('53d664a0cd71ed45362312e9c40e6a49', './lib/diff/Renderer.php', '2.0RC2', 0), -('a78c93b7099c2ed88957f28f5cbc7541', './lib/diff/renderer_character_inline.php', '2.0RC2', 0), -('12d7bf22c09c35d39757d3a4908f5e4a', './lib/diff/renderer_inline.php', '2.0RC2', 0), -('4f248d6c65d93c786e465ec8b1714804', './lib/diff/renderer_unified.php', '2.0RC2', 0), -('568dc52cd13372f6426d2bbf1fffdf27', './lib/diff/renderer_htmldiff.php', '2.0RC2', 0), -('f9f447dddf579ef624e2e94b96f69c8c', './lib/diff/Diff.php', '2.0RC2', 0), -('b25008f2091dd0bc68d16d30ca1a8fbd', './lib/diff/difflib.php', '2.0RC2', 0), -('a99615e44ce799b57a811617c4900b87', './lib/diff/renderer_bytes.php', '2.0RC2', 0), -('5dd8579216a7721a2ffafcfb310a54d1', './lib/faqs/index.php', '2.0RC2', 0), -('906c51bff3d0d2f2e841bc8cf092a590', './lib/faqs/faqlib.php', '2.0RC2', 0), -('86b093609886e74d270a6039f2be78b3', './lib/ical/iCal/Property.php', '2.0RC2', 0), -('2c6d3daf4904d54036bc216da05a1df6', './lib/ical/iCal/Event.php', '2.0RC2', 0), -('7301fbc1c03bc1fff84af79fc8a72326', './lib/ical/iCal/Alarm.php', '2.0RC2', 0), -('ae4c55f120bd5ef60db36d05a9129ead', './lib/ical/iCal/Parser/iCalendar.php', '2.0RC2', 0), -('190c81a2cf93a2b4e893ef201d575ba2', './lib/ical/iCal/iCalendar.php', '2.0RC2', 0), -('7db4455608e9034b0abc4fa578e95699', './lib/ical/iCal/Recurrence.php', '2.0RC2', 0), -('038d7407ffbdaae53b5bdd702e3051ae', './lib/ical/iCal/Attendee.php', '2.0RC2', 0), -('d18be1c54b5b86026402c495a5cd58cf', './lib/ical/iCal/Parameter.php', '2.0RC2', 0), -('640a5220946a10bee73654c60fe76052', './lib/ical/iCal/ContentLine.php', '2.0RC2', 0), -('8aa6216a419cd6cb10ceb7d0d1cb92d2', './lib/ical/iCal/ExceptionRule.php', '2.0RC2', 0), -('1f695d3cfcf5d350e15ea8329c7e2fe4', './lib/ical/iCal/ValueDataType.php', '2.0RC2', 0), -('dcaf39e93944bf3f98cf9e45da6d7180', './lib/ical/iCal/Component.php', '2.0RC2', 0), -('4f76e707e8cef3ba13a34e3eae70f9d3', './lib/ical/iCal/BaseComponent.php', '2.0RC2', 0), -('5451d8173ba63fd06a346b95184b2977', './lib/ical/iCal/ToDo.php', '2.0RC2', 0), -('c5f4e3f2e0698b396f396965ef2917ed', './lib/ical/iCal/TimeZone.php', '2.0RC2', 0), -('f05bc392c12c47d441ec26f4611feba5', './lib/ical/iCal/FreeBusy.php', '2.0RC2', 0), -('5eb92e304bdb8e26befc9c40d2377c52', './lib/ical/File.php', '2.0RC2', 0), -('ffa86ab4a5a66300273992fa8657f76e', './lib/ical/iCal.php', '2.0RC2', 0), -('98192c01592b07e58b655077dc2976a4', './lib/init/tra.php', '2.0RC2', 0), -('b85afb9ee11102d1f4ddb113469b4b79', './lib/init/index.php', '2.0RC2', 0), -('6bf8edf13d361d4a8c96d1e4312e4487', './lib/init/setup_inc.php', '2.0RC2', 0), -('c4d622af02c571e711305ee5abb838c0', './lib/init/initlib.php', '2.0RC2', 0), -('3ece6a1f959fb2309294fd619814c3dc', './lib/mail/maillib.php', '2.0RC2', 0), -('01e8b27e515ac4cc4b684cd1ff4af116', './lib/mail/mimelib.php', '2.0RC2', 0), -('c057282ce51293ae3afb5e80d19ef42c', './lib/logs/logslib.php', '2.0RC2', 0), -('713bc89f7f4890adf33e00d01c736f32', './lib/mime/mimeextensions.php', '2.0RC2', 0), -('c37c5ced2a11f7952eb2446b2ecd3365', './lib/mime/index.php', '2.0RC2', 0), -('19b23f502a8411b76f1aee28bed73548', './lib/mime/mimetypes.php', '2.0RC2', 0), -('4da4961d8b1ee59143092314c47b3f31', './lib/mime/mimelib.php', '2.0RC2', 0), -('c569fcc183a3fdd452ec156c26b8ba10', './lib/mods/index.php', '2.0RC2', 0), -('c5c8c7d157ef716b436db583c132d70b', './lib/mods/modslib.php', '2.0RC2', 0), -('9905e2b2bd49a275b76794e822ec80dc', './lib/pear/DB/fbsql.php', '2.0RC2', 0), -('c3c9df9c0f934e493308fa2304525277', './lib/pear/DB/msql.php', '2.0RC2', 0), -('fbe9ed03b937998e2716712ab2e2ffdf', './lib/pear/DB/sqlite.php', '2.0RC2', 0), -('ecf586e9fc113b5e0fbf5067d82ae80c', './lib/pear/DB/ibase.php', '2.0RC2', 0), -('e8d1bc5b7e757a8879bf8726c79d3a29', './lib/pear/DB/mssql.php', '2.0RC2', 0), -('56aff0b4a2ad06d59564abba40ba1b07', './lib/pear/DB/storage.php', '2.0RC2', 0), -('4ab966ea009c1e23d7c076c133d4e98b', './lib/pear/DB/dbase.php', '2.0RC2', 0), -('e9feb3abea0be7eee7b5df5ec33d936d', './lib/pear/DB/mysql4.php', '2.0RC2', 0), -('db7f8f393ec17982a2240eec034f575e', './lib/pear/DB/mysqli.php', '2.0RC2', 0), -('80ae5a2bed8b96fe36f85dcf5ae73432', './lib/pear/DB/sybase.php', '2.0RC2', 0), -('ceea5ced9b5eb2e2f3c33a6508fd02f9', './lib/pear/DB/index.php', '2.0RC2', 0), -('1b6120ab0510a5eda70434009ebc9206', './lib/pear/DB/oci8.php', '2.0RC2', 0), -('3b15c50dd94405da91c5e27ce5e41c6c', './lib/pear/DB/ifx.php', '2.0RC2', 0), -('ff1ca5a2d0ec383c12b3f36a6e14036c', './lib/pear/DB/pgsql.php', '2.0RC2', 0), -('1fbdb44bc60337b790eb22dd3beb8efc', './lib/pear/DB/mysql.php', '2.0RC2', 0), -('bf4600cbc3b3d7447a961828dbb21390', './lib/pear/DB/odbc.php', '2.0RC2', 0), -('9860844b00ebfef6670d9aba0c1dea39', './lib/pear/DB/common.php', '2.0RC2', 0), -('9ca81e3efacc58b11f6abf28fc16e170', './lib/pear/OS/Guess.php', '2.0RC2', 0), -('92232cd2fc5e1cc1377ef8a0a9e0bc35', './lib/pear/Net/DNS/RR/CNAME.php', '2.0RC2', 0), -('3bd6d557dd0eda20a9999245aecbd2e1', './lib/pear/Net/DNS/RR/A.php', '2.0RC2', 0), -('e8a44f5f773f8f3990dbb62ed21962f4', './lib/pear/Net/DNS/RR/MX.php', '2.0RC2', 0), -('dd8cb8b9b7d29144e67014955371ec58', './lib/pear/Net/DNS/RR/NS.php', '2.0RC2', 0), -('e6ba4e35dcfbb389a78dfe78f7f57cde', './lib/pear/Net/DNS/RR/SOA.php', '2.0RC2', 0), -('c9aedf777c33388ba25b4dbff5148d17', './lib/pear/Net/DNS/RR/SRV.php', '2.0RC2', 0), -('a68c4cbee7d724de4a9cd80784b16829', './lib/pear/Net/DNS/RR/TXT.php', '2.0RC2', 0), -('0ff95e75841e10d3c796b406e75b85d9', './lib/pear/Net/DNS/RR/AAAA.php', '2.0RC2', 0), -('349b96830a67b09a96d512c8aa645165', './lib/pear/Net/DNS/RR/HINFO.php', '2.0RC2', 0), -('494de46414b44de8e93559145f1afdba', './lib/pear/Net/DNS/RR/NAPTR.php', '2.0RC2', 0), -('7d56c6b283c1e5cfee863583c574c30e', './lib/pear/Net/DNS/RR/TSIG.php', '2.0RC2', 0), -('2a481f218048f9f995740cdabfaa583d', './lib/pear/Net/DNS/RR/PTR.php', '2.0RC2', 0), -('f5f9ee71dd6b1d5913619a9522f47eed', './lib/pear/Net/DNS/RR.php', '2.0RC2', 0), -('8cb9639f0e28ae1440b93f1790ae4e03', './lib/pear/Net/DNS/Question.php', '2.0RC2', 0), -('bddc375c1a7dc4050153fc032ac53de0', './lib/pear/Net/DNS/Resolver.php', '2.0RC2', 0), -('1999a958b762c2d3c5a88e59053f6d61', './lib/pear/Net/DNS/Header.php', '2.0RC2', 0), -('87bc38b5b0746b80298613b0227298cb', './lib/pear/Net/DNS/Packet.php', '2.0RC2', 0), -('2e9880aef8741aef23f8acd88a1acb67', './lib/pear/Net/DNS.php', '2.0RC2', 0), -('e4507f7e2230889c7b38b84a2fa70a15', './lib/pear/Net/Socket.php', '2.0RC2', 0), -('c93e4ca980402c5ed87af9d80b9ecb70', './lib/pear/Net/URL.php', '2.0RC2', 0), -('4c38c70a1a861bafa0caacf0ebdb7805', './lib/pear/Net/index.php', '2.0RC2', 0), -('8ba64d808659934afbdedab0ca7219d1', './lib/pear/Net/DIME.php', '2.0RC2', 0), -('aace5be2f848110b2b304a2b7b236d37', './lib/pear/XML/RPC.php', '2.0RC2', 0), -('fc8aececd0f8f2f0d55329a9da8e9472', './lib/pear/XML/Server.php', '2.0RC2', 0), -('dd4f92500eebc0fc8e94634ceb872d26', './lib/pear/XML/index.php', '2.0RC2', 0), -('0ef9e1c81d362d36ebffcb5e6534b34f', './lib/pear/XML/Dump.php', '2.0RC2', 0), -('5e5e820181b0bed6b9d9f90ac7d35efe', './lib/pear/Auth/Container/File.php', '2.0RC2', 0), -('83f8144d57fad225b4ee9a27ed3c5823', './lib/pear/Auth/Container/SAP.php', '2.0RC2', 0), -('2f21ddd9b12d9b2897febabdd2e2f3f3', './lib/pear/Auth/Container/Array.php', '2.0RC2', 0), -('0e6bf20e2f6c63014ba5bdc0478492d2', './lib/pear/Auth/Container/IMAP.php', '2.0RC2', 0), -('6b6b9dc23e4a9b10d6aa4d2cbf69afca', './lib/pear/Auth/Container/MDB.php', '2.0RC2', 0), -('cf72017455ef818075e142b8c2cab275', './lib/pear/Auth/Container/KADM5.php', '2.0RC2', 0), -('b276953e43141fc0f74ce1e7a217a312', './lib/pear/Auth/Container/MDB2.php', '2.0RC2', 0), -('b9fb221a858c593c9bd5b21781636874', './lib/pear/Auth/Container/PEAR.php', '2.0RC2', 0), -('91e80f6ea9cf99ba5ad1065216e203d9', './lib/pear/Auth/Container/SOAP.php', '2.0RC2', 0), -('c734d6ee8f72e4b3388e41877da3a9d7', './lib/pear/Auth/Container/index.php', '2.0RC2', 0), -('8ff28bb21efe6a3af1b0d8de74d2bbcb', './lib/pear/Auth/Container/SMBPasswd.php', '2.0RC2', 0), -('626b19981170d6776731303bdaa26053', './lib/pear/Auth/Container/LDAP.php', '2.0RC2', 0), -('a17801b2eaa4b2c890ec7b5805bc68b5', './lib/pear/Auth/Container/SOAP5.php', '2.0RC2', 0), -('fe516feed650f62b52f866fd10cdcf21', './lib/pear/Auth/Container/DBLite.php', '2.0RC2', 0), -('b942bf340c2f848672b9d5c5213c688b', './lib/pear/Auth/Container/vpopmail.php', '2.0RC2', 0), -('d7f3b26113654ee28d189fb3219900b9', './lib/pear/Auth/Container/POP3.php', '2.0RC2', 0), -('00e55dc33dff486833496a24075d6906', './lib/pear/Auth/Container/Multiple.php', '2.0RC2', 0), -('6101309b3f0c660712b7f56fdae406af', './lib/pear/Auth/Container/RADIUS.php', '2.0RC2', 0), -('ece1c8ff85a6606ea08b3d0749fa4ff4', './lib/pear/Auth/Container/DB.php', '2.0RC2', 0), -('4bcddbac9c56dd93ff75203153520fc0', './lib/pear/Auth/Yadis/XRDS.php', '2.0RC2', 0), -('94fe207c995bd278ae92346749013349', './lib/pear/Auth/Yadis/XRI.php', '2.0RC2', 0), -('1d594ad53e183edae35965fd14c2f7b0', './lib/pear/Auth/Yadis/ParseHTML.php', '2.0RC2', 0), -('c2ed8945aeef0ad05f718424e9563ff3', './lib/pear/Auth/Yadis/HTTPFetcher.php', '2.0RC2', 0), -('65f6877b06ce7289e853dac0a069c921', './lib/pear/Auth/Yadis/Misc.php', '2.0RC2', 0), -('c312563353152ef4f1c272025976fa30', './lib/pear/Auth/Yadis/ParanoidHTTPFetcher.php', '2.0RC2', 0), -('9a3d99d44087ae694ead98ec130a41b2', './lib/pear/Auth/Yadis/Yadis.php', '2.0RC2', 0), -('b0dccb27f25c4106ef97d2e807badb8d', './lib/pear/Auth/Yadis/XRIRes.php', '2.0RC2', 0), -('ee7de67f71efe67d93e435e62eb7431f', './lib/pear/Auth/Yadis/Manager.php', '2.0RC2', 0), -('09f171fc182d23b1c509980e3f6d6869', './lib/pear/Auth/Yadis/XML.php', '2.0RC2', 0), -('6d0f86d774c115ec98c97d8712c2c2de', './lib/pear/Auth/Yadis/PlainHTTPFetcher.php', '2.0RC2', 0), -('46073a7cd20c0ae74c2b1d2ae487949d', './lib/pear/Auth/OpenID/MySQLStore.php', '2.0RC2', 0), -('5aaedef83cce12729a78a33ad7339b3c', './lib/pear/Auth/OpenID/Extension.php', '2.0RC2', 0), -('27387317c5df36ca99bff5e88bce6dbf', './lib/pear/Auth/OpenID/Nonce.php', '2.0RC2', 0), -('a22497b37513f5e7301f3779f5d97b87', './lib/pear/Auth/OpenID/Consumer.php', '2.0RC2', 0), -('627604fa8e424b1aecfffa637bb65c3e', './lib/pear/Auth/OpenID/CryptUtil.php', '2.0RC2', 0), -('29d29b55d83598a79dad4bed1b3ebb4e', './lib/pear/Auth/OpenID/SQLStore.php', '2.0RC2', 0), -('3c7ccd97db1be63a8f6cbe77dd0cd17a', './lib/pear/Auth/OpenID/KVForm.php', '2.0RC2', 0), -('d29d03e6efb5639e8e6457b98ad920c1', './lib/pear/Auth/OpenID/ServerRequest.php', '2.0RC2', 0), -('ab0f024b356039a33f7e8ea3901d65ca', './lib/pear/Auth/OpenID/FileStore.php', '2.0RC2', 0), -('388b08056e916312880d45f805df8abc', './lib/pear/Auth/OpenID/URINorm.php', '2.0RC2', 0), -('d9d35878336c476fcf03eb3143c90f1c', './lib/pear/Auth/OpenID/Server.php', '2.0RC2', 0), -('ae70925cef5709603201e300e9b9407f', './lib/pear/Auth/OpenID/SReg.php', '2.0RC2', 0), -('ca9434290112f08d5cc8987a9ed6ef55', './lib/pear/Auth/OpenID/HMACSHA1.php', '2.0RC2', 0), -('421b2e9dc95dbb8ff3fd6502f733422e', './lib/pear/Auth/OpenID/Interface.php', '2.0RC2', 0), -('b5669db1fe88247603b459346a935443', './lib/pear/Auth/OpenID/Discover.php', '2.0RC2', 0), -('28c95f10a969f1126bae5d52527f1795', './lib/pear/Auth/OpenID/Parse.php', '2.0RC2', 0), -('660df7e89c5513d948537f5af1870931', './lib/pear/Auth/OpenID/DatabaseConnection.php', '2.0RC2', 0), -('e840ade5c66779de28d2983f744c12e9', './lib/pear/Auth/OpenID/DumbStore.php', '2.0RC2', 0), -('6a9b2ce5b33a378dfdbc58aab9bc6f9c', './lib/pear/Auth/OpenID/TrustRoot.php', '2.0RC2', 0), -('45dc4a65d1d3bd6e10ba06841c779676', './lib/pear/Auth/OpenID/DiffieHellman.php', '2.0RC2', 0), -('4855020fe55f579df8f99247977bd1d1', './lib/pear/Auth/OpenID/SQLiteStore.php', '2.0RC2', 0), -('d9881c6ea945693a3770828c96349152', './lib/pear/Auth/OpenID/Association.php', '2.0RC2', 0), -('0c5cb71785f5d083595c3a2fc4b1387b', './lib/pear/Auth/OpenID/Message.php', '2.0RC2', 0), -('db8c4c5803b358e58e4936ab3818654b', './lib/pear/Auth/OpenID/MemcachedStore.php', '2.0RC2', 0), -('e5865a3cf23c9273db99607250d6a431', './lib/pear/Auth/OpenID/PAPE.php', '2.0RC2', 0), -('cd44fb875c4e686a216ef76c3050c212', './lib/pear/Auth/OpenID/PostgreSQLStore.php', '2.0RC2', 0), -('b68edf987cc93f58e24d53e96e84fcbb', './lib/pear/Auth/OpenID/AX.php', '2.0RC2', 0), -('a56dc458f1ef222812912f79ec393b4a', './lib/pear/Auth/OpenID/BigMath.php', '2.0RC2', 0), -('75325f187ae203cd863c760238e30d6c', './lib/pear/Auth/OpenID.php', '2.0RC2', 0), -('2e649d4cc396b000ab7ed52f645d64cb', './lib/pear/Auth/Frontend/Html.php', '2.0RC2', 0), -('5a203556d10ea3c68d62d57a2cdfe591', './lib/pear/Auth/Controller.php', '2.0RC2', 0), -('28df1f321a9377209758aef9fa38ed95', './lib/pear/Auth/index.php', '2.0RC2', 0), -('01905f153e9356534b978b019e68b9fa', './lib/pear/Auth/Container.php', '2.0RC2', 0), -('2056a1008679d8dc2a9098a0c962622a', './lib/pear/Auth/Anonymous.php', '2.0RC2', 0), -('b6749a9c4bae7ace3d122ac54d7f923a', './lib/pear/Auth/Auth.php', '2.0RC2', 0), -('f4b06ba56d19c8ff69be2ad145fa214d', './lib/pear/Date/Calc.php', '2.0RC2', 0), -('19de73ea9672d6ca8248480c45377913', './lib/pear/Date/Human.php', '2.0RC2', 0), -('bc3076d290d70309334e51099a5b9c32', './lib/pear/Date/index.php', '2.0RC2', 0), -('1efd48fbfa04fa460bb1e2bea1496dc8', './lib/pear/Date/Span.php', '2.0RC2', 0), -('4453316b96873b26ead2822f4d589591', './lib/pear/Date/TimeZone.php', '2.0RC2', 0), -('ce18584968bde4ed5117e4750062d021', './lib/pear/HTTP/docs/example.php', '2.0RC2', 0), -('1c6c27e31ee2cde67364c3b83250512a', './lib/pear/HTTP/docs/index.php', '2.0RC2', 0), -('23b2f51eb8b8d99b61c676023663627d', './lib/pear/HTTP/Request.php', '2.0RC2', 0), -('39a6707035051dbfc03d13200d674b08', './lib/pear/HTTP/Request/Listener.php', '2.0RC2', 0), -('8a1d80d63a28005a1d6e5c6aff46363d', './lib/pear/HTTP/index.php', '2.0RC2', 0), -('0b159ec45a5a706604a9fa0de0186998', './lib/pear/PEAR/REST/10.php', '2.0RC2', 0), -('aab56f6f27b3cab2ecfeeac47e7c9e34', './lib/pear/PEAR/REST/11.php', '2.0RC2', 0), -('f58b0ab73750429987f314f7053fe9ee', './lib/pear/PEAR/REST/13.php', '2.0RC2', 0), -('c54e33e2b718b2e8912a81dc62d3e61c', './lib/pear/PEAR/Task/Windowseol.php', '2.0RC2', 0), -('e72267c770a9f88d01ac06f0dc7c5dee', './lib/pear/PEAR/Task/Replace.php', '2.0RC2', 0), -('7391884d1e5ef03d95851fd84dff640b', './lib/pear/PEAR/Task/Replace/rw.php', '2.0RC2', 0), -('fddcac1523d082ba61b2dd7fd671f585', './lib/pear/PEAR/Task/Postinstallscript.php', '2.0RC2', 0), -('288d2f1e1fc3551785e346f4387e87f2', './lib/pear/PEAR/Task/Unixeol.php', '2.0RC2', 0), -('bc5dca669538b06a69f07e2d8adcd71d', './lib/pear/PEAR/Task/Windowseol/rw.php', '2.0RC2', 0), -('d68ba93b34891a1d4433eaf78d08aec8', './lib/pear/PEAR/Task/Common.php', '2.0RC2', 0), -('8c3e953b9f9a81fa0f2463c38ffb9765', './lib/pear/PEAR/Task/Postinstallscript/rw.php', '2.0RC2', 0), -('ed1222c8198f1f88899b832b9a298d79', './lib/pear/PEAR/Task/Unixeol/rw.php', '2.0RC2', 0), -('d1b07a8ebf4db686fd3fded4b65fb65b', './lib/pear/PEAR/Downloader.php', '2.0RC2', 0), -('e07fcb2e1b36f0ec964a89f1de9798c0', './lib/pear/PEAR/Validator/PECL.php', '2.0RC2', 0), -('fc586586593b29db1612ea22026be75d', './lib/pear/PEAR/Builder.php', '2.0RC2', 0), -('febec893787a57f9b1010d95bddfc549', './lib/pear/PEAR/Installer.php', '2.0RC2', 0), -('7c6d5c09bc29141ce0920d1b61b149ab', './lib/pear/PEAR/ErrorStack.php', '2.0RC2', 0), -('ead9a6ea7824631d2241f1a48518493f', './lib/pear/PEAR/ChannelFile.php', '2.0RC2', 0), -('e5892abe81521f5edd1845a31a0091a5', './lib/pear/PEAR/Downloader/Package.php', '2.0RC2', 0), -('74d82b20b21f54787260a51309ef9d71', './lib/pear/PEAR/Frontend.php', '2.0RC2', 0), -('416db6b77398e5e9055bed82638ccffb', './lib/pear/PEAR/Dependency.php', '2.0RC2', 0), -('bbd8c9e6c44a1c1a83a87eeefad0a357', './lib/pear/PEAR/Remote.php', '2.0RC2', 0), -('4cb1e73f9e29c4c8e50f6128f1fd0431', './lib/pear/PEAR/Config.php', '2.0RC2', 0), -('e7081a97d34ead8f8bdcee998cf91119', './lib/pear/PEAR/Command/Test.php', '2.0RC2', 0), -('6f12784592a5b17d38d6de700bc388a4', './lib/pear/PEAR/Command/Remote.php', '2.0RC2', 0), -('b6378096e74b6af9a76bedc6153acc9b', './lib/pear/PEAR/Command/Config.php', '2.0RC2', 0), -('8d522efb1f9dac5267b4875c964d495a', './lib/pear/PEAR/Command/Build.php', '2.0RC2', 0), -('34de61a3a97bbc1157549b694f29d615', './lib/pear/PEAR/Command/Pickle.php', '2.0RC2', 0), -('0afd51f8d34de4def1fb4ab1fc63937d', './lib/pear/PEAR/Command/Registry.php', '2.0RC2', 0), -('a941e1bf3669340122b77e35960214f8', './lib/pear/PEAR/Command/Channels.php', '2.0RC2', 0), -('f131f6e88e5d199aa50195e268cf093d', './lib/pear/PEAR/Command/Mirror.php', '2.0RC2', 0), -('eba49e95ed6308d641d75b1be5f299df', './lib/pear/PEAR/Command/Common.php', '2.0RC2', 0), -('dd2541402e1c750233ae0b724f91a8c7', './lib/pear/PEAR/Command/Install.php', '2.0RC2', 0), -('ccc9a40f0ee06112bee7eb8e0d8f7554', './lib/pear/PEAR/Command/Package.php', '2.0RC2', 0), -('1a7d580921ef848d6e4a599a228ddf4a', './lib/pear/PEAR/Command/Auth.php', '2.0RC2', 0), -('665248a21424a9f5eb11c4000743be2f', './lib/pear/PEAR/Validate.php', '2.0RC2', 0), -('a91985f454b9e012a00165a0adb5fed6', './lib/pear/PEAR/XMLParser.php', '2.0RC2', 0), -('686bd6aa5d6764583a0b3818662d0510', './lib/pear/PEAR/Frontend/CLI.php', '2.0RC2', 0), -('327ff6fccde43852ed59fede703a91d0', './lib/pear/PEAR/Registry.php', '2.0RC2', 0), -('a2bfd5e599139bf2a76421c9e37aeae3', './lib/pear/PEAR/Exception.php', '2.0RC2', 0), -('c5e9ec07c539c065c3274caaa0b74780', './lib/pear/PEAR/Packager.php', '2.0RC2', 0), -('1bb322bda9af789074f5521e6010bc85', './lib/pear/PEAR/RunTest.php', '2.0RC2', 0), -('edf44fd2faac12e6bbb01d393a9b6564', './lib/pear/PEAR/Installer/Role/Test.php', '2.0RC2', 0), -('de3e00e9c2797757447352a4e07d84f8', './lib/pear/PEAR/Installer/Role/Php.php', '2.0RC2', 0), -('cc39757e202d33bc01f8564af7f788d9', './lib/pear/PEAR/Installer/Role/Doc.php', '2.0RC2', 0), -('c0bc7186707061e834192453bf3f35bd', './lib/pear/PEAR/Installer/Role/Script.php', '2.0RC2', 0), -('cf18c76b383da43538219e361f10bf7f', './lib/pear/PEAR/Installer/Role/Src.php', '2.0RC2', 0), -('be524dfee409680da002a3b6835209a8', './lib/pear/PEAR/Installer/Role/Ext.php', '2.0RC2', 0), -('ab2d18979154bdc62729a8e44d5934ad', './lib/pear/PEAR/Installer/Role/Data.php', '2.0RC2', 0), -('4e37444943bb601fb33f098e71bb34bf', './lib/pear/PEAR/Installer/Role/Common.php', '2.0RC2', 0), -('2423c8662af9af64c83e247099ab15c0', './lib/pear/PEAR/Installer/Role.php', '2.0RC2', 0), -('8222da2fcc9b571045348ea3c02d7ac1', './lib/pear/PEAR/ChannelFile/Parser.php', '2.0RC2', 0), -('a76d14908798b7683c9e9013290eb100', './lib/pear/PEAR/REST.php', '2.0RC2', 0), -('e02a2d46c8b116c073e26782651a7d85', './lib/pear/PEAR/DependencyDB.php', '2.0RC2', 0), -('2fa82108b4526c73c7929e7bc46ce5f1', './lib/pear/PEAR/Common.php', '2.0RC2', 0), -('47d78817811f5694ad70b6b7141e0ccd', './lib/pear/PEAR/PackageFile/v2/Validator.php', '2.0RC2', 0), -('80e428bb5c1acce49d37176b48fb73a8', './lib/pear/PEAR/PackageFile/v2/rw.php', '2.0RC2', 0), -('5e1ff681fd93b1cde04b08527cf3fd38', './lib/pear/PEAR/PackageFile/Generator/v1.php', '2.0RC2', 0), -('fd0f214a154c4b0fca5f47cf322ed5b5', './lib/pear/PEAR/PackageFile/Generator/v2.php', '2.0RC2', 0), -('70676cca54cf93921cb3c1657887f97f', './lib/pear/PEAR/PackageFile/Parser/v1.php', '2.0RC2', 0), -('79189560d5b119a4aff3ea662b42b178', './lib/pear/PEAR/PackageFile/Parser/v2.php', '2.0RC2', 0), -('aa7c8a7e46e9b3f8ae3deb239f40ed3d', './lib/pear/PEAR/PackageFile/v1.php', '2.0RC2', 0), -('c766904fd7927ab51dd3ce43085bcbe0', './lib/pear/PEAR/PackageFile/v2.php', '2.0RC2', 0), -('91ae716f31f5f73622991641c49bbeda', './lib/pear/PEAR/Command.php', '2.0RC2', 0), -('917f3071135c9865a96e4d59376d3caa', './lib/pear/PEAR/Dependency2.php', '2.0RC2', 0), -('6f89b3d08357892c75a3eb89614be9bc', './lib/pear/PEAR/PackageFile.php', '2.0RC2', 0), -('7384f642030240aae790516d7103f008', './lib/pear/System.php', '2.0RC2', 0), -('6f91fe81dbe036ee6297bc8ec1a10f6d', './lib/pear/PEAR.php', '2.0RC2', 0), -('3a3f85ce303837c3f9929050ce194b81', './lib/pear/Services/JSON.php', '2.0RC2', 0), -('a336be6cadf18bc16d83cf46ca42ea6e', './lib/pear/NNTP.php', '2.0RC2', 0), -('5b0386f0adc9f868f21957d6c08833bb', './lib/pear/index.php', '2.0RC2', 0), -('6b48ff95fd02266788c855a0b0e31bf6', './lib/pear/Date.php', '2.0RC2', 0), -('0463bc738128413a596937ade91f1902', './lib/pear/Auth.php', '2.0RC2', 0), -('5948fcc1a73a623d1cb098ccd225dc24', './lib/pear/DB.php', '2.0RC2', 0), -('ddc282726a9516788704bd498680ca35', './lib/tabs/index.php', '2.0RC2', 0), -('b9593375c99ac187fd44a5338e4fcfdd', './lib/tail/index.php', '2.0RC2', 0), -('1c3c149fd70addb7a07a6070ea787da5', './lib/tree/tree.php', '2.0RC2', 0), -('868285e51c5119cde22a0a453848ef3a', './lib/tree/categ_browse_tree.php', '2.0RC2', 0), -('246e2b2835142d7565e9b1c3b8eaea06', './lib/tree/categ_admin_tree.php', '2.0RC2', 0), -('2e1a392fe39bd881fee6bc6c0b20a5cf', './lib/tree/index.php', '2.0RC2', 0), -('27fe8d76a05356507ecb6249b998a5bf', './lib/wiki/quantifylib.php', '2.0RC2', 0), -('2a4d725ae4856e0cb46c6310df02c49c', './lib/wiki/wikilib.php', '2.0RC2', 0), -('21d988eb3fd60f6d00211b178a37c2d7', './lib/wiki/wiki-ajax.php', '2.0RC2', 0), -('8d854b2ee5269a46841495b2d0db63ee', './lib/wiki/index.php', '2.0RC2', 0), -('605dc272817537bf6ad72dd9b3c06ad2', './lib/wiki/exportlib.php', '2.0RC2', 0), -('ba45953bab8f40bd0092f0ed9e506042', './lib/wiki/histlib.php', '2.0RC2', 0), -('9a704e15ad4f86a1d88f8672e28a62fb', './lib/wiki/pluginslib.php', '2.0RC2', 0), -('d11693c0912dfc244b3d6a7503205531', './lib/structures/index.php', '2.0RC2', 0), -('ca0d3e84f3acec1f838b10c624302d04', './lib/structures/structlib.php', '2.0RC2', 0), -('451fe6451dfa13a84fbdcf382b73353d', './lib/equation/tmp/index.php', '2.0RC2', 0), -('6912105a98d3cfb85db749b109dbc40d', './lib/equation/pictures/index.php', '2.0RC2', 0), -('292e7b12fafe7b86a607519f69d5a210', './lib/equation/class.latexrender.php', '2.0RC2', 0), -('a0d8764a14a9ca4f65fc4f210475ad63', './lib/bablotron.php', '2.0RC2', 0), -('797660b7c34c07378cb8ac72a4877d2b', './lib/htmlpages/index.php', '2.0RC2', 0), -('395020beeb3f52d40fcabd621da89073', './lib/htmlpages/htmlpageslib.php', '2.0RC2', 0), -('65caaa22445f0474dc516449f4d3bab3', './lib/tikilib.php', '2.0RC2', 0), -('46a21a3bb37d30c8b985ba9208873fc3', './lib/diff.php', '2.0RC2', 0), -('e6d8134958f379dcb5a8fc2e522a5b80', './lib/live_support/lslib.php', '2.0RC2', 0), -('edabc749c11e32e4762902d2dd32a2ef', './lib/live_support/index.php', '2.0RC2', 0), -('f51cf5d518a54d18d7caf6be26e6ecab', './lib/live_support/lsadminlib.php', '2.0RC2', 0), -('f6cd764c871e1004d5ef9553e828ded5', './lib/Horde/Yaml/Loader.php', '2.0RC2', 0), -('5708a9a233c09cf03fe9f37cecd6619f', './lib/Horde/Yaml/Exception.php', '2.0RC2', 0), -('1515261fc34e2a763337f936b49f00c6', './lib/Horde/Yaml/Node.php', '2.0RC2', 0), -('92e19794b66466dccf9e271ae81496ea', './lib/Horde/Yaml/Dumper.php', '2.0RC2', 0), -('809658c6425f35b50bd4bacb6d0b1673', './lib/Horde/Yaml.php', '2.0RC2', 0), -('ab36ed38f9fb02d94aa1a87e04780a92', './lib/graph-engine/graph.bar.php', '2.0RC2', 0), -('874c7ccecf71aa980810027ce630d60a', './lib/graph-engine/graph.pie.php', '2.0RC2', 0), -('a4072ced11a928532c22bfbac934599d', './lib/graph-engine/gd.php', '2.0RC2', 0), -('49958376c9c8500f92a0fc42c13201c4', './lib/graph-engine/abstract.gridbased.php', '2.0RC2', 0), -('f7af35438ed663e4c7711fd03ecc7112', './lib/graph-engine/core.php', '2.0RC2', 0), -('5d64f8fb40bdd36d7ff7bdf54ec3f020', './lib/graph-engine/pdflib.php', '2.0RC2', 0), -('86957f05668498c05d712ae24c0c442e', './lib/graph-engine/ps.php', '2.0RC2', 0), -('efb0fac8e679437836c4e94652489a67', './lib/graph-engine/graph.multiline.php', '2.0RC2', 0), -('69904613e0d8e253a3a1a7a9107eb855', './lib/shadowbox_tiki/index.php', '2.0RC2', 0), -('5c7ccf465ffc1e8a69584553d325e30f', './lib/admin/index.php', '2.0RC2', 0), -('e73ea5c091f6daced5595ffce41dbf80', './lib/admin/adminlib.php', '2.0RC2', 0), -('f308d107e1335ec36f71f101bc5324cf', './lib/adodb/lang/adodb-hu.inc.php', '2.0RC2', 0), -('201d8ae7eda2a23f6b71c9d88ac77ded', './lib/adodb/lang/adodb_th.inc.php', '2.0RC2', 0), -('71052ad0e1622d8514b5a41622d2ce33', './lib/adodb/lang/adodb-ro.inc.php', '2.0RC2', 0), -('de0722a45173d1e076216f41090232d1', './lib/adodb/lang/adodb-es.inc.php', '2.0RC2', 0), -('c5420bb506f4eae64a6f84e33bb31523', './lib/adodb/lang/adodb-en.inc.php', '2.0RC2', 0), -('ed3d417b04f361e178f1a258d193b929', './lib/adodb/lang/adodb-nl.inc.php', '2.0RC2', 0), -('b9030fa70d9d0f2ba408ac61c31958c3', './lib/adodb/lang/adodb-ca.inc.php', '2.0RC2', 0), -('81fac3276333ca136f83c1f3c35f5f3f', './lib/adodb/lang/adodb-sv.inc.php', '2.0RC2', 0), -('32b94a998cb1a8b1ee14089af407d585', './lib/adodb/lang/adodb-esperanto.inc.php', '2.0RC2', 0), -('37b0880076545e8d8e3809002c8b1960', './lib/adodb/lang/adodb-bg.inc.php', '2.0RC2', 0), -('822a0c4c44527e99acdb3bc2f50ff6f1', './lib/adodb/lang/adodb-uk1251.inc.php', '2.0RC2', 0), -('2ea23878b1027f3d07c8a9b8bbe4e3a3', './lib/adodb/lang/adodb-da.inc.php', '2.0RC2', 0), -('56602de7a184aa22984f46954b22934b', './lib/adodb/lang/adodb-ar.inc.php', '2.0RC2', 0), -('6964322c13c74d4435a42c3d14ab7d6a', './lib/adodb/lang/adodb-cz.inc.php', '2.0RC2', 0), -('ed08fdc9f392628cf2bf5eb9c814eb6a', './lib/adodb/lang/adodb-bgutf8.inc.php', '2.0RC2', 0), -('e828ddb6371ea135bfff0d6b59229eb3', './lib/adodb/lang/adodb-ru1251.inc.php', '2.0RC2', 0), -('15e2c634116779844db3c9e8f1c4ceb0', './lib/adodb/lang/adodb-it.inc.php', '2.0RC2', 0), -('155efb4dceeced3de044f660a9528265', './lib/adodb/lang/adodb-cn.inc.php', '2.0RC2', 0), -('dd47dbd2afc066b15e4944297da957b2', './lib/adodb/lang/adodb-fr.inc.php', '2.0RC2', 0), -('14cc56d6565900543e3b26130aace1b7', './lib/adodb/lang/adodb-pt-br.inc.php', '2.0RC2', 0), -('26c57777b17e3ff924b83d3ac36a6e1c', './lib/adodb/lang/adodb-de.inc.php', '2.0RC2', 0), -('8a53c82baf19cf137ef125d7e410c647', './lib/adodb/lang/adodb-pl.inc.php', '2.0RC2', 0), -('50f80907419c441e57cd85b47963c31c', './lib/adodb/pear/Auth/Container/ADOdb.php', '2.0RC2', 0), -('910543f2a3201ceb3e78b7bd16aff1a3', './lib/adodb/perf/perf-mssql.inc.php', '2.0RC2', 0), -('d4945374ff45efeee53f282f891dfc47', './lib/adodb/perf/perf-oci8.inc.php', '2.0RC2', 0), -('387ac186dc5c8354a09c33a27ea96bc4', './lib/adodb/perf/perf-informix.inc.php', '2.0RC2', 0), -('54620988fff934aa3579b9b267f3dbd8', './lib/adodb/perf/perf-db2.inc.php', '2.0RC2', 0), -('becb5c28da5df747b22e0351bd0775b8', './lib/adodb/perf/perf-postgres.inc.php', '2.0RC2', 0), -('b02b7f912ac88eab88e6cda7e0580378', './lib/adodb/perf/perf-mysql.inc.php', '2.0RC2', 0), -('e457eb293bb2ebbddc9ce46dee6df122', './lib/adodb/adodb-xmlschema.inc.php', '2.0RC2', 0), -('8dc22611871d8575322f0893b88b3ac3', './lib/adodb/adodb-errorpear.inc.php', '2.0RC2', 0), -('4c4075cabe540650f9cbcfeaffceaabd', './lib/adodb/contrib/toxmlrpc.inc.php', '2.0RC2', 0), -('59ac75aa1201eee20c5a58766c0ba732', './lib/adodb/pivottable.inc.php', '2.0RC2', 0), -('983395b65b1ff947e8270912c8697d35', './lib/adodb/datadict/datadict-firebird.inc.php', '2.0RC2', 0), -('3e04406bb3cd85791c21969eb7822ec8', './lib/adodb/datadict/datadict-oci8.inc.php', '2.0RC2', 0), -('52677976ba0ca5e62561bbe9350afa3e', './lib/adodb/datadict/datadict-access.inc.php', '2.0RC2', 0), -('f95697571f97a72b27938551dffdeec4', './lib/adodb/datadict/datadict-informix.inc.php', '2.0RC2', 0), -('d21c9d0187bd1384621b7129921d3f32', './lib/adodb/datadict/datadict-mysql.inc.php', '2.0RC2', 0), -('e284890cbcdbdac10a5f5b3790f73a7e', './lib/adodb/datadict/datadict-sapdb.inc.php', '2.0RC2', 0), -('c949d0a961e029f2e9d55adc1aa4d335', './lib/adodb/datadict/datadict-sybase.inc.php', '2.0RC2', 0), -('03f588a2bf53f44dc5d46e05e9b00893', './lib/adodb/datadict/datadict-postgres.inc.php', '2.0RC2', 0), -('6d3798f902ced70e0366f3e771a6076e', './lib/adodb/datadict/datadict-mssql.inc.php', '2.0RC2', 0), -('1c2489aa806e1cf240e6cdda72ba4d80', './lib/adodb/datadict/datadict-ibase.inc.php', '2.0RC2', 0), -('c480c241f721a39334fd101292b10be4', './lib/adodb/datadict/datadict-generic.inc.php', '2.0RC2', 0), -('c886bf3cbbea2dd0a54f056b1dd46d06', './lib/adodb/datadict/datadict-db2.inc.php', '2.0RC2', 0), -('fc057f9368019672f6e9dc519af709f6', './lib/adodb/tests/testoci8cursor.php', '2.0RC2', 0), -('15760f299c223f7345703c6b14e38cdc', './lib/adodb/tests/testgenid.php', '2.0RC2', 0), -('b95e98b55a0c97573682d39616eafc6d', './lib/adodb/tests/test-perf.php', '2.0RC2', 0), -('17839e30cd3e133f1e8846ba5a415503', './lib/adodb/tests/test-datadict.php', '2.0RC2', 0), -('2f5ec8df77acaa27e323fe5f8dc3a0a7', './lib/adodb/tests/test-active-recs2.php', '2.0RC2', 0), -('c4dd89795666b4acdf3017eb29ff573c', './lib/adodb/tests/test.php', '2.0RC2', 0), -('40d45dd0fcd938bcf7a6ae5a9787de8e', './lib/adodb/tests/testpear.php', '2.0RC2', 0), -('31a5f5bac2da5fbe7543ae655a756655', './lib/adodb/tests/benchmark.php', '2.0RC2', 0), -('613264e7526ea7f9208802d65df2e937', './lib/adodb/tests/testoci8.php', '2.0RC2', 0), -('9d06f390e480a588481846be34627791', './lib/adodb/tests/test-active-record.php', '2.0RC2', 0), -('d4817795321657e797bc93b48f7e469f', './lib/adodb/tests/test-php5.php', '2.0RC2', 0), -('62b6b5f397babd852597f9d9ec5749fe', './lib/adodb/tests/test-pgblob.php', '2.0RC2', 0), -('bcce85a3d9094fff9faae4d2f5285c10', './lib/adodb/tests/client.php', '2.0RC2', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES -('3d7a43b2eb78e4442b082da5a04e42b7', './lib/adodb/tests/tmssql.php', '2.0RC2', 0), -('db8fb5fab3ba96323e56fe1d190c5e3c', './lib/adodb/tests/testdatabases.inc.php', '2.0RC2', 0), -('96889719b7a1986861ab240e6ad17dd7', './lib/adodb/tests/pdo.php', '2.0RC2', 0), -('5e59363e3c8ec6a13f472bbc480ae37b', './lib/adodb/tests/testmssql.php', '2.0RC2', 0), -('463dc422e3868a1f0a4cead57ca2eb6a', './lib/adodb/tests/testcache.php', '2.0RC2', 0), -('81461b2903f5d46fb3bcb58898bf0ab3', './lib/adodb/tests/time.php', '2.0RC2', 0), -('384bf94f1e4a9ab57dd0808030ba021c', './lib/adodb/tests/test2.php', '2.0RC2', 0), -('c17ff25cc323c684b23907c27e4b5189', './lib/adodb/tests/test3.php', '2.0RC2', 0), -('f646fd75c76719350ef8df887b38fdac', './lib/adodb/tests/test4.php', '2.0RC2', 0), -('e153f89217fa652f88c4676f48cdff19', './lib/adodb/tests/test5.php', '2.0RC2', 0), -('e1ab5e2db9feaafbf882fa6ec07ad815', './lib/adodb/tests/testsessions.php', '2.0RC2', 0), -('1ccf2778737a7c41eab84989e464a642', './lib/adodb/tests/test_rs_array.php', '2.0RC2', 0), -('c64f9923dda687bb398a44ceb708197a', './lib/adodb/tests/test-xmlschema.php', '2.0RC2', 0), -('38d7428d726642e7c79790764c1e98a8', './lib/adodb/tests/testpaging.php', '2.0RC2', 0), -('9b4aa7b9cf9bcae570b2430c7a318100', './lib/adodb/toexport.inc.php', '2.0RC2', 0), -('27041df19e7e26003c6636b5b966e953', './lib/adodb/adodb-active-record.inc.php', '2.0RC2', 0), -('8a8c2d722a743fac7d8ec1a211c95816', './lib/adodb/drivers/adodb-sqlanywhere.inc.php', '2.0RC2', 0), -('0444b4e04277008c59109fc2774904af', './lib/adodb/drivers/adodb-mysql.inc.php', '2.0RC2', 0), -('b24b93fd109aee001c5084eb73463833', './lib/adodb/drivers/adodb-sapdb.inc.php', '2.0RC2', 0), -('ebcfe590dcc6a4e2151e5a48e9dd1500', './lib/adodb/drivers/adodb-firebird.inc.php', '2.0RC2', 0), -('a0125d16451fe1e3facb37c5573fffb7', './lib/adodb/drivers/adodb-informix72.inc.php', '2.0RC2', 0), -('9a375665b1c0c1a0187fa5f07e4dc4ae', './lib/adodb/drivers/adodb-csv.inc.php', '2.0RC2', 0), -('7b0e2f5eb97b4225aabfac7fa4f6180b', './lib/adodb/drivers/adodb-pdo_oci.inc.php', '2.0RC2', 0), -('1485f279648340975a3f0fc0f94652ce', './lib/adodb/drivers/adodb-mssqlpo.inc.php', '2.0RC2', 0), -('cd278e707137ccc4a7ef98d50186eefa', './lib/adodb/drivers/adodb-pdo_mysql.inc.php', '2.0RC2', 0), -('30a532a1c184b272aa916f9b3103e2a2', './lib/adodb/drivers/adodb-sybase.inc.php', '2.0RC2', 0), -('5b1158c5102e628f062b3406f10a49c3', './lib/adodb/drivers/adodb-mssql_n.inc.php', '2.0RC2', 0), -('55125576231d62e6caa854e5885ed8b2', './lib/adodb/drivers/adodb-oracle.inc.php', '2.0RC2', 0), -('04f05095ef97203baa950f1d00c09dca', './lib/adodb/drivers/adodb-postgres8.inc.php', '2.0RC2', 0), -('40aba3fda700e35da3fd54911adde636', './lib/adodb/drivers/adodb-vfp.inc.php', '2.0RC2', 0), -('bedb00f83664e4f36422e6531b20801d', './lib/adodb/drivers/adodb-fbsql.inc.php', '2.0RC2', 0), -('b682e27b8f1a200c49f7296d352a39df', './lib/adodb/drivers/adodb-informix.inc.php', '2.0RC2', 0), -('731d1e634c5ca6ccb098cb3dfd68df72', './lib/adodb/drivers/adodb-netezza.inc.php', '2.0RC2', 0), -('b9d7172424837a95fc54816a170cd265', './lib/adodb/drivers/adodb-pdo_pgsql.inc.php', '2.0RC2', 0), -('91908486b2e2c73ba2ca0fd7f95eeb09', './lib/adodb/drivers/adodb-proxy.inc.php', '2.0RC2', 0), -('c93902e1222f70dfca33c7e2a8f5c65b', './lib/adodb/drivers/adodb-ado_access.inc.php', '2.0RC2', 0), -('b1d3d4099da759ca40d33498de4474ab', './lib/adodb/drivers/adodb-sqlitepo.inc.php', '2.0RC2', 0), -('76bfa50c773e8c4e49397e24dc54e50b', './lib/adodb/drivers/adodb-mssql.inc.php', '2.0RC2', 0), -('00edf79582d3db76b98be95741d11652', './lib/adodb/drivers/adodb-ibase.inc.php', '2.0RC2', 0), -('805800754a132e0c5773cdfb2fcbeae4', './lib/adodb/drivers/adodb-mysqli.inc.php', '2.0RC2', 0), -('327f2e2c8d609bcbaf89856c4290fea7', './lib/adodb/drivers/adodb-postgres64.inc.php', '2.0RC2', 0), -('3d2aed1de5d830719cd9bc7e8bceb94b', './lib/adodb/drivers/adodb-borland_ibase.inc.php', '2.0RC2', 0), -('a2eb1485f203b1cba57f352eea89e787', './lib/adodb/drivers/adodb-odbtp.inc.php', '2.0RC2', 0), -('e7c17d07dbca2d4f9e354837a05b8a72', './lib/adodb/drivers/adodb-sqlite.inc.php', '2.0RC2', 0), -('517644c4c0009a7d87984369d014b5a4', './lib/adodb/drivers/adodb-oci805.inc.php', '2.0RC2', 0), -('3848e47228c3cc0ad3dd5ae549ade026', './lib/adodb/drivers/adodb-pdo_mssql.inc.php', '2.0RC2', 0), -('46843b9cb59199566e238d27173d034d', './lib/adodb/drivers/adodb-db2.inc.php', '2.0RC2', 0), -('aa8da533eec4bc949c8602f2c42acbc7', './lib/adodb/drivers/adodb-odbc_oracle.inc.php', '2.0RC2', 0), -('f96f3f9583b76d60e0d6e129b8ea9a80', './lib/adodb/drivers/adodb-ldap.inc.php', '2.0RC2', 0), -('9f0fd089707cd5feaaa4d831e0824248', './lib/adodb/drivers/adodb-sybase_ase.inc.php', '2.0RC2', 0), -('143ca93f196a89f6d277a81fa1126ce0', './lib/adodb/drivers/adodb-pdo.inc.php', '2.0RC2', 0), -('afca8624f8c787a1d96a47728e157f70', './lib/adodb/drivers/adodb-odbc.inc.php', '2.0RC2', 0), -('4400d7c45558b7defd5a74a89da11941', './lib/adodb/drivers/adodb-postgres7.inc.php', '2.0RC2', 0), -('9324550360ae31f9a901dc085f57ce3b', './lib/adodb/drivers/adodb-odbc_mssql.inc.php', '2.0RC2', 0), -('d2fa1b38d0e73f97f87c14836a656ed2', './lib/adodb/drivers/adodb-odbc_db2.inc.php', '2.0RC2', 0), -('d9ce644554fe8e8c359d52bceedd7208', './lib/adodb/drivers/adodb-postgres.inc.php', '2.0RC2', 0), -('c6e7ad32e000333c710bc2e44c11966a', './lib/adodb/drivers/adodb-ado.inc.php', '2.0RC2', 0), -('1a9d20c9a5be619c7509bd2c48e04e87', './lib/adodb/drivers/adodb-odbtp_unicode.inc.php', '2.0RC2', 0), -('d7886a1b94a10c4f40274acb2fff7118', './lib/adodb/drivers/adodb-mysqlt.inc.php', '2.0RC2', 0), -('55dceacd0cdda70ab5f0c8e8dc7023ad', './lib/adodb/drivers/adodb-access.inc.php', '2.0RC2', 0), -('04991c8d98a4a7ccd16f314bae400da4', './lib/adodb/drivers/adodb-ado5.inc.php', '2.0RC2', 0), -('bb5f839f43307b97ff29a20addd019a7', './lib/adodb/drivers/adodb-ado_mssql.inc.php', '2.0RC2', 0), -('0f1c60cfbf059be6c295a7b610dc7ed1', './lib/adodb/drivers/adodb-oci8.inc.php', '2.0RC2', 0), -('a3cc03c03583d23f0c1d7992a230b238', './lib/adodb/drivers/adodb-oci8po.inc.php', '2.0RC2', 0), -('2218ec5dbc7d23ac8e368682c97e2673', './lib/adodb/adodb-time.inc.php', '2.0RC2', 0), -('7b4b760b1dfbb9d75e2da1a205a6eee0', './lib/adodb/session/old/adodb-session.php', '2.0RC2', 0), -('b1e3fde8aa5e17803cf7f71ceab41eb1', './lib/adodb/session/old/adodb-cryptsession.php', '2.0RC2', 0), -('b1005b2a5ceeb0eb32f43754df982b85', './lib/adodb/session/old/adodb-session-clob.php', '2.0RC2', 0), -('5a4e4fde0da690423376a99610929101', './lib/adodb/session/old/crypt.inc.php', '2.0RC2', 0), -('dc62304af1e8d150cf5991140f0b661f', './lib/adodb/session/adodb-encrypt-secret.php', '2.0RC2', 0), -('5320c5909468cf8da48be212d5f17e69', './lib/adodb/session/adodb-session-clob2.php', '2.0RC2', 0), -('d626f4cf5eac1aabaa4670004b200927', './lib/adodb/session/adodb-session.php', '2.0RC2', 0), -('e412af27b6096280e84f09de5f3ed45d', './lib/adodb/session/adodb-session2.php', '2.0RC2', 0), -('891591e9e110253506f4ef3698763f15', './lib/adodb/session/adodb-cryptsession2.php', '2.0RC2', 0), -('f31ec5f11766050a5a09eb949591ef8c', './lib/adodb/session/adodb-cryptsession.php', '2.0RC2', 0), -('5c928ad5f9385ce8ebf35c8c62fe729d', './lib/adodb/session/adodb-encrypt-sha1.php', '2.0RC2', 0), -('91d00695c6daa654d2cf90d1cd3bd9bb', './lib/adodb/session/adodb-encrypt-mcrypt.php', '2.0RC2', 0), -('2031d7938cfdad2bdb7313bbbeba7d64', './lib/adodb/session/adodb-session-clob.php', '2.0RC2', 0), -('2e6c5151bf94c4459f03810913bbfff8', './lib/adodb/session/adodb-encrypt-md5.php', '2.0RC2', 0), -('4dad264ca0f5f669be480305f6be8835', './lib/adodb/session/crypt.inc.php', '2.0RC2', 0), -('e0a2bbf7e74f4dfe4d9e566b0ae60efa', './lib/adodb/session/adodb-compress-bzip2.php', '2.0RC2', 0), -('98f5800a8c346669b04d71a0c18d09cd', './lib/adodb/session/adodb-compress-gzip.php', '2.0RC2', 0), -('116b5a012b8239a579350d59085be760', './lib/adodb/adodb-pager.inc.php', '2.0RC2', 0), -('6fadbe98d6b4aaf50a8cb995c1367a98', './lib/adodb/adodb-pear.inc.php', '2.0RC2', 0), -('00f12d502477c5e6269deab7704f4c4c', './lib/adodb/rsfilter.inc.php', '2.0RC2', 0), -('cc8f9d0b3ad4bde67b240b1157957dc4', './lib/adodb/adodb-datadict.inc.php', '2.0RC2', 0), -('35d5dd80cc9abb43d9b10a8e4e1ca4bb', './lib/adodb/adodb-error.inc.php', '2.0RC2', 0), -('ae7ac1361b2ec349b7c72bcae59d65ae', './lib/adodb/adodb-memcache.lib.inc.php', '2.0RC2', 0), -('c0c793eddb3bdbb9519535b2adf7fdd5', './lib/adodb/adodb-exceptions.inc.php', '2.0RC2', 0), -('96d3ab982fae1d9a6d22b76cafc4562b', './lib/adodb/server.php', '2.0RC2', 0), -('81dbfdc19d7ed389f8477589909b34e2', './lib/adodb/adodb-csvlib.inc.php', '2.0RC2', 0), -('7a770207a0fe75d93ac4500387683b6c', './lib/adodb/adodb-iterator.inc.php', '2.0RC2', 0), -('19f969e1c4ca3aa0a7a48111b2138a35', './lib/adodb/adodb-errorhandler.inc.php', '2.0RC2', 0), -('8bf81abf5083252890cc9e2d0c1e92c0', './lib/adodb/adodb-lib.inc.php', '2.0RC2', 0), -('3b686c0543c7dd714ea841949860de8f', './lib/adodb/adodb-perf.inc.php', '2.0RC2', 0), -('1bb99e7eb0931eba0c07584ba253a05f', './lib/adodb/adodb.inc.php', '2.0RC2', 0), -('15afa6846004f177a678c835c7f82204', './lib/adodb/adodb-php4.inc.php', '2.0RC2', 0), -('22f42d417766568451071cfa8bcfeef2', './lib/adodb/tohtml.inc.php', '2.0RC2', 0), -('66365c071d3777b4730794ccfbf3b20b', './lib/adodb/adodb-xmlschema03.inc.php', '2.0RC2', 0), -('fdff2f7ef14b1ba65346bdbf17b6dfce', './lib/cache/cachelib.php', '2.0RC2', 0), -('b875473a61a5c01f793578a7c37ca833', './lib/cache/index.php', '2.0RC2', 0), -('a3456e3f5637a9f20941666ac41bb52a', './lib/blogs/index.php', '2.0RC2', 0), -('b386c1d0e24de6b38a2c691e18704e12', './lib/blogs/bloglib.php', '2.0RC2', 0), -('70ecda0270805b31fcaa9e590dc796ab', './lib/debug/debug-command_print.php', '2.0RC2', 0), -('6804abe86ff9fe090b48fbcfbc76276a', './lib/debug/debugger-common.php', '2.0RC2', 0), -('112f000489941f2b5d0b972e309bd22f', './lib/debug/debug-command_sql.php', '2.0RC2', 0), -('ccee2bbc1558f976094944cf5cb90b60', './lib/debug/debug-command_slist.php', '2.0RC2', 0), -('1c9611d121042c07d9ccf7ad9e7135e4', './lib/debug/debug-command_dmsg.php', '2.0RC2', 0), -('f25b71666fa143db0bb23f3d3032c22a', './lib/debug/debug-command_watch.php', '2.0RC2', 0), -('63871239cf314e6ba163dae2701d4117', './lib/debug/debugger.php', '2.0RC2', 0), -('5b132b6b66af8f64eea6b7a4e0c06825', './lib/debug/debug-command_sprint.php', '2.0RC2', 0), -('548f8553fcce3a8ce54d8c69136817ab', './lib/debug/debugger-ext.php', '2.0RC2', 0), -('5a0ffd49cd3bec92fb2b1d2c37908637', './lib/debug/debug-command_perm.php', '2.0RC2', 0), -('fea21434d431c5802e9c1175c56e0e03', './lib/debug/debug-command_features.php', '2.0RC2', 0), -('da92ad13c247a5a06bf70c01b0106f79', './lib/debug/index.php', '2.0RC2', 0), -('e66dde2bb1f1ffd6800a8cd0972effeb', './lib/debug/debug-command_tikitables.php', '2.0RC2', 0), -('3484338f0f478b6cb3ed5ef5d68198e8', './lib/debug/debug-command_test.php', '2.0RC2', 0), -('04e47a2c5ebbcc3424521302622b3e63', './lib/Babelfish.php', '2.0RC2', 0), -('49776db3a98bc0e7031efe14c24c3003', './lib/games/gamelib.php', '2.0RC2', 0), -('5332b8e28270f59951be710a1cda32c5', './lib/games/index.php', '2.0RC2', 0), -('6b1e32f371fd754d980f71d49ed4c1cb', './lib/profilelib/installlib.php', '2.0RC2', 0), -('1436535a33c19d0f8aa91ab9cac84330', './lib/profilelib/listlib.php', '2.0RC2', 0), -('cdf82bfe3325e56a3a60e645a77cfc00', './lib/profilelib/profilelib.php', '2.0RC2', 0), -('6af230dc127bf4c3d0872ea071285bef', './lib/messu/index.php', '2.0RC2', 0), -('232b8e5b5752323d5b996e11ef24be8d', './lib/messu/messulib.php', '2.0RC2', 0), -('faeed11a7b7cdfaecd035d325563fb6d', './lib/shoutbox/index.php', '2.0RC2', 0), -('d099eb5d4bded2b6857245ce28505eb9', './lib/shoutbox/shoutboxlib.php', '2.0RC2', 0), -('8422ebf622ac921a81a7382fdbc025b0', './lib/polls/index.php', '2.0RC2', 0), -('2c31723aff3f7f5ef9c40aa800bcad9f', './lib/polls/polllib_shared.php', '2.0RC2', 0), -('053a801154fe7ef23fda4d208ccb41e2', './lib/polls/polllib.php', '2.0RC2', 0), -('c0f4abd6b144d89a7168995ad6d93e98', './lib/tikifck.php', '2.0RC2', 0), -('66b3e768387f67fb19d3794634a87404', './lib/score/scorelib.php', '2.0RC2', 0), -('6560843dc38e3b3725689f83267ca163', './lib/score/index.php', '2.0RC2', 0), -('0ce3b3d87191e92b90ceaaaff4b9d73c', './lib/score/events.php', '2.0RC2', 0), -('ef827f6efb5a19f5a0913113c5e6fb91', './lib/setup/twversion.class.php', '2.0RC2', 0), -('d31f5438ad11248a7e1a9972df156708', './lib/setup/menus.php', '2.0RC2', 0), -('f7e0507b0f451b43a1891bd468136a40', './lib/setup/site_closed.php', '2.0RC2', 0), -('388f50e0c8004ba6192c9c3255d6552b', './lib/setup/last_update.php', '2.0RC2', 0), -('2eac685a3922f027b6c4055840d06d56', './lib/setup/patches.php', '2.0RC2', 0), -('c8a4bb2206f7dab3461605bc3d6accda', './lib/setup/comments_zone.php', '2.0RC2', 0), -('004f9c87c35332944a875ddb06585ac5', './lib/setup/cookies.php', '2.0RC2', 0), -('54ec7e777c0d6815ca96782766f59142', './lib/setup/userlevels.php', '2.0RC2', 0), -('5ae6fc105357bdf703e8ac01fe5aaeda', './lib/setup/dynamic_variables.php', '2.0RC2', 0), -('c06d403dc1006707697551265d120538', './lib/setup/load_threshold.php', '2.0RC2', 0), -('070ffa9af1f73301b21e2b42794edde8', './lib/setup/usermenu.php', '2.0RC2', 0), -('1c60407f5cdf1294a1c7fdc0c91fb4d7', './lib/setup/prefs.php', '2.0RC2', 0), -('9d10480d9ffcd4b2bf6d63cfd7a314d3', './lib/setup/output_compression.php', '2.0RC2', 0), -('30cb221f43b374871fc96c5bccddc850', './lib/setup/polls.php', '2.0RC2', 0), -('add5233e59fdb40693a54e3951d0c9a1', './lib/setup/freetags.php', '2.0RC2', 0), -('d1f365ad3d12a79c5ef04720d3f9c251', './lib/setup/breadcrumb.php', '2.0RC2', 0), -('55fd36a65e649bd5c77cc5ec385ccb95', './lib/setup/fullscreen.php', '2.0RC2', 0), -('e8f2d07e51698bd65cd78cf725f3b1cd', './lib/setup/error_reporting.php', '2.0RC2', 0), -('54e3f11ca3132149586a0ceabe1a4d51', './lib/setup/timer.class.php', '2.0RC2', 0), -('0142f2a91f579ea97a119955bc8576f4', './lib/setup/theme.php', '2.0RC2', 0), -('263ddbaafe83275c2ad4336664a2b46e', './lib/setup/sections.php', '2.0RC2', 0), -('a0e12e0ad4ef22991aeede64a7eb0bd2', './lib/setup/compatibility.php', '2.0RC2', 0), -('0cc81ad171074485ceb9c4eee1ca1bc0', './lib/setup/wiki.php', '2.0RC2', 0), -('d3925518af24344caf4ec3bf9e56cb6a', './lib/setup/tikisetup.class.php', '2.0RC2', 0), -('44e12ce1649be385abaa9b8fe9cfabad', './lib/setup/js_detect.php', '2.0RC2', 0), -('2d8a9f2e780768a3efe828b248771a4c', './lib/setup/language.php', '2.0RC2', 0), -('b61f0076ac23b2ef8350b60dc10f17b0', './lib/setup/stats.php', '2.0RC2', 0), -('fecd0db1d7e45deebb873ce39ec1e4ca', './lib/setup/absolute_urls.php', '2.0RC2', 0), -('ba956e6ab2b91a74aa69e36505b8a952', './lib/setup/user_prefs.php', '2.0RC2', 0), -('25e668470111ed00b9237305d159dfde', './lib/setup/mailin.php', '2.0RC2', 0), -('5886c68d04a23bfb55c522e77126936b', './lib/setup/default_homepage.php', '2.0RC2', 0), -('1f7e85652465887090dfd2a950929349', './lib/setup/openid.php', '2.0RC2', 0), -('0f84561b5c7a8a22a8ed210e4fed8c42', './lib/setup/babelfish.php', '2.0RC2', 0), -('37e78b4c59949405bff991ec41284443', './lib/setup/set_paths.php', '2.0RC2', 0), -('b1097115d6b6bf7a7271e1e76325b391', './lib/setup/live_support.php', '2.0RC2', 0), -('dbad3544fd4261bd08e54ac5a6552adc', './lib/setup/challenge.php', '2.0RC2', 0), -('4d0af2288f9ae81d541305f3e974affa', './lib/setup/integrator.php', '2.0RC2', 0), -('cae42f2fff2839a17130437147b47e42', './lib/setup/categories.php', '2.0RC2', 0), -('45a14382d3e1026220b7fd0a3d2f06be', './lib/sheet/ole/pps/file.php', '2.0RC2', 0), -('48ab15f208acf2c4e322be5bf2bee229', './lib/sheet/ole/pps/root.php', '2.0RC2', 0), -('eaa98592298ff16f56dcdd4d7cb32e34', './lib/sheet/ole/pps/index.php', '2.0RC2', 0), -('71e5a60e5bbbb315d20de2bf57a6d697', './lib/sheet/ole/index.php', '2.0RC2', 0), -('fef41dbe5f460d9db0f7758447360773', './lib/sheet/ole/pps.php', '2.0RC2', 0), -('d1eaa4d875c4ef9395baf2d3586e6cf8', './lib/sheet/conf/config.inc.php', '2.0RC2', 0), -('647c845d4f38d5ee0b4f3544ada9574b', './lib/sheet/excel/reader_ole.php', '2.0RC2', 0), -('17b72c4ed8f1b04577f6068fafba01b4', './lib/sheet/excel/writer.php', '2.0RC2', 0), -('3080b50803d3ba167ce5f72f448be062', './lib/sheet/excel/reader.php', '2.0RC2', 0), -('c6c44e6076b1d4215fa95a730e04ba49', './lib/sheet/excel/index.php', '2.0RC2', 0), -('bee09bca686bdf61eea4a9a1b3c9037b', './lib/sheet/excel/writer/parser.php', '2.0RC2', 0), -('5ba05644ffe02932b7195db5f5338c18', './lib/sheet/excel/writer/validator.php', '2.0RC2', 0), -('8e316edd44894a81497e05a065d27f9a', './lib/sheet/excel/writer/worksheet.php', '2.0RC2', 0), -('2f2bfaba0204291fb5d33948fe87af62', './lib/sheet/excel/writer/format.php', '2.0RC2', 0), -('cd76872ca30d0ff5ba340a3f0822358e', './lib/sheet/excel/writer/index.php', '2.0RC2', 0), -('eed825a4c941664ae37ae54cbe5aa3fe', './lib/sheet/excel/writer/workbook.php', '2.0RC2', 0), -('3320b3abbe4a8bf336fe5a9f91ae177b', './lib/sheet/excel/writer/biffwriter.php', '2.0RC... [truncated message content] |
From: <ker...@us...> - 2008-07-30 16:26:04
|
Revision: 13971 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=13971&view=rev Author: kerrnel22 Date: 2008-07-30 16:26:11 +0000 (Wed, 30 Jul 2008) Log Message: ----------- [MOD] Added a 'quiet' option to articles plugin so that you can choose not to have 'No articles.' displayed on your page if there are none. Modified Paths: -------------- trunk/lib/wiki-plugins/wikiplugin_articles.php trunk/templates/tiki-view_articles.tpl Modified: trunk/lib/wiki-plugins/wikiplugin_articles.php =================================================================== --- trunk/lib/wiki-plugins/wikiplugin_articles.php 2008-07-30 16:07:16 UTC (rev 13970) +++ trunk/lib/wiki-plugins/wikiplugin_articles.php 2008-07-30 16:26:11 UTC (rev 13971) @@ -8,7 +8,7 @@ function wikiplugin_articles_help() { $help = tra("Includes articles listing into a wiki page"); $help .= "<br />"; - $help .= tra("~np~{ARTICLES(max=>3, topic=>topicName, topicId=>id, type=>type, categId=>Category parent ID, lang=>en, sort=>columnName_asc|columnName_desc)}{ARTICLES}~/np~"); + $help .= tra("~np~{ARTICLES(max=>3, topic=>topicName, topicId=>id, type=>type, categId=>Category parent ID, lang=>en, sort=>columnName_asc|columnName_desc), quiet=>y|n}{ARTICLES}~/np~"); return $help; } @@ -46,6 +46,10 @@ if (!isset($lang)) $lang = ''; + if (!isset($quiet)) + $quiet = 'n'; + $smarty->assign_by_ref('quiet', $quiet); + include_once("lib/commentslib.php"); $commentslib = new Comments($dbTiki); Modified: trunk/templates/tiki-view_articles.tpl =================================================================== --- trunk/templates/tiki-view_articles.tpl 2008-07-30 16:07:16 UTC (rev 13970) +++ trunk/templates/tiki-view_articles.tpl 2008-07-30 16:26:11 UTC (rev 13971) @@ -139,7 +139,7 @@ </div> {/if} {sectionelse} -{tr}No articles.{/tr} +{if $quiet ne 'y'}{tr}No articles.{/tr}{/if} {/section} {pagination_links cant=$cant step=$maxArticles offset=$offset}{/pagination_links} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ker...@us...> - 2008-07-30 18:02:35
|
Revision: 13973 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=13973&view=rev Author: kerrnel22 Date: 2008-07-30 18:02:42 +0000 (Wed, 30 Jul 2008) Log Message: ----------- [MOD] Updated SLVN to break-out trackers by new vs. updated, and by tracker, as appears in 1.9x version of this module. Modified Paths: -------------- trunk/modules/mod-since_last_visit_new.php trunk/templates/modules/mod-since_last_visit_new.tpl Modified: trunk/modules/mod-since_last_visit_new.php =================================================================== --- trunk/modules/mod-since_last_visit_new.php 2008-07-30 16:41:52 UTC (rev 13972) +++ trunk/modules/mod-since_last_visit_new.php 2008-07-30 18:02:42 UTC (rev 13973) @@ -1,19 +1,21 @@ <?php /* $Id$ */ -/** - * Module to show changes since last visit (new version) +/** Module to show changes since last visit... + * This mod will cull the Tiki database for new or updated content since last + * login. In addition, this will also now break out tracker updates into + * sub-sections, by tracker, separating new items and updated items. */ //this script may only be included - so its better to die if called directly. if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) { - header("location: index.php"); - exit; + header("location: index.php"); + exit; } require_once('lib/smarty_tiki/modifier.userlink.php'); -if (!function_exists('mod_since_last_visit_new_help')) { +if (!function_exists('mod_since_last_new_help')) { function mod_since_last_visit_new_help() { return "showuser=n&showtracker=n&calendar_focus=ignore"; } @@ -21,447 +23,475 @@ if (!function_exists('since_last_visit_new')) { function since_last_visit_new($user, $params = null) { - if (!$user) return false; + if (!$user) return false; - global $tikilib, $userlib, $prefs; - $ret = array(); - $ret["label"] = tra("Since your last visit"); - if ( $params == null ) $params = array(); + global $tikilib, $userlib, $prefs; + $ret = array(); + $ret["label"] = tra("Since your last visit..."); + $ret["version"] = "2.0"; + if ( $params == null ) $params = array(); - if ((empty($params['calendar_focus']) || $params['calendar_focus'] != 'ignore') && strpos($_SERVER["SCRIPT_NAME"],"tiki-calendar.php") && isset($_REQUEST["todate"]) && $_REQUEST["todate"]) { - $last = $_REQUEST["todate"]; - $_SESSION["slvn_last_login"] = $last; - $ret["label"] = tra("Changes")." ".tra("since"); - } - else if (isset($_SESSION["slvn_last_login"])) { - $last = $_SESSION["slvn_last_login"]; - $ret["label"] = tra("Changes since"); - } - else { - $last = $tikilib->getOne("select `lastLogin` from `users_users` where `login`=?",array($user)); - if (!$last) $last = time(); - } - $ret["lastLogin"] = $last; - //if (!isset($_SESSION["slvn_last_login"])) $_SESSION["slvn_last_login"] = $last; - //$last = strtotime ("-2 week"); + if ((empty($params['calendar_focus']) || $params['calendar_focus'] != 'ignore') && strpos($_SERVER["SCRIPT_NAME"],"tiki-calendar.php") && isset($_REQUEST["todate"]) && $_REQUEST["todate"]) { + $last = $_REQUEST["todate"]; + $_SESSION["slvn_last_login"] = $last; + $ret["label"] = tra("Changes")." ".tra("since"); + } else if (isset($_SESSION["slvn_last_login"])) { + $last = $_SESSION["slvn_last_login"]; + $ret["label"] = tra("Changes since"); + } else { + $last = $tikilib->getOne("select `lastLogin` from `users_users` where `login`=?",array($user)); + if (!$last) $last = time(); + } + $ret["lastLogin"] = $last; - $ret["items"]["comments"]["label"] = tra("new comments"); - $ret["items"]["comments"]["cname"] = "slvn_comments_menu"; + $ret["items"]["comments"]["label"] = tra("new comments"); + $ret["items"]["comments"]["cname"] = "slvn_comments_menu"; $query = "select `object`,`objectType`,`title`,`commentDate`,`userName`,`threadId`, `parentId` from `tiki_comments` where `commentDate`>? and `objectType` != 'forum' order by `commentDate` desc"; - $result = $tikilib->query($query, array((int)$last)); + $result = $tikilib->query($query, array((int)$last)); - $count = 0; - while ($res = $result->fetchRow()) - { - switch($res["objectType"]){ - case "article": - $perm = 'tiki_p_read_article'; - $ret["items"]["comments"]["list"][$count]["href"] - = "tiki-read_article.php?articleId=" . $res["object"]; - break; - case "post": - $perm = 'tiki_p_read_blog'; - $ret["items"]["comments"]["list"][$count]["href"] - = "tiki-view_blog_post.php?postId=" . $res["object"]; - break; - case "blog": - $perm = 'tiki_p_read_blog'; - $ret["items"]["comments"]["list"][$count]["href"] - = "tiki-view_blog.php?blogId=" . $res["object"]; - break; - case "faq": - $perm = 'tiki_p_view_faqs'; - $ret["items"]["comments"]["list"][$count]["href"] - = "tiki-view_faq.php?faqId=" . $res["object"]; - break; - case "file gallery": - $perm = 'tiki_p_view_file_gallery'; - $ret["items"]["comments"]["list"][$count]["href"] - = "tiki-list_file_gallery.php?galleryId=" . $res["object"]; - break; - case "image gallery": - $perm = 'tiki_p_view_image_gallery'; - $ret["items"]["comments"]["list"][$count]["href"] - = "tiki-browse_gallery.php?galleryId=" . $res["object"]; - break; - case "poll": - $ret["items"]["comments"]["list"][$count]["href"] - = "tiki-poll_results.php?pollId=" . $res["object"]; - break; - case "wiki page": - $perm = 'tiki_p_view'; - $ret["items"]["comments"]["list"][$count]["href"] - = "tiki-index.php?page=" . urlencode($res["object"]); - break; - default: - $perm = 'tiki_p_read_comments'; - break; - } - if (!isset($perm) || $userlib->user_has_perm_on_object($user,$res['object'], $res['objectType'], $perm)) { - if (isset($ret["items"]["comments"]["list"][$count]["href"])) { - $ret["items"]["comments"]["list"][$count]["href"] .= '&comzone=show#threadId'.$res['threadId']; + $count = 0; + while ($res = $result->fetchRow()) + { + switch($res["objectType"]) { + case "article": + $perm = 'tiki_p_read_article'; + $ret["items"]["comments"]["list"][$count]["href"] + = "tiki-read_article.php?articleId=" . $res["object"]; + break; + case "post": + $perm = 'tiki_p_read_blog'; + $ret["items"]["comments"]["list"][$count]["href"] + = "tiki-view_blog_post.php?postId=" . $res["object"]; + break; + case "blog": + $perm = 'tiki_p_read_blog'; + $ret["items"]["comments"]["list"][$count]["href"] + = "tiki-view_blog.php?blogId=" . $res["object"]; + break; + case "faq": + $perm = 'tiki_p_view_faqs'; + $ret["items"]["comments"]["list"][$count]["href"] + = "tiki-view_faq.php?faqId=" . $res["object"]; + break; + case "file gallery": + $perm = 'tiki_p_view_file_gallery'; + $ret["items"]["comments"]["list"][$count]["href"] + = "tiki-list_file_gallery.php?galleryId=" . $res["object"]; + break; + case "image gallery": + $perm = 'tiki_p_view_image_gallery'; + $ret["items"]["comments"]["list"][$count]["href"] + = "tiki-browse_gallery.php?galleryId=" . $res["object"]; + break; + case "poll": + // no perm check for viewing polls, only a perm for taking them + $ret["items"]["comments"]["list"][$count]["href"] + = "tiki-poll_results.php?pollId=" . $res["object"]; + break; + case "wiki page": + $perm = 'tiki_p_view'; + $ret["items"]["comments"]["list"][$count]["href"] + = "tiki-index.php?page=" . urlencode($res["object"]); + break; + default: + $perm = 'tiki_p_read_comments'; + break; + } + + if (!isset($perm) || $userlib->user_has_perm_on_object($user,$res['object'], $res['objectType'], $perm)) { + if (isset($ret["items"]["comments"]["list"][$count]["href"])) { + $ret["items"]["comments"]["list"][$count]["href"] .= '&comments_show=y#threadId'.$res['threadId']; + } + $ret["items"]["comments"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["commentDate"]) ." ". tra("by") ." ". $res["userName"]; + $ret["items"]["comments"]["list"][$count]["label"] = $res["title"]; + $count++; + } + } + $ret["items"]["comments"]["count"] = $count; + + + ///////////////////////////////////////////////////////////////////////// + // FORUMS + if ($prefs['feature_forums'] == 'y') { + $ret["items"]["posts"]["label"] = tra("new posts"); + $ret["items"]["posts"]["cname"] = "slvn_posts_menu"; + $query = "select `object`,`objectType`,`title`,`commentDate`,`userName`,`threadId`, `parentId` from `tiki_comments` where `commentDate`>? and `objectType` = 'forum' order by `commentDate` desc"; + $result = $tikilib->query($query, array((int)$last)); + + $count = 0; + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['object'], $res['objectType'], 'tiki_p_forum_read')) { + $ret["items"]["posts"]["list"][$count]["href"] + = "tiki-view_forum_thread.php?forumId=" . $res["object"] . "&comments_parentId="; + if ($res["parentId"]) { + $ret["items"]["posts"]["list"][$count]["href"].=$res["parentId"].'#threadId'.$res['threadId']; + } else { + $ret["items"]["posts"]["list"][$count]["href"].=$res["threadId"]; } - $ret["items"]["comments"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["commentDate"]) ." ". tra("by") ." ". trim(strip_tags(smarty_modifier_userlink($res["userName"]))); - $ret["items"]["comments"]["list"][$count]["label"] = $res["title"]; - $count++; + $ret["items"]["posts"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["commentDate"]) ." ". tra("by") ." ". $res["userName"]; + $ret["items"]["posts"]["list"][$count]["label"] = $res["title"]; + ++$count; + } + } + $ret["items"]["posts"]["count"] = $count; } - } - $ret["items"]["comments"]["count"] = $count; - if ($prefs['feature_forums'] == 'y') { - $ret["items"]["posts"]["label"] = tra("new posts"); - $ret["items"]["posts"]["cname"] = "slvn_posts_menu"; - $query = "select `object`,`objectType`,`title`,`commentDate`,`userName`,`threadId`, `parentId` from `tiki_comments` where `commentDate`>? and `objectType` = 'forum' order by `commentDate` desc"; - $result = $tikilib->query($query, array((int)$last)); - $count = 0; - while ($res = $result->fetchRow()) - { - if ($userlib->user_has_perm_on_object($user,$res['object'], $res['objectType'], 'tiki_p_forum_read')) { - $ret["items"]["posts"]["list"][$count]["href"] - = "tiki-view_forum_thread.php?forumId=" . $res["object"] . "&comments_parentId="; - if ($res["parentId"]) { - $ret["items"]["posts"]["list"][$count]["href"].=$res["parentId"].'#threadId'.$res['threadId']; - } else { - $ret["items"]["posts"]["list"][$count]["href"].=$res["threadId"]; - } - $ret["items"]["posts"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["commentDate"]) ." ". tra("by") ." ". trim(strip_tags(smarty_modifier_userlink($res["userName"]))); - $ret["items"]["posts"]["list"][$count]["label"] = $res["title"]; - ++$count; - } - } - $ret["items"]["posts"]["count"] = $count; - } + ///////////////////////////////////////////////////////////////////////// + // WIKI PAGES + if ($prefs['feature_wiki'] == 'y') { + // && $tikilib->getOne("select count(*) from `tiki_pages` where `lastModif`>?",array((int)$last))!=0) { + $ret["items"]["pages"]["label"] = tra("wiki pages changed"); + $ret["items"]["pages"]["cname"] = "slvn_pages_menu"; + $query = "select `pageName`, `user`, `lastModif` from `tiki_pages` where `lastModif`>? order by `lastModif` desc"; + $result = $tikilib->query($query, array((int)$last)); - if ($prefs['feature_wiki'] == 'y') { - // && $tikilib->getOne("select count(*) from `tiki_pages` where `lastModif`>?",array((int)$last))!=0) { - $ret["items"]["pages"]["label"] = tra("wiki pages changed"); - $ret["items"]["pages"]["cname"] = "slvn_pages_menu"; - $query = "select `pageName`, `user`, `lastModif` from `tiki_pages` where `lastModif`>? order by `lastModif` desc"; - $result = $tikilib->query($query, array((int)$last)); + $count = 0; + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['pageName'], 'wiki page', 'tiki_p_view')) { + $ret["items"]["pages"]["list"][$count]["href"] = "tiki-index.php?page=" . urlencode($res["pageName"]); + $ret["items"]["pages"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["lastModif"]) ." ". tra("by") ." ". $res["user"]; + $ret["items"]["pages"]["list"][$count]["label"] = $res["pageName"]; + $count++; + } + } + $ret["items"]["pages"]["count"] = $count; + } - $count = 0; - while ($res = $result->fetchRow()) - { - if ($userlib->user_has_perm_on_object($user,$res['pageName'], 'wiki page', 'tiki_p_view')) { - $ret["items"]["pages"]["list"][$count]["href"] = "tiki-index.php?page=" . urlencode($res["pageName"]); - $ret["items"]["pages"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["lastModif"]); - if ($prefs['wiki_authors_style'] != 'lastmodif') - $ret["items"]["pages"]["list"][$count]["title"] .= " ". tra("by") ." ". trim(strip_tags(smarty_modifier_userlink($res["user"]))); - $ret["items"]["pages"]["list"][$count]["label"] = $res["pageName"]; - $count++; - } - } - $ret["items"]["pages"]["count"] = $count; - } - if ($prefs['feature_articles'] == 'y' ) { - $ret["items"]["articles"]["label"] = tra("new articles"); - $ret["items"]["articles"]["cname"] = "slvn_articles_menu"; + ///////////////////////////////////////////////////////////////////////// + // ARTICLES + if ($prefs['feature_articles'] == 'y' ) { + $ret["items"]["articles"]["label"] = tra("new articles"); + $ret["items"]["articles"]["cname"] = "slvn_articles_menu"; - if($userlib->user_has_permission($user, "tiki_p_edit_article")) { - $query = "select `articleId`,`title`,`publishDate`,`authorName` from `tiki_articles` where `created`>? and `expireDate`>?"; - $bindvars = array((int)$last,time()); - }else { - $query = "select `articleId`,`title`,`publishDate`,`authorName` from `tiki_articles` where `publishDate`>? and `publishDate`<=? and `expireDate`>?"; - $bindvars = array((int)$last,time(),time()); - } - $result = $tikilib->query($query, $bindvars); + if($userlib->user_has_permission($user, "tiki_p_edit_article")) { + $query = "select `articleId`,`title`,`publishDate`,`authorName` from `tiki_articles` where `created`>? and `expireDate`>?"; + $bindvars = array((int)$last,time()); + } else { + $query = "select `articleId`,`title`,`publishDate`,`authorName` from `tiki_articles` where `publishDate`>? and `publishDate`<=? and `expireDate`>?"; + $bindvars = array((int)$last,time(),time()); + } + $result = $tikilib->query($query, $bindvars); - $count = 0; - while ($res = $result->fetchRow()) - { - if ($userlib->user_has_perm_on_object($user,$res['articleId'], 'article', 'tiki_p_read_article')) { - $ret["items"]["articles"]["list"][$count]["href"] = "tiki-read_article.php?articleId=" . $res["articleId"]; - $ret["items"]["articles"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["publishDate"]) ." ". tra("by") ." ". $res["authorName"]; - $ret["items"]["articles"]["list"][$count]["label"] = $res["title"]; - $count++; - } - } - $ret["items"]["articles"]["count"] = $count; - } - - if ($prefs['feature_submissions'] == 'y' && $userlib->user_has_permission($user, "tiki_p_edit_submission")) { - $ret["items"]["submissions"]["label"] = tra("new submissions"); - $ret["items"]["submissions"]["cname"] = "slvn_submissions_menu"; + $count = 0; + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['articleId'], 'article', 'tiki_p_read_article')) { + $ret["items"]["articles"]["list"][$count]["href"] = "tiki-read_article.php?articleId=" . $res["articleId"]; + $ret["items"]["articles"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["publishDate"]) ." ". tra("by") ." ". $res["authorName"]; + $ret["items"]["articles"]["list"][$count]["label"] = $res["title"]; + $count++; + } + } + $ret["items"]["articles"]["count"] = $count; + } - $query = "select `subId`,`title`,`publishDate`,`authorName` from `tiki_submissions` where `created`>? and `expireDate`>?"; - $bindvars = array((int)$last,time()); - - $result = $tikilib->query($query, $bindvars); - $count = 0; - while ($res = $result->fetchRow()) - { - if ($userlib->user_has_perm_on_object($user,$res['subId'], 'submission', 'tiki_p_edit_submission')) { - $ret["items"]["submissions"]["list"][$count]["href"] = "tiki-edit_submission.php?subId=" . $res["subId"]; - $ret["items"]["submissions"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["publishDate"]) ." ". tra("by") ." ". $res["authorName"]; - $ret["items"]["submissions"]["list"][$count]["label"] = $res["title"]; - $count++; - } - } - $ret["items"]["submissions"]["count"] = $count; - } + ///////////////////////////////////////////////////////////////////////// + // FAQs + if ($prefs['feature_faqs'] == 'y') { + $ret["items"]["faqs"]["label"] = tra("new FAQs"); + $ret["items"]["faqs"]["cname"] = "slvn_faqs_menu"; - if ($prefs['feature_faqs'] == 'y') { - $ret["items"]["faqs"]["label"] = tra("new FAQs"); - $ret["items"]["faqs"]["cname"] = "slvn_faqs_menu"; + $query = "select `faqId`, `title`, `created` from `tiki_faqs` where `created`>? order by `created` desc"; + $result = $tikilib->query($query, array((int)$last)); - $query = "select `faqId`, `title`, `created` from `tiki_faqs` where `created`>? order by `created` desc"; - $result = $tikilib->query($query, array((int)$last)); + $count = 0; + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['faqId'], 'faq', 'tiki_p_view_faq')) { + $ret["items"]["faqs"]["list"][$count]["href"] = "tiki-view_faq.php?faqId=" . $res["faqId"]; + $ret["items"]["faqs"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["created"]); + $ret["items"]["faqs"]["list"][$count]["label"] = $res["title"]; + $count++; + } + } + $ret["items"]["faqs"]["count"] = $count; + } - $count = 0; - while ($res = $result->fetchRow()) - { - if ($userlib->user_has_perm_on_object($user,$res['faqId'], 'faq', 'tiki_p_view_faqs')) { - $ret["items"]["faqs"]["list"][$count]["href"] = "tiki-view_faq.php?faqId=" . $res["faqId"]; - $ret["items"]["faqs"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["created"]); - $ret["items"]["faqs"]["list"][$count]["label"] = $res["title"]; - $count++; - } - } - $ret["items"]["faqs"]["count"] = $count; - } -// directories + ///////////////////////////////////////////////////////////////////////// + // BLOGS + if ($prefs['feature_blogs'] == 'y') { + $ret["items"]["blogs"]["label"] = tra("new blogs"); + $ret["items"]["blogs"]["cname"] = "slvn_blogs_menu"; -if ($prefs['feature_directory'] == 'y') { - $ret["items"]["dirs"]["label"] = tra("new sites"); - $ret["items"]["dirs"]["cname"] = "slvn_dirs_menu"; + $query = "select `blogId`, `title`, `user`, `created` from `tiki_blogs` where `created`>? order by `created` desc"; + $result = $tikilib->query($query, array((int)$last)); - $query = "select `siteId`, `name`, `lastModif` from `tiki_directory_sites` where lastModif>? order by `lastModif` desc"; - $result = $tikilib->query($query, array((int)$last)); - $count = 0; - while ($res = $result->fetchRow()) - { - if ($userlib->user_has_perm_on_object($user,$res['siteId'], 'directory', 'tiki_p_view_directory')) { - $ret["items"]["dirs"]["list"][$count]["href"] = "tiki-directory_redirect.php?siteId=" . $res["siteId"]; - $ret["items"]["dirs"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["lastModif"]); - $ret["items"]["dirs"]["list"][$count]["label"] = $res["name"]; - $count++; - } - } - $ret["items"]["dirs"]["count"] = $count; - } + $count = 0; + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['blogId'], 'blog', 'tiki_p_read_blog')) { + $ret["items"]["blogs"]["list"][$count]["href"] = "tiki-view_blog.php?blogId=" . $res["blogId"]; + $ret["items"]["blogs"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". $res["user"]; + $ret["items"]["blogs"]["list"][$count]["label"] = $res["title"]; + $count++; + } + } - if ($prefs['feature_blogs'] == 'y') { - $ret["items"]["blogs"]["label"] = tra("new blogs"); - $ret["items"]["blogs"]["cname"] = "slvn_blogs_menu"; + $ret["items"]["blogs"]["count"] = $count; - $query = "select `blogId`, `title`, `user`, `created` from `tiki_blogs` where `created`>? order by `created` desc"; - $result = $tikilib->query($query, array((int)$last)); + $ret["items"]["blogPosts"]["label"] = tra("new blog posts"); + $ret["items"]["blogPosts"]["cname"] = "slvn_blogPosts_menu"; - $count = 0; - while ($res = $result->fetchRow()) - { - if ($userlib->user_has_perm_on_object($user,$res['blogId'], 'blog', 'tiki_p_read_blog')) { - $ret["items"]["blogs"]["list"][$count]["href"] = "tiki-view_blog.php?blogId=" . $res["blogId"]; - $ret["items"]["blogs"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". trim(strip_tags(smarty_modifier_userlink($res["user"]))); - $ret["items"]["blogs"]["list"][$count]["label"] = $res["title"]; - $count++; - } - } + $query = "select `postId`, `blogId`, `title`, `user`, `created` from `tiki_blog_posts` where `created`>? order by `created` desc"; + $result = $tikilib->query($query, array((int)$last)); + $count = 0; + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['blogId'], 'blog', 'tiki_p_read_blog')) { + $ret["items"]["blogPosts"]["list"][$count]["href"] = "tiki-view_blog_post.php?blogId=" . $res["blogId"] . "&postId=" . $res["postId"]; + $ret["items"]["blogPosts"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". $res["user"]; + $ret["items"]["blogPosts"]["list"][$count]["label"] = $res["title"]; + $count++; + } + } + $ret["items"]["blogPosts"]["count"] = $count; + } - $ret["items"]["blogs"]["count"] = $count; - $ret["items"]["blogPosts"]["label"] = tra("new blog posts"); - $ret["items"]["blogPosts"]["cname"] = "slvn_blogPosts_menu"; + ///////////////////////////////////////////////////////////////////////// + // IMAGE GALLERIES + if ($prefs['feature_galleries'] == 'y') { + // image galleries + $ret["items"]["imageGalleries"]["label"] = tra("new image galleries"); + $ret["items"]["imageGalleries"]["cname"] = "slvn_imageGalleries_menu"; + $query = "select `galleryId`,`name`,`created`,`user` from `tiki_galleries` where `created`>? order by `created` desc"; + $result = $tikilib->query($query, array((int)$last)); - $query = "select `postId`, `blogId`, `title`, `user`, `created` from `tiki_blog_posts` where `created`>? order by `created` desc"; - $result = $tikilib->query($query, array((int)$last)); + $count = 0; + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'image gallery', 'tiki_p_view_image_gallery')) { + $ret["items"]["imageGalleries"]["list"][$count]["href"] = "tiki-browse_gallery.php?galleryId=" . $res["galleryId"]; + $ret["items"]["imageGalleries"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". $res["user"]; + $ret["items"]["imageGalleries"]["list"][$count]["label"] = $res["name"]; + $count++; + } + } + $ret["items"]["imageGalleries"]["count"] = $count; - $count = 0; - while ($res = $result->fetchRow()) - { - if ($userlib->user_has_perm_on_object($user,$res['blogId'], 'blog', 'tiki_p_read_blog')) { - $ret["items"]["blogPosts"]["list"][$count]["href"] = "tiki-view_blog_post.php?blogId=" . $res["blogId"] . "&postId=" . $res["postId"]; - $ret["items"]["blogPosts"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". trim(strip_tags(smarty_modifier_userlink($res["user"]))); - $ret["items"]["blogPosts"]["list"][$count]["label"] = $res["title"]; - $count++; - } - } - $ret["items"]["blogPosts"]["count"] = $count; - } + // images + $ret["items"]["images"]["label"] = tra("new images"); + $ret["items"]["images"]["cname"] = "slvn_images_menu"; + $query = "select `imageId`,`galleryId`,`name`,`created`,`user` from `tiki_images` where `created`>? order by `created` desc"; + $result = $tikilib->query($query, array((int)$last)); - if ($prefs['feature_galleries'] == 'y') { - //image galleries - $ret["items"]["imageGalleries"]["label"] = tra("new image galleries"); - $ret["items"]["imageGalleries"]["cname"] = "slvn_imageGalleries_menu"; - $query = "select `galleryId`,`name`,`created`,`user` from `tiki_galleries` where `created`>? order by `created` desc"; - $result = $tikilib->query($query, array((int)$last)); + $count = 0; + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'image gallery', 'tiki_p_view_image_gallery')) { + $ret["items"]["images"]["list"][$count]["href"] = "tiki-browse_image.php?galleryId=" . $res["galleryId"]. "&imageId=" .$res["imageId"]; + $ret["items"]["images"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". $res["user"]; + $ret["items"]["images"]["list"][$count]["label"] = $res["name"]; + $count++; + } + } + $ret["items"]["images"]["count"] = $count; + } - $count = 0; - while ($res = $result->fetchRow()) - { - if ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'image gallery', 'tiki_p_view_image_gallery')) { - $ret["items"]["imageGalleries"]["list"][$count]["href"] = "tiki-browse_gallery.php?galleryId=" . $res["galleryId"]; - $ret["items"]["imageGalleries"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". trim(strip_tags(smarty_modifier_userlink($res["user"]))); - $ret["items"]["imageGalleries"]["list"][$count]["label"] = $res["name"]; - $count++; - } - } - $ret["items"]["imageGalleries"]["count"] = $count; - //images - $ret["items"]["images"]["label"] = tra("new images"); - $ret["items"]["images"]["cname"] = "slvn_images_menu"; - $query = "select `imageId`,`galleryId`,`name`,`created`,`user` from `tiki_images` where `created`>? order by `created` desc"; - $result = $tikilib->query($query, array((int)$last)); + ///////////////////////////////////////////////////////////////////////// + // FILE GALLERIES + if ($prefs['feature_file_galleries'] == 'y') { + // file galleries + $ret["items"]["fileGalleries"]["label"] = tra("new file galleries"); + $ret["items"]["fileGalleries"]["cname"] = "slvn_fileGalleries_menu"; + $query = "select `galleryId`,`name`,`created`,`user` from `tiki_file_galleries` where `created`>? order by `created` desc"; + $result = $tikilib->query($query, array((int)$last)); - $count = 0; - while ($res = $result->fetchRow()) - { - if ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'image gallery', 'tiki_p_view_image_gallery')) { - $ret["items"]["images"]["list"][$count]["href"] = "tiki-browse_image.php?galleryId=" . $res["galleryId"]. "&imageId=" .$res["imageId"]; - $ret["items"]["images"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". trim(strip_tags(smarty_modifier_userlink($res["user"]))); - $ret["items"]["images"]["list"][$count]["label"] = $res["name"]; - $count++; - } - } - $ret["items"]["images"]["count"] = $count; - } + $count = 0; + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'file gallery', 'tiki_p_view_file_gallery')) { + $ret["items"]["fileGalleries"]["list"][$count]["href"] = "tiki-list_file_gallery.php?galleryId=" . $res["galleryId"]; + $ret["items"]["fileGalleries"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". $res["user"]; + $ret["items"]["fileGalleries"]["list"][$count]["label"] = $res["name"]; + $count++; + } + } + $ret["items"]["fileGalleries"]["count"] = $count; + // files + $ret["items"]["files"]["label"] = tra("new files"); + $ret["items"]["files"]["cname"] = "slvn_files_menu"; + $query = "select `galleryId`,`name`,`filename`,`created`,`user` from `tiki_files` where `created`>? order by `created` desc"; + $result = $tikilib->query($query, array((int)$last)); - if ($prefs['feature_file_galleries'] == 'y') { - //file galleries - $ret["items"]["fileGalleries"]["label"] = tra("new file galleries"); - $ret["items"]["fileGalleries"]["cname"] = "slvn_fileGalleries_menu"; - $query = "select `galleryId`,`name`,`created`,`user` from `tiki_file_galleries` where `created`>? order by `created` desc"; - $result = $tikilib->query($query, array((int)$last)); + $count = 0; + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'file gallery', 'tiki_p_view_file_gallery')) { + $ret["items"]["files"]["list"][$count]["href"] = "tiki-list_file_gallery.php?galleryId=" . $res["galleryId"]; + $ret["items"]["files"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". $res["user"]; + $ret["items"]["files"]["list"][$count]["label"] = $res["name"]. " (".$res["filename"].")"; + $count++; + } + } + $ret["items"]["files"]["count"] = $count; + } - $count = 0; - while ($res = $result->fetchRow()) - { - if ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'file gallery', 'tiki_p_view_file_gallery')) { - $ret["items"]["fileGalleries"]["list"][$count]["href"] = "tiki-list_file_gallery.php?galleryId=" . $res["galleryId"]; - $ret["items"]["fileGalleries"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". trim(strip_tags(smarty_modifier_userlink($res["user"]))); - $ret["items"]["fileGalleries"]["list"][$count]["label"] = $res["name"]; - $count++; - } - } - $ret["items"]["fileGalleries"]["count"] = $count; - //files - $ret["items"]["files"]["label"] = tra("new files"); - $ret["items"]["files"]["cname"] = "slvn_files_menu"; - $query = "select `galleryId`,`name`,`filename`,`created`,`user` from `tiki_files` where `created`>? order by `created` desc"; - $result = $tikilib->query($query, array((int)$last)); + ///////////////////////////////////////////////////////////////////////// + // POLLS + if ($prefs['feature_polls'] == 'y') { + $ret["items"]["polls"]["label"] = tra("new polls"); + $ret["items"]["polls"]["cname"] = "slvn_polls_menu"; - $count = 0; - while ($res = $result->fetchRow()) - { - if ($userlib->user_has_perm_on_object($user,$res['galleryId'], 'file gallery', 'tiki_p_view_file_gallery')) { - $ret["items"]["files"]["list"][$count]["href"] = "tiki-list_file_gallery.php?galleryId=" . $res["galleryId"]; - $ret["items"]["files"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["created"]) ." ". tra("by") ." ". trim(strip_tags(smarty_modifier_userlink($res["user"]))); - $ret["items"]["files"]["list"][$count]["label"] = $res["name"]. " (".$res["filename"].")"; - $count++; - } - } - $ret["items"]["files"]["count"] = $count; - } + $query = "select `pollId`, `title`, `publishDate` from `tiki_polls` where `publishDate`>? order by `publishDate` desc"; + $result = $tikilib->query($query, array((int)$last)); - if ($prefs['feature_polls'] == 'y') { - $ret["items"]["polls"]["label"] = tra("new polls"); - $ret["items"]["polls"]["cname"] = "slvn_polls_menu"; + $count = 0; + while ($res = $result->fetchRow()) { + $ret["items"]["polls"]["list"][$count]["href"] = "tiki-poll_results.php?pollId=" . $res["pollId"]; + $ret["items"]["polls"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["publishDate"]); + $ret["items"]["polls"]["list"][$count]["label"] = $res["title"]; + $count++; + } + $ret["items"]["polls"]["count"] = $count; + } + - $query = "select `pollId`, `title`, `publishDate` from `tiki_polls` where `publishDate`>? order by `publishDate` desc"; - $result = $tikilib->query($query, array((int)$last)); + ///////////////////////////////////////////////////////////////////////// + // NEW USERS + if (!isset($params['showuser']) || $params['showuser'] != 'n') { + $ret["items"]["users"]["label"] = tra("new users"); + $ret["items"]["users"]["cname"] = "slvn_users_menu"; + $query = "select `login`, `registrationDate` from `users_users` where `registrationDate`>?"; + $result = $tikilib->query($query, array((int)$last)); - $count = 0; - while ($res = $result->fetchRow()) - { - $ret["items"]["polls"]["list"][$count]["href"] = "tiki-poll_results.php?pollId=" . $res["pollId"]; - $ret["items"]["polls"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["publishDate"]); - $ret["items"]["polls"]["list"][$count]["label"] = $res["title"]; - $count++; - } - $ret["items"]["polls"]["count"] = $count; - } - - if (!isset($params['showuser']) || $params['showuser'] != 'n') { - $ret['items']['users']['label'] = tra('new users'); - $ret['items']['users']['cname'] = 'slvn_users_menu'; - $query = 'select `userId`, `login`, `registrationDate` from `users_users` where `registrationDate`>?'; - $result = $tikilib->query($query, array((int)$last)); - $count = 0; - while ($res = $result->fetchRow()) { - $ret['items']['users']['list'][$count]['href'] = 'tiki-user_information.php?userId=' . $res['userId']; - $ret['items']['users']['list'][$count]['title'] = $tikilib->get_short_datetime($res['registrationDate']); - $ret['items']['users']['list'][$count]['label'] = $res['login']; - $count++; + $count = 0; + $slvn_tmp_href = $userlib->user_has_permission($user, "tiki_p_admin") ? "tiki-assignuser.php?assign_user=" : "tiki-user_information.php?view_user="; + while ($res = $result->fetchRow()) { + $ret["items"]["users"]["list"][$count]["href"] = $slvn_tmp_href . $res["login"]; + $ret["items"]["users"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["registrationDate"]); + $ret["items"]["users"]["list"][$count]["label"] = $res["login"]; + $count++; + } + $ret["items"]["users"]["count"] = $count; } - $ret['items']['users']['count'] = $count; - } - if ($prefs['feature_trackers'] == 'y' && (!isset($params['showtracker']) || $params['showtracker'] != 'n')) { - $ret["items"]["trackers"]["label"] = tra("new tracker items"); - $ret["items"]["trackers"]["cname"] = "slvn_trackers_menu"; + ///////////////////////////////////////////////////////////////////////// + // NEW TRACKER ITEMS + if ($prefs['feature_trackers'] == 'y' && (!isset($params['showtracker']) || $params['showtracker'] != 'n')) { + $ret["items"]["trackers"]["label"] = tra("new tracker items"); + $ret["items"]["trackers"]["cname"] = "slvn_trackers_menu"; - $query = "select `itemId`, `trackerId`, `created`, `lastModif` from `tiki_tracker_items` where `lastModif`>? order by `lastModif` desc"; - $result = $tikilib->query($query, array((int)$last)); + $query = "select `itemId`, `trackerId`, `created`, `lastModif` from `tiki_tracker_items` where `created`>? order by `created` desc"; + $result = $tikilib->query($query, array((int)$last)); - $count = 0; - global $cachelib; - require_once('lib/cache/cachelib.php'); - while ($res = $result->fetchRow()) - { - if ($userlib->user_has_perm_on_object($user,$res['trackerId'], 'tracker', 'tiki_p_view_trackers')) { - $ret["items"]["trackers"]["list"][$count]["href"] = "tiki-view_tracker_item.php?itemId=" . $res["itemId"]; - $ret["items"]["trackers"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["lastModif"]); + $count = 0; + $counta = array(); + $tracker_name = array(); + global $cachelib; + require_once('lib/cache/cachelib.php'); + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['trackerId'], 'tracker', 'tiki_p_view_trackers')) { + // Initialize tracker counter if needed. + if (!isset($counta[$res['trackerId']])) $counta[$res['trackerId']] = 0; + + // Pull Tracker Name + if (!isset($tracker_name[$res['trackerId']])) { + $query = "select `name` from `tiki_trackers` where `trackerId` = ?"; + $tracker_name[$res['trackerId']] = $tikilib->getOne($query, $res['trackerId']); + } + + $ret["items"]["trackers"]["tid"][$res['trackerId']]["label"] = tra("in " . $tracker_name[$res["trackerId"]]); + $ret["items"]["trackers"]["tid"][$res['trackerId']]["cname"] = "slvn_tracker" . $res["trackerId"] . "_menu"; + $ret["items"]["trackers"]["tid"][$res['trackerId']]["list"][$counta[$res['trackerId']]]["href"] = "tiki-view_tracker_item.php?itemId=" . $res["itemId"]; + $ret["items"]["trackers"]["tid"][$res['trackerId']]["list"][$counta[$res['trackerId']]]["title"] = $tikilib->get_short_datetime($res["created"]); - //routine to verify field in tracker that should appear as label - $cacheKey = 'trackerItemLabel'.$res['itemId']; - if (!$cachelib->isCached($cacheKey)) { - $query = "select `fieldId` from `tiki_tracker_fields` where `isMain` = ? and `trackerId` = ? order by `position`"; - $fieldId = $tikilib->getOne($query, array('y',$res['trackerId'])); - $query = "select `value` from `tiki_tracker_item_fields` where `fieldId` = ? and `itemId` = ?"; - $label = $tikilib->getOne($query, array($fieldId,$res['itemId'])); + // routine to verify field in tracker that's used as label + $cacheKey = 'trackerItemLabel'.$res['itemId']; + if (!$cachelib->isCached($cacheKey)) { + $query = "select `fieldId` from `tiki_tracker_fields` where `isMain` = ? and `trackerId` = ? order by `position`"; + $fieldId = $tikilib->getOne($query, array('y',$res['trackerId'])); + $query = "select `value` from `tiki_tracker_item_fields` where `fieldId` = ? and `itemId` = ?"; + $label = $tikilib->getOne($query, array($fieldId,$res['itemId'])); - $cachelib->cacheItem($cacheKey, $label); - } else { - $label = $cachelib->getCached($cacheKey); - } - $ret["items"]["trackers"]["list"][$count]["label"] = $label; - $count++; - } - } - $ret["items"]["trackers"]["count"] = $count; - } + $cachelib->cacheItem($cacheKey, $label); + } else { + $label = $cachelib->getCached($cacheKey); + } - if ($prefs['feature_calendar'] == 'y') { - $ret["items"]["calendar"]["label"] = tra("new calendar events"); - $ret["items"]["calendar"]["cname"] = "slvn_calendar_menu"; + // If the label is empty (b:0;), then use the item ID + if ($label == 'b:0;' || $label == '') { + $label = "Trk i" . $res['trackerId'] . " - ID: " . $res['itemId']; + } + $ret["items"]["trackers"]["tid"][$res['trackerId']]["list"][$counta[$res['trackerId']]]["label"] = $label; + $counta[$res['trackerId']]++; + $ret["items"]["trackers"]["tid"][$res['trackerId']]["count"] = $counta[$res['trackerId']]; + $count++; + } + } + $ret["items"]["trackers"]["count"] = $count; - $query = "select `calitemId`, `calendarId`, `created`, `lastmodif`, `name` from `tiki_calendar_items` where `lastmodif`>? order by `lastmodif` desc"; - $result = $tikilib->query($query, array((int)$last)); - $count = 0; - while ($res = $result->fetchRow()) - { - if ($userlib->user_has_perm_on_object($user, $res['calendarId'], 'calendar', 'tiki_p_view_calendar')) { - $ret["items"]["calendar"]["list"][$count]["href"] = 'tiki-calendar_edit_item.php?viewcalitemId='.$res['calitemId']; - $ret["items"]["calendar"]["list"][$count]["title"] = $tikilib->get_short_datetime($res["lastmodif"]); - $ret["items"]["calendar"]["list"][$count]["label"] = $res['name']; - $count++; - } - } - $ret["items"]["calendar"]["count"] = $count; - } + ///////////////////////////////////////////////////////////////////////// + // UPDATED TRACKER ITEMS - ignore updates on same day as creation + $ret["items"]["utrackers"]["label"] = tra("updated tracker items"); + $ret["items"]["utrackers"]["cname"] = "slvn_utrackers_menu"; - //get the total of items - $ret["cant"] = 0; - foreach ($ret["items"] as $item) { - $ret["cant"] += $item["count"]; - } + $query = "select `itemId`, `trackerId`, `created`, `lastModif` from `tiki_tracker_items` where `lastModif`>? and `lastModif`!=`created` order by `lastModif` desc"; + $result = $tikilib->query($query, array((int)$last)); - return $ret; + $count = 0; + $countb = array(); + global $cachelib; + require_once('lib/cache/cachelib.php'); + while ($res = $result->fetchRow()) { + if ($userlib->user_has_perm_on_object($user,$res['trackerId'], 'tracker', 'tiki_p_view_trackers')) { + // Initialize tracker counter if needed. + if (!isset($countb[$res['trackerId']])) $countb[$res['trackerId']] = 0; + // Pull Tracker Name + if (!isset($tracker_name[$res['trackerId']])) { + $query = "select `name` from `tiki_trackers` where `trackerId` = ?"; + $tracker_name[$res['trackerId']] = $tikilib->getOne($query, $res['trackerId']); + } + + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["label"] = tra("in " . $tracker_name[$res["trackerId"]]); + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["cname"] = "slvn_utracker" . $res["trackerId"] . "_menu"; + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["list"][$countb[$res['trackerId']]]["href"] = "tiki-view_tracker_item.php?itemId=" . $res["itemId"]; + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["list"][$countb[$res['trackerId']]]["title"] = $tikilib->get_short_datetime($res["lastModif"]); + + // routine to verify field in tracker that's used as label + $cacheKey = 'trackerItemLabel'.$res['itemId']; + if (!$cachelib->isCached($cacheKey)) { + $query = "select `fieldId` from `tiki_tracker_fields` where `isMain` = ? and `trackerId` = ? order by `position`"; + $fieldId = $tikilib->getOne($query, array('y',$res['trackerId'])); + $query = "select `value` from `tiki_tracker_item_fields` where `fieldId` = ? and `itemId` = ?"; + $label = $tikilib->getOne($query, array($fieldId,$res['itemId'])); + + $cachelib->cacheItem($cacheKey, $label); + } else { + $label = $cachelib->getCached($cacheKey); + } + + // If the label is empty (b:0;), then use the item ID + if ($label == 'b:0;' || $label == '') { + $label = "Trk i" . $res['trackerId'] . " - ID: " . $res['itemId']; + } + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["list"][$countb[$res['trackerId']]]["label"] = $label; + $countb[$res['trackerId']]++; + $ret["items"]["utrackers"]["tid"][$res['trackerId']]["count"] = $countb[$res['trackerId']]; + $count++; + } + } + $ret["items"]["utrackers"]["count"] = $count; + } + + + + ////////////////////////////////////////////////////////////////////////// + // SUMMARY + //get the total of itemss + $ret["cant"] = 0; + foreach ($ret["items"] as $item) { + $ret["cant"] += $item["count"]; } + + return $ret; } +} $slvn_info = since_last_visit_new($user, $module_params); $smarty->assign('slvn_info', $slvn_info); -$smarty->assign('nonums', isset($module_params["nonums"]) ? $module_params["nonums"] : 'n'); +$smarty->assign('nonums', isset($module_params["nonums"]) ? $module_params["noms"] : 'n'); ?> Modified: trunk/templates/modules/mod-since_last_visit_new.tpl =================================================================== --- trunk/templates/modules/mod-since_last_visit_new.tpl 2008-07-30 16:41:52 UTC (rev 13972) +++ trunk/templates/modules/mod-since_last_visit_new.tpl 2008-07-30 18:02:42 UTC (rev 13973) @@ -1,43 +1,82 @@ -{* $Id$ *} - +{* $Id$ + * + * MOD-SINCE_LAST_VISIT_NEW + * Template for the module mod-since_last_visit_new. + *} {if $user} - {if !isset($tpl_module_title)}{assign var=tpl_module_title value="{tr}`$slvn_info.label`{/tr}"}{/if} - {tikimodule title=$tpl_module_title name="since_last_visit_new" flip=$module_params.flip decorations=$module_params.decorations nobox=$module_params.nobox} - <div style="text-align: center"> - {if $prefs.feature_calendar eq 'y'}<a class="linkmodule" href="tiki-calendar.php?todate={$slvn_info.lastLogin}" title="{tr}click to edit{/tr}">{/if} - <strong>{$slvn_info.lastLogin|tiki_short_date}</strong> - {if $prefs.feature_calendar eq 'y'}</a>{/if} - </div> - {if $slvn_info.cant == 0} - <div class="separator"> - <em>{tr}Nothing has changed{/tr}</em> + {assign var=module_title value=$slvn_info.label} + {tikimodule title="$module_title" name="since_last_visit_new" flip=$module_params.flip decorations=$module_params.decorations} + <div style="margin-bottom: 5px; text-align:center;"> + {if $prefs.feature_calendar eq 'y'} + <a class="linkmodule" href="tiki-calendar.php?todate={$slvn_info.lastLogin}" title="{tr}click to edit{/tr}"> + {/if} + <b>{$slvn_info.lastLogin|tiki_short_date}</b> + {if $prefs.feature_calendar eq 'y'} + </a> + {/if} </div> - {else} - {foreach key=pos item=slvn_item from=$slvn_info.items} - {if $slvn_item.count > 0 } - {assign var=cname value=$slvn_item.cname} - <div class="separator"> - <a class="separator" href="javascript:flip('{$cname}');" title="{tr}click to show/hide{/tr}"> - {$slvn_item.label}: {$slvn_item.count} - </a> - </div> - {assign var=showcname value=show_$cname} - <div id="{$cname}" style="display:{if !isset($cookie.$showcname) or $cookie.$showcname eq 'y'}block{else}none{/if}"> - <ol style="padding-left: 10px; margin-left: 10px"> - {section name=ix loop=$slvn_item.list} - <li class="listitem" style="margin-left: 5px"> - <a class="linkmodule" - href="{$slvn_item.list[ix].href|escape}" - title="{$slvn_item.list[ix].title|escape}"> - {if $slvn_item.list[ix].label == ''}-{else}{$slvn_item.list[ix].label|escape}{/if} - </a> - </li> - {/section} - </ol> - </div> - {/if} - {/foreach} - {/if} - {/tikimodule} + {if $slvn_info.cant == 0} + <div class="separator">{tr}Nothing has changed{/tr}</div> + {else} + {foreach key=pos item=slvn_item from=$slvn_info.items} + {if $slvn_item.count > 0 } + {assign var=cname value=$slvn_item.cname} + <div class="separator"><a class="separator" href="javascript:flip('{$cname}');">{$slvn_item.count} {$slvn_item.label}</a></div> + {assign var=showcname value=show_$cname} + + {if $pos eq 'trackers' or $pos eq 'utrackers'} + <div id="{$cname}" style="display:{if !isset($cookie.$showcname) or $cookie.$showcname eq 'y'}block{else}none{/if};"> + + {****** Parse out the trackers *****} + {foreach key=tp item=tracker from=$slvn_item.tid} + {assign var=tcname value=$tracker.cname} + <div class="separator" style="margin-left: 10px; display:{if !isset($cookie.$showcname) or $cookie.$showcname eq 'y'}block{else}none{/if};"> + {assign var=showtcname value=show_$tcname} + <a class="separator" href="javascript:flip('{$tcname}');">{$tracker.count} {$tracker.label}</a> + <div id="{$tcname}" style="display:{if !isset($cookie.$showtcname) or $cookie.$showtcname eq 'y'}block{else}none{/if};"> + <table cellpadding="0" cellspacing="0"> + {section name=xx loop=$tracker.list} + <tr class="module"> + <td width="10" /> + <td width="20" align="right" class="module"> {$smarty.section.xx.index_next})</td> + <td> + <a class="linkmodule" + href="{$tracker.list[xx].href|escape}" + title="{$tracker.list[xx].title|escape}">{if $tracker.list[xx].label == ''}-{else}{$tracker.list[xx].label|escape}{/if} + </a> + </td> + </tr> + {/section} + </table> + </div> + </div> + {/foreach} + {****** End tracker section *****} + </div> + + {else} + <div id="{$cname}" style="display:{if !isset($cookie.$showcname) or $cookie.$showcname eq 'y'}block{else}none{/if};"> + <table cellpadding="0" cellspacing="0"> + {section name=ix loop=$slvn_item.list} + <tr class="module"> + <td width="10" /> + <td width="20" align="right" class="module">{$smarty.section.ix.index_next})</td> + <td> + <a class="linkmodule" + href="{$slvn_item.list[ix].href|escape}" + title="{$slvn_item.list[ix].title|escape}"> + {if $slvn_item.list[ix].label == ''}-{else}{$slvn_item.list[ix].label|escape}{/if} + </a> + </td> + </tr> + {/section} + </table> + </div> + {/if} + {/if} + {/foreach} + {/if} +{* <div style="color:#aaaaaa; text-align:right; font-size:8px; margin-bottom: 0;">SLV{$slvn_info.version}</div> *} + {/tikimodule} {/if} This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lph...@us...> - 2008-07-31 13:56:23
|
Revision: 13978 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=13978&view=rev Author: lphuberdeau Date: 2008-07-31 13:56:26 +0000 (Thu, 31 Jul 2008) Log Message: ----------- [MRG] Automatic merge, branches/2.0 13963 to 13972 Modified Paths: -------------- trunk/db/tiki-secdb_2.0_mysql.sql trunk/lib/setup/twversion.class.php trunk/lib/smarty_tiki/compiler.assign.php trunk/tiki-setup_base.php Added Paths: ----------- trunk/lib/smarty_tiki/modifier.escape.php Modified: trunk/db/tiki-secdb_2.0_mysql.sql =================================================================== --- trunk/db/tiki-secdb_2.0_mysql.sql 2008-07-31 11:51:31 UTC (rev 13977) +++ trunk/db/tiki-secdb_2.0_mysql.sql 2008-07-31 13:56:26 UTC (rev 13978) @@ -1,2078 +1,2084 @@ -DELETE FROM `tiki_secdb` WHERE `tiki_version` = '2.0RC3'; +DELETE FROM `tiki_secdb` WHERE `tiki_version` = '2.0RC4'; -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('fab2588a046522a85149b2d5b8e2e2c0', './db/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('ff3e4a668ea84b79decd9f7dc641c46d', './db/oracle/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('1d51e2a32b380c430dd069a45e1154ad', './db/local.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('acce8338f0537cb5a292aa2f33484750', './db/convertscripts/mysql3tosqlite.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('96f9345583603f8333a48e86efdc1716', './db/convertscripts/mysql3tooci8.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('c1cdd5b40f66fd478fd4aef6f3c37891', './db/convertscripts/mysql3tosybase.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('981226b2822bdbc810cf839f969bc6c3', './db/convertscripts/mysql3topgsql72.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('b84d0e93b84ee54b3ec2c01a3edb9ec8', './db/convertscripts/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('758fe7e1b2d65e5e201ac82cf0dfc032', './db/case_patch.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('b84d0e93b84ee54b3ec2c01a3edb9ec8', './db/profiles/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('07d8c5a625a882d04e20dd47646a1272', './db/tiki-db.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('9959b81fff4b39e86f328c598b572e3b', './tiki-wiki3d.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('ec75c5fa3f718c640767be649417a5b7', './bin/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('98b156560ae47141e5f06afb531787ca', './doc/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('642192a280220fb484477817d0fd4afa', './doc/devtools/tiki-show_raw_links.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('d5f98e6c1ffeb11e9724212e130c51a2', './doc/devtools/tiki-create_md5.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('3c96ff8d8da044c1be0e650658c2eeca', './doc/devtools/convert_templates_prefs-2.0.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('ca6989660ea083dbcdec83c93138ca8e', './doc/devtools/fckpackager.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('a2102e195d7b845fe3aec9184da4ca1c', './doc/devtools/extract-img-db-to-fs.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('fc36cad510a6818883206eb8b20047a6', './doc/devtools/svntools.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('3514b40bf6f4151f3b19c05bb84d82b9', './doc/devtools/restorehelp.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('993788daae4188dc07ff036874f7970e', './doc/devtools/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('a7855a353c3c38f68f769f06f334afd4', './doc/devtools/sync.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('2c450afc683c36483abc8e9e4ea2e999', './doc/devtools/securitycheck.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('da8a55568ec35d0130d764a5976a0f94', './doc/devtools/usergeo.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('3bd515c5bd89e945caf9e08b59fe7619', './doc/devtools/ggg-trace.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('b9c6185e71811671e4549264502b82bb', './doc/devtools/cleanCatTrackers.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('112a6d18e92b63c6463a3db8ed5d8c2e', './doc/devtools/parse_tiki.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('d8116ae0dab5f421243d10220d1f8dff', './doc/devtools/search_smarty_prefs-2.0.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('e4f65c095b094f9bd60a11c191b95a68', './img/icn/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('67a447e1617b272089af7a2e84855ad8', './img/tiki/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('7d8390e7c547041a7161901a690ba2ac', './img/wiki/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('2906db7e1abbd5c3ed3ecc2d191685d0', './img/flags/flagnames.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('22bf51530fb705aa22e1f2b3ecbf39b7', './img/flags/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('1f7dfd42b8552677a3853a2bf7a6ddac', './img/icons/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('f1f841fad35e53602411a0d298640463', './img/custom/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('62e1f5586a189d6157828d7b50300ab9', './img/icons2/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('b8f39d8cc7ec125c12c27429dbdb1221', './img/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('a81ec8f70e6bfb91f04a00f8dd3d547d', './img/mytiki/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('9049496e6ffb5220b37c9c244db6702a', './img/smiles/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('cf8a1a166b85563dc538483b4405e0b7', './img/webmail/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('72349be9d8730e019f32349f18118c71', './img/avatars/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('7ae15492ff707ed43c42291f56a217c6', './img/wiki_up/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('5e5b4d8ee5db315ac0d36ab197a9414b', './img/trackers/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('bfc3faa37b498df6e03beb1e301d2f93', './lib/x/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('caafb52dbf89c488a97d61fbed231827', './lib/db/tikitable.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('0184c887eada64d4bd7a662f0cd45da2', './lib/db/tiki_registration_fields.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('8ee79fe4c9705c61dc526156fc5d856f', './lib/ban/banlib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('1b3fdd97ecadb197e8806d3138c2ed6a', './lib/ban/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('9935e69a1566b1a77e167151fb211f91', './lib/dcs/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('17d66419d1ff042d5e1cf4a7e90a18d0', './lib/dcs/dcslib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('4e68e7ecd35a6180a2764c7582423c01', './lib/map/maplib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('a734127180dc0cbf6cf89b0244d158c4', './lib/map/usermap.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('00702d2837ee02790d3878f671b754b5', './lib/map/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('a7104f11673caa4f289d88ac6b87de5c', './lib/map/map_query.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('6010daf30b5f81776e33fab0bd616822', './lib/rss/rsslib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('32d7ae7cc42abdc99ebf7adefb4fb00d', './lib/rss/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('7d6cc4810cea3d9dbb3ba811c3bc12e7', './lib/ajax/xajaxCompress.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('9c05a39fb5eae61213a387a32f50570a', './lib/ajax/xajax.inc.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('5b3689129349efd63672f0d946eebec9', './lib/ajax/xajaxResponse.inc.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('d48f2e1347104d84cf914b93b5fc3f1d', './lib/ajax/ajaxlib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('4bdf3fa1044d81cd6fed81c63b6b61bb', './lib/diff/renderer_character.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('cb46f5f1c56b406fd1a448b06437d329', './lib/diff/renderer_sidebyside.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('53d664a0cd71ed45362312e9c40e6a49', './lib/diff/Renderer.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('a78c93b7099c2ed88957f28f5cbc7541', './lib/diff/renderer_character_inline.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('12d7bf22c09c35d39757d3a4908f5e4a', './lib/diff/renderer_inline.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('4f248d6c65d93c786e465ec8b1714804', './lib/diff/renderer_unified.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('568dc52cd13372f6426d2bbf1fffdf27', './lib/diff/renderer_htmldiff.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('f9f447dddf579ef624e2e94b96f69c8c', './lib/diff/Diff.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('b25008f2091dd0bc68d16d30ca1a8fbd', './lib/diff/difflib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('a99615e44ce799b57a811617c4900b87', './lib/diff/renderer_bytes.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('5dd8579216a7721a2ffafcfb310a54d1', './lib/faqs/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('906c51bff3d0d2f2e841bc8cf092a590', './lib/faqs/faqlib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('86b093609886e74d270a6039f2be78b3', './lib/ical/iCal/Property.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('2c6d3daf4904d54036bc216da05a1df6', './lib/ical/iCal/Event.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('7301fbc1c03bc1fff84af79fc8a72326', './lib/ical/iCal/Alarm.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('ae4c55f120bd5ef60db36d05a9129ead', './lib/ical/iCal/Parser/iCalendar.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('190c81a2cf93a2b4e893ef201d575ba2', './lib/ical/iCal/iCalendar.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('7db4455608e9034b0abc4fa578e95699', './lib/ical/iCal/Recurrence.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('038d7407ffbdaae53b5bdd702e3051ae', './lib/ical/iCal/Attendee.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('d18be1c54b5b86026402c495a5cd58cf', './lib/ical/iCal/Parameter.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('640a5220946a10bee73654c60fe76052', './lib/ical/iCal/ContentLine.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('8aa6216a419cd6cb10ceb7d0d1cb92d2', './lib/ical/iCal/ExceptionRule.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('1f695d3cfcf5d350e15ea8329c7e2fe4', './lib/ical/iCal/ValueDataType.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('dcaf39e93944bf3f98cf9e45da6d7180', './lib/ical/iCal/Component.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('4f76e707e8cef3ba13a34e3eae70f9d3', './lib/ical/iCal/BaseComponent.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('5451d8173ba63fd06a346b95184b2977', './lib/ical/iCal/ToDo.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('c5f4e3f2e0698b396f396965ef2917ed', './lib/ical/iCal/TimeZone.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('f05bc392c12c47d441ec26f4611feba5', './lib/ical/iCal/FreeBusy.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('5eb92e304bdb8e26befc9c40d2377c52', './lib/ical/File.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('ffa86ab4a5a66300273992fa8657f76e', './lib/ical/iCal.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('98192c01592b07e58b655077dc2976a4', './lib/init/tra.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('b85afb9ee11102d1f4ddb113469b4b79', './lib/init/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('6bf8edf13d361d4a8c96d1e4312e4487', './lib/init/setup_inc.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('c4d622af02c571e711305ee5abb838c0', './lib/init/initlib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('3ece6a1f959fb2309294fd619814c3dc', './lib/mail/maillib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('01e8b27e515ac4cc4b684cd1ff4af116', './lib/mail/mimelib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('c057282ce51293ae3afb5e80d19ef42c', './lib/logs/logslib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('713bc89f7f4890adf33e00d01c736f32', './lib/mime/mimeextensions.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('c37c5ced2a11f7952eb2446b2ecd3365', './lib/mime/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('19b23f502a8411b76f1aee28bed73548', './lib/mime/mimetypes.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('4da4961d8b1ee59143092314c47b3f31', './lib/mime/mimelib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('c569fcc183a3fdd452ec156c26b8ba10', './lib/mods/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('c5c8c7d157ef716b436db583c132d70b', './lib/mods/modslib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('9905e2b2bd49a275b76794e822ec80dc', './lib/pear/DB/fbsql.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('c3c9df9c0f934e493308fa2304525277', './lib/pear/DB/msql.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('fbe9ed03b937998e2716712ab2e2ffdf', './lib/pear/DB/sqlite.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('ecf586e9fc113b5e0fbf5067d82ae80c', './lib/pear/DB/ibase.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('e8d1bc5b7e757a8879bf8726c79d3a29', './lib/pear/DB/mssql.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('56aff0b4a2ad06d59564abba40ba1b07', './lib/pear/DB/storage.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('4ab966ea009c1e23d7c076c133d4e98b', './lib/pear/DB/dbase.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('e9feb3abea0be7eee7b5df5ec33d936d', './lib/pear/DB/mysql4.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('db7f8f393ec17982a2240eec034f575e', './lib/pear/DB/mysqli.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('80ae5a2bed8b96fe36f85dcf5ae73432', './lib/pear/DB/sybase.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('ceea5ced9b5eb2e2f3c33a6508fd02f9', './lib/pear/DB/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('1b6120ab0510a5eda70434009ebc9206', './lib/pear/DB/oci8.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('3b15c50dd94405da91c5e27ce5e41c6c', './lib/pear/DB/ifx.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('ff1ca5a2d0ec383c12b3f36a6e14036c', './lib/pear/DB/pgsql.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('1fbdb44bc60337b790eb22dd3beb8efc', './lib/pear/DB/mysql.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('bf4600cbc3b3d7447a961828dbb21390', './lib/pear/DB/odbc.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('9860844b00ebfef6670d9aba0c1dea39', './lib/pear/DB/common.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('9ca81e3efacc58b11f6abf28fc16e170', './lib/pear/OS/Guess.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('92232cd2fc5e1cc1377ef8a0a9e0bc35', './lib/pear/Net/DNS/RR/CNAME.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('3bd6d557dd0eda20a9999245aecbd2e1', './lib/pear/Net/DNS/RR/A.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('e8a44f5f773f8f3990dbb62ed21962f4', './lib/pear/Net/DNS/RR/MX.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('dd8cb8b9b7d29144e67014955371ec58', './lib/pear/Net/DNS/RR/NS.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('e6ba4e35dcfbb389a78dfe78f7f57cde', './lib/pear/Net/DNS/RR/SOA.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('c9aedf777c33388ba25b4dbff5148d17', './lib/pear/Net/DNS/RR/SRV.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('a68c4cbee7d724de4a9cd80784b16829', './lib/pear/Net/DNS/RR/TXT.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('0ff95e75841e10d3c796b406e75b85d9', './lib/pear/Net/DNS/RR/AAAA.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('349b96830a67b09a96d512c8aa645165', './lib/pear/Net/DNS/RR/HINFO.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('494de46414b44de8e93559145f1afdba', './lib/pear/Net/DNS/RR/NAPTR.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('7d56c6b283c1e5cfee863583c574c30e', './lib/pear/Net/DNS/RR/TSIG.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('2a481f218048f9f995740cdabfaa583d', './lib/pear/Net/DNS/RR/PTR.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('f5f9ee71dd6b1d5913619a9522f47eed', './lib/pear/Net/DNS/RR.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('8cb9639f0e28ae1440b93f1790ae4e03', './lib/pear/Net/DNS/Question.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('bddc375c1a7dc4050153fc032ac53de0', './lib/pear/Net/DNS/Resolver.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('1999a958b762c2d3c5a88e59053f6d61', './lib/pear/Net/DNS/Header.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('87bc38b5b0746b80298613b0227298cb', './lib/pear/Net/DNS/Packet.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('2e9880aef8741aef23f8acd88a1acb67', './lib/pear/Net/DNS.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('e4507f7e2230889c7b38b84a2fa70a15', './lib/pear/Net/Socket.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('c93e4ca980402c5ed87af9d80b9ecb70', './lib/pear/Net/URL.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('4c38c70a1a861bafa0caacf0ebdb7805', './lib/pear/Net/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('8ba64d808659934afbdedab0ca7219d1', './lib/pear/Net/DIME.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('aace5be2f848110b2b304a2b7b236d37', './lib/pear/XML/RPC.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('fc8aececd0f8f2f0d55329a9da8e9472', './lib/pear/XML/Server.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('dd4f92500eebc0fc8e94634ceb872d26', './lib/pear/XML/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('0ef9e1c81d362d36ebffcb5e6534b34f', './lib/pear/XML/Dump.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('5e5e820181b0bed6b9d9f90ac7d35efe', './lib/pear/Auth/Container/File.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('83f8144d57fad225b4ee9a27ed3c5823', './lib/pear/Auth/Container/SAP.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('2f21ddd9b12d9b2897febabdd2e2f3f3', './lib/pear/Auth/Container/Array.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('0e6bf20e2f6c63014ba5bdc0478492d2', './lib/pear/Auth/Container/IMAP.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('6b6b9dc23e4a9b10d6aa4d2cbf69afca', './lib/pear/Auth/Container/MDB.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('cf72017455ef818075e142b8c2cab275', './lib/pear/Auth/Container/KADM5.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('b276953e43141fc0f74ce1e7a217a312', './lib/pear/Auth/Container/MDB2.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('b9fb221a858c593c9bd5b21781636874', './lib/pear/Auth/Container/PEAR.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('91e80f6ea9cf99ba5ad1065216e203d9', './lib/pear/Auth/Container/SOAP.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('c734d6ee8f72e4b3388e41877da3a9d7', './lib/pear/Auth/Container/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('8ff28bb21efe6a3af1b0d8de74d2bbcb', './lib/pear/Auth/Container/SMBPasswd.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('626b19981170d6776731303bdaa26053', './lib/pear/Auth/Container/LDAP.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('a17801b2eaa4b2c890ec7b5805bc68b5', './lib/pear/Auth/Container/SOAP5.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('fe516feed650f62b52f866fd10cdcf21', './lib/pear/Auth/Container/DBLite.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('b942bf340c2f848672b9d5c5213c688b', './lib/pear/Auth/Container/vpopmail.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('d7f3b26113654ee28d189fb3219900b9', './lib/pear/Auth/Container/POP3.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('00e55dc33dff486833496a24075d6906', './lib/pear/Auth/Container/Multiple.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('6101309b3f0c660712b7f56fdae406af', './lib/pear/Auth/Container/RADIUS.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('ece1c8ff85a6606ea08b3d0749fa4ff4', './lib/pear/Auth/Container/DB.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('4bcddbac9c56dd93ff75203153520fc0', './lib/pear/Auth/Yadis/XRDS.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('94fe207c995bd278ae92346749013349', './lib/pear/Auth/Yadis/XRI.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('1d594ad53e183edae35965fd14c2f7b0', './lib/pear/Auth/Yadis/ParseHTML.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('c2ed8945aeef0ad05f718424e9563ff3', './lib/pear/Auth/Yadis/HTTPFetcher.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('65f6877b06ce7289e853dac0a069c921', './lib/pear/Auth/Yadis/Misc.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('c312563353152ef4f1c272025976fa30', './lib/pear/Auth/Yadis/ParanoidHTTPFetcher.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('9a3d99d44087ae694ead98ec130a41b2', './lib/pear/Auth/Yadis/Yadis.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('b0dccb27f25c4106ef97d2e807badb8d', './lib/pear/Auth/Yadis/XRIRes.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('ee7de67f71efe67d93e435e62eb7431f', './lib/pear/Auth/Yadis/Manager.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('09f171fc182d23b1c509980e3f6d6869', './lib/pear/Auth/Yadis/XML.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('6d0f86d774c115ec98c97d8712c2c2de', './lib/pear/Auth/Yadis/PlainHTTPFetcher.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('46073a7cd20c0ae74c2b1d2ae487949d', './lib/pear/Auth/OpenID/MySQLStore.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('5aaedef83cce12729a78a33ad7339b3c', './lib/pear/Auth/OpenID/Extension.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('27387317c5df36ca99bff5e88bce6dbf', './lib/pear/Auth/OpenID/Nonce.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('a22497b37513f5e7301f3779f5d97b87', './lib/pear/Auth/OpenID/Consumer.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('627604fa8e424b1aecfffa637bb65c3e', './lib/pear/Auth/OpenID/CryptUtil.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('29d29b55d83598a79dad4bed1b3ebb4e', './lib/pear/Auth/OpenID/SQLStore.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('3c7ccd97db1be63a8f6cbe77dd0cd17a', './lib/pear/Auth/OpenID/KVForm.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('d29d03e6efb5639e8e6457b98ad920c1', './lib/pear/Auth/OpenID/ServerRequest.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('ab0f024b356039a33f7e8ea3901d65ca', './lib/pear/Auth/OpenID/FileStore.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('388b08056e916312880d45f805df8abc', './lib/pear/Auth/OpenID/URINorm.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('d9d35878336c476fcf03eb3143c90f1c', './lib/pear/Auth/OpenID/Server.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('ae70925cef5709603201e300e9b9407f', './lib/pear/Auth/OpenID/SReg.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('ca9434290112f08d5cc8987a9ed6ef55', './lib/pear/Auth/OpenID/HMACSHA1.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('421b2e9dc95dbb8ff3fd6502f733422e', './lib/pear/Auth/OpenID/Interface.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('b5669db1fe88247603b459346a935443', './lib/pear/Auth/OpenID/Discover.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('28c95f10a969f1126bae5d52527f1795', './lib/pear/Auth/OpenID/Parse.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('660df7e89c5513d948537f5af1870931', './lib/pear/Auth/OpenID/DatabaseConnection.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('e840ade5c66779de28d2983f744c12e9', './lib/pear/Auth/OpenID/DumbStore.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('6a9b2ce5b33a378dfdbc58aab9bc6f9c', './lib/pear/Auth/OpenID/TrustRoot.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('45dc4a65d1d3bd6e10ba06841c779676', './lib/pear/Auth/OpenID/DiffieHellman.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('4855020fe55f579df8f99247977bd1d1', './lib/pear/Auth/OpenID/SQLiteStore.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('d9881c6ea945693a3770828c96349152', './lib/pear/Auth/OpenID/Association.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('0c5cb71785f5d083595c3a2fc4b1387b', './lib/pear/Auth/OpenID/Message.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('db8c4c5803b358e58e4936ab3818654b', './lib/pear/Auth/OpenID/MemcachedStore.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('e5865a3cf23c9273db99607250d6a431', './lib/pear/Auth/OpenID/PAPE.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('cd44fb875c4e686a216ef76c3050c212', './lib/pear/Auth/OpenID/PostgreSQLStore.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('b68edf987cc93f58e24d53e96e84fcbb', './lib/pear/Auth/OpenID/AX.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('a56dc458f1ef222812912f79ec393b4a', './lib/pear/Auth/OpenID/BigMath.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('75325f187ae203cd863c760238e30d6c', './lib/pear/Auth/OpenID.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('2e649d4cc396b000ab7ed52f645d64cb', './lib/pear/Auth/Frontend/Html.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('5a203556d10ea3c68d62d57a2cdfe591', './lib/pear/Auth/Controller.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('28df1f321a9377209758aef9fa38ed95', './lib/pear/Auth/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('01905f153e9356534b978b019e68b9fa', './lib/pear/Auth/Container.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('2056a1008679d8dc2a9098a0c962622a', './lib/pear/Auth/Anonymous.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('b6749a9c4bae7ace3d122ac54d7f923a', './lib/pear/Auth/Auth.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('f4b06ba56d19c8ff69be2ad145fa214d', './lib/pear/Date/Calc.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('19de73ea9672d6ca8248480c45377913', './lib/pear/Date/Human.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('bc3076d290d70309334e51099a5b9c32', './lib/pear/Date/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('1efd48fbfa04fa460bb1e2bea1496dc8', './lib/pear/Date/Span.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('4453316b96873b26ead2822f4d589591', './lib/pear/Date/TimeZone.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('ce18584968bde4ed5117e4750062d021', './lib/pear/HTTP/docs/example.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('1c6c27e31ee2cde67364c3b83250512a', './lib/pear/HTTP/docs/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('23b2f51eb8b8d99b61c676023663627d', './lib/pear/HTTP/Request.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('39a6707035051dbfc03d13200d674b08', './lib/pear/HTTP/Request/Listener.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('8a1d80d63a28005a1d6e5c6aff46363d', './lib/pear/HTTP/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('0b159ec45a5a706604a9fa0de0186998', './lib/pear/PEAR/REST/10.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('aab56f6f27b3cab2ecfeeac47e7c9e34', './lib/pear/PEAR/REST/11.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('f58b0ab73750429987f314f7053fe9ee', './lib/pear/PEAR/REST/13.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('c54e33e2b718b2e8912a81dc62d3e61c', './lib/pear/PEAR/Task/Windowseol.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('e72267c770a9f88d01ac06f0dc7c5dee', './lib/pear/PEAR/Task/Replace.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('7391884d1e5ef03d95851fd84dff640b', './lib/pear/PEAR/Task/Replace/rw.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('fddcac1523d082ba61b2dd7fd671f585', './lib/pear/PEAR/Task/Postinstallscript.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('288d2f1e1fc3551785e346f4387e87f2', './lib/pear/PEAR/Task/Unixeol.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('bc5dca669538b06a69f07e2d8adcd71d', './lib/pear/PEAR/Task/Windowseol/rw.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('d68ba93b34891a1d4433eaf78d08aec8', './lib/pear/PEAR/Task/Common.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('8c3e953b9f9a81fa0f2463c38ffb9765', './lib/pear/PEAR/Task/Postinstallscript/rw.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('ed1222c8198f1f88899b832b9a298d79', './lib/pear/PEAR/Task/Unixeol/rw.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('d1b07a8ebf4db686fd3fded4b65fb65b', './lib/pear/PEAR/Downloader.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('e07fcb2e1b36f0ec964a89f1de9798c0', './lib/pear/PEAR/Validator/PECL.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('fc586586593b29db1612ea22026be75d', './lib/pear/PEAR/Builder.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('febec893787a57f9b1010d95bddfc549', './lib/pear/PEAR/Installer.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('7c6d5c09bc29141ce0920d1b61b149ab', './lib/pear/PEAR/ErrorStack.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('ead9a6ea7824631d2241f1a48518493f', './lib/pear/PEAR/ChannelFile.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('e5892abe81521f5edd1845a31a0091a5', './lib/pear/PEAR/Downloader/Package.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('74d82b20b21f54787260a51309ef9d71', './lib/pear/PEAR/Frontend.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('416db6b77398e5e9055bed82638ccffb', './lib/pear/PEAR/Dependency.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('bbd8c9e6c44a1c1a83a87eeefad0a357', './lib/pear/PEAR/Remote.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('4cb1e73f9e29c4c8e50f6128f1fd0431', './lib/pear/PEAR/Config.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('e7081a97d34ead8f8bdcee998cf91119', './lib/pear/PEAR/Command/Test.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('6f12784592a5b17d38d6de700bc388a4', './lib/pear/PEAR/Command/Remote.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('b6378096e74b6af9a76bedc6153acc9b', './lib/pear/PEAR/Command/Config.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('8d522efb1f9dac5267b4875c964d495a', './lib/pear/PEAR/Command/Build.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('34de61a3a97bbc1157549b694f29d615', './lib/pear/PEAR/Command/Pickle.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('0afd51f8d34de4def1fb4ab1fc63937d', './lib/pear/PEAR/Command/Registry.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('a941e1bf3669340122b77e35960214f8', './lib/pear/PEAR/Command/Channels.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('f131f6e88e5d199aa50195e268cf093d', './lib/pear/PEAR/Command/Mirror.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('eba49e95ed6308d641d75b1be5f299df', './lib/pear/PEAR/Command/Common.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('dd2541402e1c750233ae0b724f91a8c7', './lib/pear/PEAR/Command/Install.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('ccc9a40f0ee06112bee7eb8e0d8f7554', './lib/pear/PEAR/Command/Package.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('1a7d580921ef848d6e4a599a228ddf4a', './lib/pear/PEAR/Command/Auth.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('665248a21424a9f5eb11c4000743be2f', './lib/pear/PEAR/Validate.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('a91985f454b9e012a00165a0adb5fed6', './lib/pear/PEAR/XMLParser.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('686bd6aa5d6764583a0b3818662d0510', './lib/pear/PEAR/Frontend/CLI.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('327ff6fccde43852ed59fede703a91d0', './lib/pear/PEAR/Registry.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('a2bfd5e599139bf2a76421c9e37aeae3', './lib/pear/PEAR/Exception.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('c5e9ec07c539c065c3274caaa0b74780', './lib/pear/PEAR/Packager.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('1bb322bda9af789074f5521e6010bc85', './lib/pear/PEAR/RunTest.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('edf44fd2faac12e6bbb01d393a9b6564', './lib/pear/PEAR/Installer/Role/Test.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('de3e00e9c2797757447352a4e07d84f8', './lib/pear/PEAR/Installer/Role/Php.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('cc39757e202d33bc01f8564af7f788d9', './lib/pear/PEAR/Installer/Role/Doc.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('c0bc7186707061e834192453bf3f35bd', './lib/pear/PEAR/Installer/Role/Script.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('cf18c76b383da43538219e361f10bf7f', './lib/pear/PEAR/Installer/Role/Src.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('be524dfee409680da002a3b6835209a8', './lib/pear/PEAR/Installer/Role/Ext.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('ab2d18979154bdc62729a8e44d5934ad', './lib/pear/PEAR/Installer/Role/Data.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('4e37444943bb601fb33f098e71bb34bf', './lib/pear/PEAR/Installer/Role/Common.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('2423c8662af9af64c83e247099ab15c0', './lib/pear/PEAR/Installer/Role.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('8222da2fcc9b571045348ea3c02d7ac1', './lib/pear/PEAR/ChannelFile/Parser.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('a76d14908798b7683c9e9013290eb100', './lib/pear/PEAR/REST.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('e02a2d46c8b116c073e26782651a7d85', './lib/pear/PEAR/DependencyDB.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('2fa82108b4526c73c7929e7bc46ce5f1', './lib/pear/PEAR/Common.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('47d78817811f5694ad70b6b7141e0ccd', './lib/pear/PEAR/PackageFile/v2/Validator.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('80e428bb5c1acce49d37176b48fb73a8', './lib/pear/PEAR/PackageFile/v2/rw.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('5e1ff681fd93b1cde04b08527cf3fd38', './lib/pear/PEAR/PackageFile/Generator/v1.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('fd0f214a154c4b0fca5f47cf322ed5b5', './lib/pear/PEAR/PackageFile/Generator/v2.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('70676cca54cf93921cb3c1657887f97f', './lib/pear/PEAR/PackageFile/Parser/v1.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('79189560d5b119a4aff3ea662b42b178', './lib/pear/PEAR/PackageFile/Parser/v2.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('aa7c8a7e46e9b3f8ae3deb239f40ed3d', './lib/pear/PEAR/PackageFile/v1.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('c766904fd7927ab51dd3ce43085bcbe0', './lib/pear/PEAR/PackageFile/v2.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('91ae716f31f5f73622991641c49bbeda', './lib/pear/PEAR/Command.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('917f3071135c9865a96e4d59376d3caa', './lib/pear/PEAR/Dependency2.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('6f89b3d08357892c75a3eb89614be9bc', './lib/pear/PEAR/PackageFile.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('7384f642030240aae790516d7103f008', './lib/pear/System.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('6f91fe81dbe036ee6297bc8ec1a10f6d', './lib/pear/PEAR.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('3a3f85ce303837c3f9929050ce194b81', './lib/pear/Services/JSON.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('a336be6cadf18bc16d83cf46ca42ea6e', './lib/pear/NNTP.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('5b0386f0adc9f868f21957d6c08833bb', './lib/pear/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('6b48ff95fd02266788c855a0b0e31bf6', './lib/pear/Date.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('0463bc738128413a596937ade91f1902', './lib/pear/Auth.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('5948fcc1a73a623d1cb098ccd225dc24', './lib/pear/DB.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('ddc282726a9516788704bd498680ca35', './lib/tabs/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('b9593375c99ac187fd44a5338e4fcfdd', './lib/tail/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('1c3c149fd70addb7a07a6070ea787da5', './lib/tree/tree.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('868285e51c5119cde22a0a453848ef3a', './lib/tree/categ_browse_tree.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('246e2b2835142d7565e9b1c3b8eaea06', './lib/tree/categ_admin_tree.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('2e1a392fe39bd881fee6bc6c0b20a5cf', './lib/tree/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('27fe8d76a05356507ecb6249b998a5bf', './lib/wiki/quantifylib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('2a4d725ae4856e0cb46c6310df02c49c', './lib/wiki/wikilib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('21d988eb3fd60f6d00211b178a37c2d7', './lib/wiki/wiki-ajax.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('8d854b2ee5269a46841495b2d0db63ee', './lib/wiki/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('605dc272817537bf6ad72dd9b3c06ad2', './lib/wiki/exportlib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('ba45953bab8f40bd0092f0ed9e506042', './lib/wiki/histlib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('9a704e15ad4f86a1d88f8672e28a62fb', './lib/wiki/pluginslib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('d11693c0912dfc244b3d6a7503205531', './lib/structures/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('ca0d3e84f3acec1f838b10c624302d04', './lib/structures/structlib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('451fe6451dfa13a84fbdcf382b73353d', './lib/equation/tmp/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('6912105a98d3cfb85db749b109dbc40d', './lib/equation/pictures/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('292e7b12fafe7b86a607519f69d5a210', './lib/equation/class.latexrender.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('a0d8764a14a9ca4f65fc4f210475ad63', './lib/bablotron.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('797660b7c34c07378cb8ac72a4877d2b', './lib/htmlpages/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('395020beeb3f52d40fcabd621da89073', './lib/htmlpages/htmlpageslib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('96973862c136e4f9c998d65014e5ecd2', './lib/tikilib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('46a21a3bb37d30c8b985ba9208873fc3', './lib/diff.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('e6d8134958f379dcb5a8fc2e522a5b80', './lib/live_support/lslib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('edabc749c11e32e4762902d2dd32a2ef', './lib/live_support/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('f51cf5d518a54d18d7caf6be26e6ecab', './lib/live_support/lsadminlib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('f6cd764c871e1004d5ef9553e828ded5', './lib/Horde/Yaml/Loader.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('5708a9a233c09cf03fe9f37cecd6619f', './lib/Horde/Yaml/Exception.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('1515261fc34e2a763337f936b49f00c6', './lib/Horde/Yaml/Node.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('92e19794b66466dccf9e271ae81496ea', './lib/Horde/Yaml/Dumper.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('809658c6425f35b50bd4bacb6d0b1673', './lib/Horde/Yaml.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('ab36ed38f9fb02d94aa1a87e04780a92', './lib/graph-engine/graph.bar.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('874c7ccecf71aa980810027ce630d60a', './lib/graph-engine/graph.pie.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('a4072ced11a928532c22bfbac934599d', './lib/graph-engine/gd.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('49958376c9c8500f92a0fc42c13201c4', './lib/graph-engine/abstract.gridbased.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('f7af35438ed663e4c7711fd03ecc7112', './lib/graph-engine/core.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('5d64f8fb40bdd36d7ff7bdf54ec3f020', './lib/graph-engine/pdflib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('86957f05668498c05d712ae24c0c442e', './lib/graph-engine/ps.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('efb0fac8e679437836c4e94652489a67', './lib/graph-engine/graph.multiline.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('69904613e0d8e253a3a1a7a9107eb855', './lib/shadowbox_tiki/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('5c7ccf465ffc1e8a69584553d325e30f', './lib/admin/index.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('1489abd537d96a3a92fc3ebdc180b352', './lib/admin/adminlib.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('f308d107e1335ec36f71f101bc5324cf', './lib/adodb/lang/adodb-hu.inc.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('201d8ae7eda2a23f6b71c9d88ac77ded', './lib/adodb/lang/adodb_th.inc.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('71052ad0e1622d8514b5a41622d2ce33', './lib/adodb/lang/adodb-ro.inc.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('de0722a45173d1e076216f41090232d1', './lib/adodb/lang/adodb-es.inc.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('c5420bb506f4eae64a6f84e33bb31523', './lib/adodb/lang/adodb-en.inc.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('ed3d417b04f361e178f1a258d193b929', './lib/adodb/lang/adodb-nl.inc.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('b9030fa70d9d0f2ba408ac61c31958c3', './lib/adodb/lang/adodb-ca.inc.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('81fac3276333ca136f83c1f3c35f5f3f', './lib/adodb/lang/adodb-sv.inc.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('32b94a998cb1a8b1ee14089af407d585', './lib/adodb/lang/adodb-esperanto.inc.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('37b0880076545e8d8e3809002c8b1960', './lib/adodb/lang/adodb-bg.inc.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('822a0c4c44527e99acdb3bc2f50ff6f1', './lib/adodb/lang/adodb-uk1251.inc.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('2ea23878b1027f3d07c8a9b8bbe4e3a3', './lib/adodb/lang/adodb-da.inc.php', '2.0RC3', 0); -INSERT INTO `tiki_secdb` (`md5_value`, `filename`, `tiki_version`, `severity`) VALUES('56602de7a184aa22984f46954b22934b', './lib/adodb/lang/adodb-a... [truncated message content] |
From: <se...@us...> - 2008-07-31 14:27:46
|
Revision: 13981 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=13981&view=rev Author: sept_7 Date: 2008-07-31 14:27:50 +0000 (Thu, 31 Jul 2008) Log Message: ----------- [ENH] better layout of selectable options in admin tracker page and xhtml validation Modified Paths: -------------- trunk/lib/tiki-js.js trunk/styles/tikineat.css trunk/styles/tikinewt.css trunk/styles/transitions/1.9to2.0.css trunk/templates/tiki-admin_trackers.tpl Modified: trunk/lib/tiki-js.js =================================================================== --- trunk/lib/tiki-js.js 2008-07-31 14:17:26 UTC (rev 13980) +++ trunk/lib/tiki-js.js 2008-07-31 14:27:50 UTC (rev 13981) @@ -131,10 +131,18 @@ } function toggleBlock(id) { - if (document.getElementById(id).style.display == "block") { + if (document.getElementById(id).style.display == "none") { + document.getElementById(id).style.display = "block"; + } else { document.getElementById(id).style.display = "none"; + } +} + +function toggleTrTd(id) { + if (document.getElementById(id).style.display == "none") { + document.getElementById(id).style.display = ""; } else { - document.getElementById(id).style.display = "block"; + document.getElementById(id).style.display = "none"; } } @@ -1224,9 +1232,9 @@ /* Function to add image from filegals in non wysiwyg editor */ /* must be here when ajax is activated */ -function SetMyUrl(area, url) { +function SetUrl(url) { str = "{img src=" + url + " }\n"; - insertAt(area, str); + insertAt('editwiki', str); } /* Count the number of words (spearated with space) */ function wordCount(maxSize, source, cpt, message) { Modified: trunk/styles/tikineat.css =================================================================== --- trunk/styles/tikineat.css 2008-07-31 14:17:26 UTC (rev 13980) +++ trunk/styles/tikineat.css 2008-07-31 14:27:50 UTC (rev 13981) @@ -392,7 +392,7 @@ .rbox-data { padding: 2px; } -.rbox-title, .warning .rbox-title { +.rbox-title, .rbox-title[name="warning"] { border: 0; border-radius-topright : 1ex; -moz-border-radius-topright : 1ex; @@ -405,21 +405,21 @@ font-weight : bold; background-color: #eeee99; } -.rbox-data, .warning .rbox-data { +.rbox-data, .rbox-data[name="warning"] { background-color: #eeee99; border: 1px solid #DDDDCC; } -.note .rbox-title { +.rbox-title[name="note"] { background-color: #CCCCDD; } -.note .rbox-data { +.rbox-data[name="note"] { background-color: #ECECEF; border: 1px solid #CCCCDD; } -.comment, .tip .rbox-title, .rbox-title.tip { +.rbox-title[name="comment"], .rbox-title[name="tip"], .rbox-title.tip { background-color: #CCCCDD; } -.rbox-data[name="comment"], .tip .rbox-data, .rbox-data.tip { +.rbox-data[name="comment"], .rbox-data[name="tip"], .rbox-data.tip { background-color: #ECEFEC; border: 1px solid #CCDDCC; } @@ -605,8 +605,13 @@ .tableheading, .gallistheading, .listgalheading, .bloglistheading, .llisfgalheading, .llistfileslink, .llistart, .lforumheading { } -.findtitle {float: left;} +table.findtable { + margin-bottom : 1px; + padding-bottom : 10px; +} +.findtable td { } + /* Odd rows in several listings */ tr.odd { border : 1px solid #8CACBB; @@ -2188,17 +2193,9 @@ #sitelogo { background-color: white; } -.clearfix:after { - content: "."; - display: block; - height: 0; - clear: both; - visibility: hidden; + +.sub { + padding-left: 5em !important; } -/* Hides from IE-mac \*/ -* html .clearfix {height: 1%;} -/* End hide from IE-mac */ -.clear { - clear: both; -} + /* end of css file */ Modified: trunk/styles/tikinewt.css =================================================================== --- trunk/styles/tikinewt.css 2008-07-31 14:17:26 UTC (rev 13980) +++ trunk/styles/tikinewt.css 2008-07-31 14:27:50 UTC (rev 13981) @@ -2799,4 +2799,8 @@ width: auto; } +.sub { + padding-left: 5em !important; +} + /***** End of file ******/ Modified: trunk/styles/transitions/1.9to2.0.css =================================================================== --- trunk/styles/transitions/1.9to2.0.css 2008-07-31 14:17:26 UTC (rev 13980) +++ trunk/styles/transitions/1.9to2.0.css 2008-07-31 14:27:50 UTC (rev 13981) @@ -540,3 +540,7 @@ #sitesubtitle { font-size:1.6em; } + +.sub { + padding-left: 5em !important; +} Modified: trunk/templates/tiki-admin_trackers.tpl =================================================================== --- trunk/templates/tiki-admin_trackers.tpl 2008-07-31 14:17:26 UTC (rev 13980) +++ trunk/templates/tiki-admin_trackers.tpl 2008-07-31 14:27:50 UTC (rev 13981) @@ -90,7 +90,7 @@ {* --- tab with form --- *} <a name="mod"></a> <div id="content{cycle name=content assign=focustab}{$focustab}"{if $prefs.feature_tabs eq 'y'} class="tabcontent" style="display:{if $focustab eq $cookietab}block{else}none{/if};"{/if}> -<h2>{if $trackerId}{tr}Edit Tracker{/tr}{else}{tr}Create Trackers{/tr}{/if}</h2> +<h2>{tr}Create/Edit Trackers{/tr}</h2> {if $trackerId} <div class="simplebox"> <a title="{tr}Permissions{/tr}" class="link" href="tiki-objectpermissions.php?objectName={$name|escape:"url"}&objectType=tracker&permType=trackers&objectId={$trackerId}"> @@ -106,24 +106,32 @@ <form action="tiki-admin_trackers.php" method="post" name="editpageform" id="editpageform"> <input type="hidden" name="trackerId" value="{$trackerId|escape}" /> <table class="normal"> -<tr class="formcolor"><td>{tr}Name{/tr}:</td><td><input type="text" name="name" value="{$name|escape}" /></td><td></td></tr> -<tr class="formcolor"><td>{tr}Description{/tr}:</td> + +<tr class="formcolor"> + <td colspan="1">{tr}Name{/tr}:</td> <td colspan="2"> - {tr}Description text is tiki-parsed:{/tr} <input type="checkbox" name="descriptionIsParsed" {if $descriptionIsParsed eq 'y'}checked="checked"{/if} onclick="toggleSpan('trackerDesc');" /> + <input type="text" name="name" value="{$name|escape}" /> + </td> +</tr> + +<tr class="formcolor"> + <td colspan="1" width="30%">{tr}Description{/tr}:</td> + <td colspan="2"> + {tr}Description text is tiki-parsed:{/tr} <input type="checkbox" name="descriptionIsParsed" {if $descriptionIsParsed eq 'y'}checked="checked"{/if} onclick="toggleBlock('trackerDesc');" /> <div id="trackerDesc" style="display:none;" > {include file=tiki-edit_help_tool.tpl qtnum="trackerDesc" area_name="trackerDescription"} {if $descriptionIsParsed eq 'y'}<script language="javascript"> <!--//--><![CDATA[//><!-- - toggleSpan('trackerDesc'); + toggleBlock('trackerDesc'); //--><!]]> </script>{/if} </div> - <br /> <textarea id="trackerDescription" name="description" rows="4" cols="40">{$description|escape}</textarea> </td> </tr> + +{if $prefs.feature_categories eq 'y'} {include file=categorize.tpl colsCategorize=2} -{if $prefs.feature_categories eq 'y'} <tr class="formcolor"><td class="auto" colspan="2">{tr}Auto create corresponding categories{/tr}</td><td> <input type="checkbox" name="autoCreateCategories" {if $autoCreateCategories eq 'y' }checked="checked"{/if} /></td></tr> {/if} @@ -137,21 +145,28 @@ <input type="checkbox" name="useExplicitNames" {if $useExplicitNames eq 'y'}checked="checked"{/if} /> </td></tr> {/if} -<tr class="formcolor"><td class="auto" colspan="2">{tr}Show status{/tr}</td><td> -<input type="checkbox" name="showStatus" {if $showStatus eq 'y'}checked="checked"{/if} /></td></tr> -<tr class="formcolor"><td class="auto" colspan="2">{tr}Default status displayed in list mode{/tr}</td><td> +<tr class="formcolor"> + <td colspan="2">{tr}Show status{/tr}</td> + <td colspan="1" width="25%"><input type="checkbox" name="showStatus" {if $showStatus eq 'y'}checked="checked"{/if} /></td> +</tr> + +<tr class="formcolor"><td colspan="2">{tr}Default status displayed in list mode{/tr}</td><td> {foreach key=st item=stdata from=$status_types} <input type="checkbox" name="defaultStatus[]" value="{$st}"{if $defaultStatusList.$st} checked="checked"{/if} />{$stdata.label}<br /> {/foreach} </td></tr> + <tr class="formcolor"><td class="auto" colspan="2">{tr}Show status to tracker admin only{/tr}</td><td> <input type="checkbox" name="showStatusAdminOnly" {if $showStatusAdminOnly eq 'y'}checked="checked"{/if} /></td></tr> + <tr class="formcolor"><td class="auto" colspan="2">{tr}Send copies of all activity in this tracker to this e-mail address{/tr}:<br /><i>{tr}You can add several email addresses by separating them with commas.{/tr}</i></td><td><input type="text" name="outboundEmail" value="{$outboundEmail|escape}" /></td></tr> -<tr class="formcolor"><td class="auto" colspan="2">{tr}Use simplified e-mail format{/tr} + +<tr class="formcolor"><td colspan="2">{tr}Use simplified e-mail format{/tr} <br /><i>{tr}The tracker will use the text field named Subject if any as subject and will use the user email or for anonymous the email field if any as sender{/tr}</i> </td><td> <input type="checkbox" name="simpleEmail" {if $simpleEmail eq 'y'}checked="checked"{/if} /> </td></tr> + <tr class="formcolor"><td class="auto" colspan="2">{tr}New items are created with status{/tr}</td><td> <select name="newItemStatus"> {foreach key=st item=stdata from=$status_types} @@ -159,6 +174,7 @@ {/foreach} </select> </td></tr> + <tr class="formcolor"><td class="auto" colspan="2">{tr}Authoritative status for modified items{/tr}</td><td> <select name="modItemStatus"> <option value="">{tr}No change{/tr}</option> @@ -167,16 +183,36 @@ {/foreach} </select> </td></tr> + <tr class="formcolor"><td class="auto" colspan="2">{tr}Item creator can modify his items?{/tr}<br /><i>{tr}The tracker needs a user field with the option 1{/tr}</i></td><td><input type="checkbox" name="writerCanModify" {if $writerCanModify eq 'y'}checked="checked"{/if} /></td></tr> + <tr class="formcolor"><td class="auto" colspan="2">{tr}Only one item per user or IP{/tr}<br /><i>{tr}The tracker needs a user or IP field with the option 1{/tr}</i></td><td><input type="checkbox" name="oneUserItem" {if $oneUserItem eq 'y'}checked="checked"{/if} /></td></tr> + <tr class="formcolor"><td class="auto" colspan="2">{tr}Member of the default group of creator can modify items?{/tr}<br /><i>{tr}The tracker needs a group field with the option 1{/tr}</i></td><td><input type="checkbox" name="writerGroupCanModify" {if $writerGroupCanModify eq 'y'}checked="checked"{/if} /></td></tr> -<tr class="formcolor"><td class="auto" colspan="2">{tr}Show creation date when listing tracker items?{/tr}</td><td><input type="checkbox" name="showCreated" {if $showCreated eq 'y'}checked="checked"{/if} onclick="toggleSpan('showCreatedOptions')" /> -<span id="showCreatedOptions" style="display:{if $showCreated eq 'y'}inline{else}none{/if}"><br />{tr}Format if not the default short one:{/tr}<input type="text" name="showCreatedFormat" value="{$showCreatedFormat}"/><br /><a class="link" target="strftime" href="http://www.php.net/manual/en/function.strftime.php">{tr}Date and Time Format Help{/tr}</a></span></td></tr> + +<tr class="formcolor"> + <td class="auto" colspan="2">{tr}Show creation date when listing tracker items?{/tr}</td> + <td><input type="checkbox" name="showCreated" {if $showCreated eq 'y'}checked="checked"{/if} onclick="toggleTrTd('showCreatedOptions')" /></td> +</tr> +<tr id="showCreatedOptions" class="formcolor" {if $showCreated ne 'y'}style="display:none;"{/if}> + <td class="sub" colspan="3">{tr}Format if not the default short one:{/tr} + <input type="text" name="showCreatedFormat" value="{$showCreatedFormat}"/> + <a class="link" target="strftime" href="http://www.php.net/manual/en/function.strftime.php">{tr}Date and Time Format Help{/tr}</a></td> +</tr> + <tr class="formcolor"><td class="auto" colspan="2">{tr}Show creation date when viewing tracker item?{/tr}</td><td><input type="checkbox" name="showCreatedView" {if $showCreatedView eq 'y'}checked="checked"{/if} /> </td></tr> -<tr class="formcolor"><td class="auto" colspan="2">{tr}Show lastModif date when listing tracker items?{/tr}</td><td><input type="checkbox" name="showLastModif" {if $showLastModif eq 'y'}checked="checked"{/if} onclick="toggleSpan('showLastModifOptions') "/> -<span id="showLastModifOptions" style="display:{if $showLastModif eq 'y'}inline{else}none{/if}"><br />{tr}Format if not the default short one:{/tr}<input type="text" name="showLastModifFormat" value="{$showLastModifFormat}"/><br /><a class="link" target="strftime" href="http://www.php.net/manual/en/function.strftime.php">{tr}Date and Time Format Help{/tr}</a></span> -</td></tr> + +<tr class="formcolor"> + <td class="auto" colspan="2">{tr}Show lastModif date when listing tracker items?{/tr}</td> + <td><input type="checkbox" name="showLastModif" {if $showLastModif eq 'y'}checked="checked"{/if} onclick="toggleTrTd('showLastModifOptions') "/></td> +</tr> +<tr class="formcolor" id="showLastModifOptions" {if $showLastModif ne 'y'}style="display:none;"{/if}> + <td class="sub" colspan="3">{tr}Format if not the default short one:{/tr} + <input type="text" name="showLastModifFormat" value="{$showLastModifFormat}"/> + <a class="link" target="strftime" href="http://www.php.net/manual/en/function.strftime.php">{tr}Date and Time Format Help{/tr}</a></td> +</tr> + <tr class="formcolor"><td class="auto" colspan="2">{tr}Show lastModif date when viewing tracker item?{/tr}</td><td><input type="checkbox" name="showLastModifView" {if $showLastModifView eq 'y'}checked="checked"{/if} /></td></tr> <tr class="formcolor"><td class="auto" colspan="2">{tr}What field is used for default sort?{/tr}</td><td> <select name="defaultOrderKey"> @@ -188,6 +224,7 @@ <option value="-3"{if $defaultOrderKey eq -3} selected="selected"{/if}>{tr}ItemId{/tr}</option> </select> </td></tr> + <tr class="formcolor"><td class="auto" colspan="2">{tr}What is default sort order in list?{/tr}</td><td> <select name="defaultOrderDir"> <option value="asc" {if $defaultOrderDir eq 'asc'}selected="selected"{/if}>{tr}ascending{/tr}</option> @@ -196,40 +233,49 @@ </td></tr> <tr class="formcolor"><td class="auto" colspan="2">{tr}Tracker items allow ratings?{/tr}</td><td> -<input type="checkbox" name="useRatings" {if $useRatings eq 'y'}checked="checked"{/if} onclick="toggleSpan('ratingoptions');" /> -<span id="ratingoptions" style="display:{if $useRatings eq 'y'}inline{else}none{/if};"> -{tr}with values{/tr} <input type="text" name="ratingOptions" value="{if $ratingOptions}{$ratingOptions}{else}-2,-1,0,1,2{/if}" /> -{tr}and display rating results in listing?{/tr} <input type="checkbox" name="showRatings" {if $showRatings eq 'y'}checked="checked"{/if} /> -</span> +<input type="checkbox" name="useRatings" {if $useRatings eq 'y'}checked="checked"{/if} onclick="toggleTrTd('ratingoptions');toggleTrTd('ratinginlisting');" /> </td></tr> +<tr class="formcolor" id="ratingoptions" {if $useRatings ne 'y'}style="display:none;"{/if}> + <td class="sub" colspan="2">{tr}with values{/tr}</td> + <td><input type="text" name="ratingOptions" value="{if $ratingOptions}{$ratingOptions}{else}-2,-1,0,1,2{/if}" /></td> + </tr> +<tr class="formcolor" id="ratinginlisting" {if $useRatings ne 'y'}style="display:none;"{/if}> + <td class="sub" colspan="2">{tr}and display rating results in listing?{/tr}</td> + <td><input type="checkbox" name="showRatings" {if $showRatings eq 'y'}checked="checked"{/if} /></td> +</tr> -<tr class="formcolor"><td class="auto" colspan="2">{tr}Tracker items allow comments?{/tr}</td><td> -<input type="checkbox" name="useComments" {if $useComments eq 'y'}checked="checked"{/if} onclick="toggleSpan('commentsoptions');" /> -<span id="commentsoptions" style="display:{if $useComments eq 'y'}inline{else}none{/if};"> -{tr}and display comments in listing?{/tr} <input type="checkbox" name="showComments" {if $showComments eq 'y'}checked="checked"{/if} /> -</span> -</td></tr> +<tr class="formcolor"> + <td class="auto" colspan="2">{tr}Tracker items allow comments?{/tr}</td> + <td><input type="checkbox" name="useComments" {if $useComments eq 'y'}checked="checked"{/if} onclick="toggleTrTd('commentsoptions');" /></td> +</tr> +<tr class="formcolor" id="commentsoptions" {if $useComments ne 'y'}style="display:none;"{/if}> + <td class="sub" colspan="2">{tr}and display comments in listing?{/tr}</td> + <td><input type="checkbox" name="showComments" {if $showComments eq 'y'}checked="checked"{/if} /></td> +</tr> -<tr class="formcolor"><td class="auto" colspan="2">{tr}Tracker items allow attachments?{/tr}</td><td> -<input type="checkbox" name="useAttachments" {if $useAttachments eq 'y'}checked="checked"{/if} onclick="toggleSpan('attachmentsoptions');toggleBlock('attachmentsconf');" /> -<span id="attachmentsoptions" style="display:{if $useAttachments eq 'y'}inline{else}none{/if};"> -{tr}and display attachments in listing?{/tr} <input type="checkbox" name="showAttachments" {if $showAttachments eq 'y'}checked="checked"{/if} /> -</span> -</td></tr> - -<tr class="formcolor"><td class="auto" colspan="3"> -<div id="attachmentsconf" style="display:{if $useAttachments eq 'y'}block{else}none{/if};"> -{tr}Attachment display options (Use numbers to order items, 0 will not be displayed, and negative values display in popups){/tr}<br /> -<table width="100%"><tr> -<td>{tr}Filename{/tr}</td> -<td>{tr}Created{/tr}</td> -<td>{tr}Downloads{/tr}</td> -<td>{tr}Comment{/tr}</td> -<td>{tr}Filesize{/tr}</td> -<td>{tr}Version{/tr}</td> -<td>{tr}Filetype{/tr}</td> -<td>{tr}LongDesc{/tr}</td></tr> +<tr class="formcolor"> +<td width="75%" class="auto" colspan="2">{tr}Tracker items allow attachments?{/tr}</td> +<td width="25%"><input type="checkbox" name="useAttachments" {if $useAttachments eq 'y'}checked="checked"{/if} onclick="toggleTrTd('attachmentsoptions');toggleTrTd('attachmentsconf');" /></td> +</tr> +<tr class="formcolor" id="attachmentsoptions" {if $useAttachments ne 'y'}style="display:none;"{/if}> + <td class="sub" colspan="2">{tr}and display attachments in listing?{/tr}</td> + <td><input type="checkbox" name="showAttachments" {if $showAttachments eq 'y'}checked="checked"{/if} /></td> +</tr> +<tr class="formcolor" id="attachmentsconf" {if $useAttachments ne 'y'}style="display:none;"{/if}> + <td class="sub" colspan="3"> +{tr}Attachment display options (Use numbers to order items, 0 will not be displayed, and negative values display in popups){/tr} +<table class="normal"> <tr> + <td>{tr}Filename{/tr}</td> + <td>{tr}Created{/tr}</td> + <td>{tr}Downloads{/tr}</td> + <td>{tr}Comment{/tr}</td> + <td>{tr}Filesize{/tr}</td> + <td>{tr}Version{/tr}</td> + <td>{tr}Filetype{/tr}</td> + <td>{tr}LongDesc{/tr}</td> +</tr> +<tr> <td><input type="text" size="2" name="ui[filename]" value="{$ui.filename}" /></td> <td><input type="text" size="2" name="ui[created]" value="{$ui.created}" /></td> <td><input type="text" size="2" name="ui[hits]" value="{$ui.hits}" /></td> @@ -238,9 +284,10 @@ <td><input type="text" size="2" name="ui[version]" value="{$ui.version}" /></td> <td><input type="text" size="2" name="ui[filetype]" value="{$ui.filetype}" /></td> <td><input type="text" size="2" name="ui[longdesc]" value="{$ui.longdesc}" /></td> -</tr></table> -</div> +</tr> +</table> </td></tr> + <tr class="formcolor"><td colspan="2">{tr}Items can be created only during a certain time{/tr}</td><td>{tr}After:{/tr} <input type="checkbox" name="start"{if $info.start} checked="checked"{/if} /> {html_select_date prefix="start_" time=$info.start start_year="0" end_year="+10" field_order=$prefs.display_field_order} <span dir="ltr">{html_select_time prefix="start_" time=$info.start display_seconds=false}</span> {$siteTimeZone}<br />{tr}Before:{/tr} <input type="checkbox" name="end"{if $info.end} checked="checked"{/if} /> {html_select_date prefix="end_" time=$info.end start_year="0" end_year="+10" field_order=$prefs.display_field_order} <span dir="ltr">{html_select_time prefix="end_" time=$info.end display_seconds=false}</span> {$siteTimeZone} </td></tr> @@ -254,7 +301,7 @@ <td><input type="text" name="showPopup" value="{$showPopup|escape}" /></td> </tr> -<tr class="formcolor"><td> </td><td colspan="2"><input type="submit" name="save" value="{tr}Save{/tr}" /></td></tr> +<tr class="formcolor"><td colspan="3" style="text-align:right;"><input type="submit" name="save" value="{tr}Save{/tr}" /></td></tr> </table> </form> </div> @@ -266,7 +313,7 @@ <form action="tiki-admin_trackers.php" method="post"> <input type="hidden" name="trackerId" value="{$trackerId|escape}" /> <input type="hidden" name="import" value="1" /> -<textarea name="rawmeat" cols="62" rows="32" wrap="soft"> +<textarea name="rawmeat" cols="62" rows="32"> {if $trackerId} [TRACKER] trackerId = {$trackerId} @@ -314,6 +361,7 @@ <br /><input type="checkbox" name="showStatus"{if $info.showStatus eq 'y'} checked="checked"{/if} />{tr}status{/tr} <br /><input type="checkbox" name="showCreated"{if $info.showCreated eq 'y'} checked="checked"{/if} />{tr}created{/tr} <br /><input type="checkbox" name="showLastModif"{if $info.showLastModif eq 'y'} checked="checked"{/if} />{tr}lastModif{/tr} +</td></tr> <tr class="formcolor"><td>{tr}Fields{/tr}</td><td><input type="radio" name="which" value="list"/> {tr}Fields visible in items list{/tr} <br /><input type="radio" name="which" value="ls"/> {tr}Fields searchable or visible in items list{/tr} <br /><input type="radio" name="which" value="item"/> {tr}Fields visible in an item view{/tr} @@ -329,9 +377,8 @@ <form action="tiki-import_tracker.php?trackerId={$trackerId}" method="post" enctype="multipart/form-data"> <table class="normal"> <tr class="formcolor"><td>{tr}File{/tr}</td><td><input name="importfile" type="file" /></td></tr> -<tr class="formcolor"><td>{tr}Separator{/tr}</td><td><input name="separator" type="text" value="," /></td></tr> <tr class="formcolor"><td>{tr}Date Format{/tr}</td><td> -<input type="radio" name="dateFormat" value="mm/dd/yyyy" checked="ckecked" />{tr}month{/tr}/{tr}day{/tr}/{tr}year{/tr}(01/31/2008)<br /> +<input type="radio" name="dateFormat" value="mm/dd/yyyy" checked="checked"/>{tr}month{/tr}/{tr}day{/tr}/{tr}year{/tr}(01/31/2008)<br /> <input type="radio" name="dateFormat" value="dd/mm/yyyy" />{tr}day{/tr}/{tr}month{/tr}/{tr}year{/tr}(31/01/2008)<br /> <input type="radio" name="dateFormat" value="" />{tr}timestamp{/tr}</td></tr> <tr class="formcolor"><td>{tr}Charset encoding{/tr}</td><td><select name="encoding"><option value="UTF-8" selected="selected">{tr}UTF-8{/tr}</option><option value="ISO-8859-1">{tr}ISO-8859-1{/tr}</option></select></td></tr> @@ -352,12 +399,12 @@ <tr class="formcolor"> <td>{tr}Description{/tr}</td> <td colspan="2"> - {tr}Description text is tiki-parsed:{/tr} <input type="checkbox" name="duplicateDescriptionIsParsed" {if $descriptionIsParsed eq 'y'}checked="checked"{/if} onclick="toggleSpan('duplicateTrackerDesc');" /> + {tr}Description text is tiki-parsed:{/tr} <input type="checkbox" name="duplicateDescriptionIsParsed" {if $descriptionIsParsed eq 'y'}checked="checked"{/if} onclick="toggleBlock('duplicateTrackerDesc');" /> <div id="duplicateTrackerDesc" style="display:none;" > {include file=tiki-edit_help_tool.tpl qtnum="duplicateTrackerDesc" area_name="duplicateTrackerDescription"} {if $descriptionIsParsed eq 'y'}<script language="javascript"> <!--//--><![CDATA[//><!-- - toggleSpan('duplicateTrackerDesc'); + toggleBlock('duplicateTrackerDesc'); //--><!]]> </script>{/if} </div> @@ -367,11 +414,15 @@ </tr> <tr class="formcolor"><td>{tr}Tracker{/tr}</td> <td> -<select name="trackerId"> {section name=ix loop=$trackers} -<option value="{$trackers[ix].trackerId}"{if $trackerId eq $trackers[ix].trackerId} selected="selected"{/if}>{$trackers[ix].name|escape}</option> +{if $smarty.section.ix.first } + <select name="trackerId"> +{/if} + <option value="{$trackers[ix].trackerId}"{if $trackerId eq $trackers[ix].trackerId} selected="selected"{/if}>{$trackers[ix].name|escape}</option> +{if $smarty.section.ix.last } + </select> +{/if} {/section} -</select> </td> </tr> <tr class="formcolor"><td>{tr}Duplicate categories{/tr}</td><td><input type="checkbox" name="dupCateg" /></td></tr> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <se...@us...> - 2008-07-31 14:47:50
|
Revision: 13982 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=13982&view=rev Author: sept_7 Date: 2008-07-31 14:47:56 +0000 (Thu, 31 Jul 2008) Log Message: ----------- [FIX] oops /me stupid with merge :( sorry Modified Paths: -------------- trunk/lib/tiki-js.js trunk/styles/tikineat.css Modified: trunk/lib/tiki-js.js =================================================================== --- trunk/lib/tiki-js.js 2008-07-31 14:27:50 UTC (rev 13981) +++ trunk/lib/tiki-js.js 2008-07-31 14:47:56 UTC (rev 13982) @@ -1232,9 +1232,9 @@ /* Function to add image from filegals in non wysiwyg editor */ /* must be here when ajax is activated */ -function SetUrl(url) { +function SetMyUrl(area,url) { str = "{img src=" + url + " }\n"; - insertAt('editwiki', str); + insertAt(area, str); } /* Count the number of words (spearated with space) */ function wordCount(maxSize, source, cpt, message) { Modified: trunk/styles/tikineat.css =================================================================== --- trunk/styles/tikineat.css 2008-07-31 14:27:50 UTC (rev 13981) +++ trunk/styles/tikineat.css 2008-07-31 14:47:56 UTC (rev 13982) @@ -392,7 +392,7 @@ .rbox-data { padding: 2px; } -.rbox-title, .rbox-title[name="warning"] { +.rbox-title, .warning .rbox-title { border: 0; border-radius-topright : 1ex; -moz-border-radius-topright : 1ex; @@ -405,21 +405,21 @@ font-weight : bold; background-color: #eeee99; } -.rbox-data, .rbox-data[name="warning"] { +.rbox-data, .warning .rbox-data { background-color: #eeee99; border: 1px solid #DDDDCC; } -.rbox-title[name="note"] { +.note .rbox-title { background-color: #CCCCDD; } -.rbox-data[name="note"] { +.note .rbox-data { background-color: #ECECEF; border: 1px solid #CCCCDD; } -.rbox-title[name="comment"], .rbox-title[name="tip"], .rbox-title.tip { +.comment, .tip .rbox-title, .rbox-title.tip { background-color: #CCCCDD; } -.rbox-data[name="comment"], .rbox-data[name="tip"], .rbox-data.tip { +.rbox-data[name="comment"], .tip .rbox-data, .rbox-data.tip { background-color: #ECEFEC; border: 1px solid #CCDDCC; } @@ -605,13 +605,8 @@ .tableheading, .gallistheading, .listgalheading, .bloglistheading, .llisfgalheading, .llistfileslink, .llistart, .lforumheading { } +.findtitle {float: left;} -table.findtable { - margin-bottom : 1px; - padding-bottom : 10px; -} -.findtable td { } - /* Odd rows in several listings */ tr.odd { border : 1px solid #8CACBB; @@ -2193,9 +2188,21 @@ #sitelogo { background-color: white; } +.clearfix:after { + content: "."; + display: block; + height: 0; + clear: both; + visibility: hidden; +} +/* Hides from IE-mac \*/ +* html .clearfix {height: 1%;} +/* End hide from IE-mac */ +.clear { + clear: both; +} .sub { padding-left: 5em !important; } - /* end of css file */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lph...@us...> - 2008-07-31 20:02:31
|
Revision: 13990 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=13990&view=rev Author: lphuberdeau Date: 2008-07-31 20:02:38 +0000 (Thu, 31 Jul 2008) Log Message: ----------- [NEW] UI to edit and insert plug-ins Modified Paths: -------------- trunk/lib/calendar/calendarlib.php trunk/modules/mod-upcoming_events.php Modified: trunk/lib/calendar/calendarlib.php =================================================================== --- trunk/lib/calendar/calendarlib.php 2008-07-31 19:40:30 UTC (rev 13989) +++ trunk/lib/calendar/calendarlib.php 2008-07-31 20:02:38 UTC (rev 13990) @@ -586,7 +586,7 @@ return true; } - function upcoming_events($maxrows = -1, $calendarId = 0, $maxDays = -1, $order = 'start_asc') { + function upcoming_events($maxrows = -1, $calendarId = 0, $maxDays = -1, $order = 'start_asc', $priorDays = 0) { $cond = ''; $bindvars = array(); if(is_array($calendarId) && count($calendarId) > 0) { @@ -595,12 +595,14 @@ $cond = $cond." or i.`calendarId` = ? "; } $cond = $cond.")"; - $bindvars += $calendarId; + $bindvars = array_merge( $bindvars, $calendarId ); } elseif (!is_array($calendarId) and $calendarId > 0) { $cond = $cond." and i.`calendarId` = ? "; - $bindvars += array($calendarId); + $bindvars[] = $calendarId; } - $cond .= " and `end` >= (unix_timestamp(now()))"; + $cond .= " and `end` >= (unix_timestamp(now()) - ?*3600*34)"; + $bindvars[] = $priorDays; + if($maxDays > 0) { $maxSeconds = ($maxDays * 24 * 60 * 60); Modified: trunk/modules/mod-upcoming_events.php =================================================================== --- trunk/modules/mod-upcoming_events.php 2008-07-31 19:40:30 UTC (rev 13989) +++ trunk/modules/mod-upcoming_events.php 2008-07-31 20:02:38 UTC (rev 13990) @@ -39,9 +39,13 @@ } $events = array(); -if (!empty($viewable)) $events = $calendarlib->upcoming_events($module_rows, - array_intersect(isset($module_params["calendarId"]) ? array($module_params["calendarId"]) : $calIds, $viewable), - isset($module_params["maxDays"]) ? $module_params["maxDays"] : 365); +if (!empty($viewable)) + $events = $calendarlib->upcoming_events($module_rows, + array_intersect(isset($module_params["calendarId"]) ? array($module_params["calendarId"]) : $calIds, $viewable), + isset($module_params["maxDays"]) ? $module_params["maxDays"] : 365, + 'start_asc', + isset($module_params["priorDays"]) ? (int) $modile_params["priorDays"] : 0 + ); $smarty->assign('modUpcomingEvents', $events); $smarty->assign('maxlen', isset($module_params["maxlen"]) ? $module_params["maxlen"] : 0); $smarty->assign('nonums', isset($module_params["nonums"]) ? $module_params["nonums"] : 'n'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lph...@us...> - 2008-07-31 20:04:21
|
Revision: 13991 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=13991&view=rev Author: lphuberdeau Date: 2008-07-31 20:04:24 +0000 (Thu, 31 Jul 2008) Log Message: ----------- [NEW] UI to edit and insert plug-ins Modified Paths: -------------- trunk/lib/tiki-js.js trunk/lib/tikilib.php trunk/lib/wiki/wikilib.php trunk/lib/wiki-plugins/wikiplugin_annotation.php trunk/lib/wiki-plugins/wikiplugin_trackerlist.php trunk/styles/transitions/1.9to2.0.css trunk/styles/transitions/2.0to3.0.css trunk/templates/tiki-edit_help.tpl trunk/templates/tiki-page_bar.tpl Added Paths: ----------- trunk/lib/wiki-plugins/wikiplugin_proposal.php trunk/templates/tiki-plugin_help.tpl trunk/templates/wiki-plugins/wikiplugin_proposal.tpl trunk/tiki-jsplugin.php trunk/tiki-wikiplugin_edit.php Removed Paths: ------------- trunk/tiki-annotation_edit.php Modified: trunk/lib/tiki-js.js =================================================================== --- trunk/lib/tiki-js.js 2008-07-31 20:02:38 UTC (rev 13990) +++ trunk/lib/tiki-js.js 2008-07-31 20:04:24 UTC (rev 13991) @@ -1247,3 +1247,168 @@ } } +function show_plugin_form( type, index, pageName, args, bodyContent ) +{ + var target = document.getElementById( type + index ); + var content = target.innerHTML; + + var form = build_plugin_form( type, index, pageName, args, bodyContent ); + + target.innerHTML = ''; + target.appendChild( form ); +} + +function popup_plugin_form( type ) +{ + var container = document.createElement( 'div' ); + container.className = 'plugin-form-float'; + + var minimize = document.createElement( 'a' ); + var icon = document.createElement( 'img' ); + minimize.appendChild( icon ); + minimize.href = 'javascript:void(0)'; + container.appendChild( minimize ); + icon.src = 'images/fullscreen_minimize.gif'; + icon.style.position = 'absolute'; + icon.style.top = '0px'; + icon.style.right = '0px'; + icon.style.border = 'none'; + + var form = build_plugin_form( + type, + 0, + '', + {}, + '' + ); + + form.onsubmit = function() + { + var meta = tiki_plugins[type]; + var params = []; + + for( var k in meta.params ) + { + var val = form['params[' + k + ']'].value; + + if( val != '' ) + params.push( k + '=>"' + val + '"' ); + } + + var blob = '{' + type.toUpperCase() + '(' + params.join(',') + ')}' + form.content.value + '{' + type.toUpperCase() + '}'; + + insertAt( 'editwiki', blob ); + + document.body.removeChild( container ); + return false; + } + + minimize.onclick = function() { + document.body.removeChild( container ); + }; + + document.body.appendChild( container ); + container.appendChild( form ); +} + +function build_plugin_form( type, index, pageName, args, bodyContent ) +{ + var form = document.createElement( 'form' ); + form.method = 'post'; + form.action = 'tiki-wikiplugin_edit.php'; + + var hiddenPage = document.createElement( 'input' ); + hiddenPage.type = 'hidden'; + hiddenPage.name = 'page'; + hiddenPage.value = pageName; + form.appendChild( hiddenPage ); + + var hiddenType = document.createElement( 'input' ); + hiddenType.type = 'hidden'; + hiddenType.name = 'type'; + hiddenType.value = type; + form.appendChild( hiddenType ); + + var hiddenIndex = document.createElement( 'input' ); + hiddenIndex.type = 'hidden'; + hiddenIndex.name = 'index'; + hiddenIndex.value = index; + form.appendChild( hiddenIndex ); + + var meta = tiki_plugins[type]; + + var header = document.createElement( 'h3' ); + header.innerHTML = meta.name; + form.appendChild( header ); + + var desc = document.createElement( 'div' ); + desc.innerHTML = meta.description; + form.appendChild( desc ); + + var table = document.createElement( 'table' ); + table.className = 'normal'; + form.appendChild( table ); + + for( i in meta.params ) + { + var row = document.createElement( 'tr' ); + var label = document.createElement( 'td' ); + var field = document.createElement( 'td' ); + row.className = 'formcolor'; + + label.innerHTML = meta.params[i].name; + if( meta.params[i].required ) + label.style.fontWeight = 'bold'; + + var input = document.createElement( 'input' ); + input.type = 'text'; + input.name = 'params[' + i + ']'; + if( args[i] ) + input.value = args[i]; + + var desc = document.createElement( 'div' ); + desc.style.fontSize = 'x-small'; + desc.innerHTML = meta.params[i].description; + + field.appendChild( input ); + field.appendChild( desc ); + row.appendChild( label ); + row.appendChild( field ); + table.appendChild( row ); + } + + var bodyRow = document.createElement( 'tr' ); + var bodyCell = document.createElement( 'td' ); + var bodyField = document.createElement( 'textarea' ); + var bodyDesc = document.createElement( 'div' ); + + if( meta.body ) + bodyDesc.innerHTML = meta.body; + else + bodyRow.style.display = 'none'; + + bodyField.name = 'content'; + bodyField.value = bodyContent; + + bodyRow.className = 'formcolor'; + + table.appendChild( bodyRow ); + bodyRow.appendChild( bodyCell ); + bodyCell.appendChild( bodyDesc ); + bodyCell.appendChild( bodyField ); + bodyCell.colSpan = '2'; + + var submitRow = document.createElement( 'tr' ); + var submitCell = document.createElement( 'td' ); + var submit = document.createElement( 'input' ); + + submit.type = 'submit'; + table.appendChild( submitRow ); + submitRow.appendChild( submitCell ); + submitCell.colSpan = 2; + submitCell.appendChild( submit ); + submitCell.className = 'submit'; + + return form; +} + Modified: trunk/lib/tikilib.php =================================================================== --- trunk/lib/tikilib.php 2008-07-31 20:02:38 UTC (rev 13990) +++ trunk/lib/tikilib.php 2008-07-31 20:04:24 UTC (rev 13991) @@ -5033,7 +5033,7 @@ // This recursive function handles pre- and no-parse sections and plugins function parse_first(&$data, &$preparsed, &$noparsed, $real_start_diff='0') { - global $dbTiki; + global $dbTiki, $smarty, $tiki_p_edit; if( strlen( $data ) <= 1 ) { @@ -5158,11 +5158,13 @@ // Normal plugins // Construct plugin file pathname + $plugin_name = strtolower($plugins[1]); $php_name = 'lib/wiki-plugins/wikiplugin_'; - $php_name .= strtolower($plugins[1]). '.php'; + $php_name .= $plugin_name . '.php'; // Construct plugin function name - $func_name = 'wikiplugin_' . strtolower($plugins[1]); + $func_name = 'wikiplugin_' . $plugin_name; + $func_name_info = $func_name . '_info'; $params_string = $plugins[2]; @@ -5200,6 +5202,13 @@ if (file_exists($php_name)) { include_once ($php_name); + static $plugin_indexes = array(); + + if( ! array_key_exists( $plugin_name, $plugin_indexes ) ) + $plugin_indexes[$plugin_name] = 0; + + $current_index = ++$plugin_indexes[$plugin_name]; + // We store CODE stuff out of the way too, but then process it as a plugin as well. if( preg_match( '/^ *\{CODE\(/', $plugin_start ) ) { @@ -5223,6 +5232,13 @@ $ret = $func_name($plugin_data, $arguments, $real_start_diff + $pos+strlen($plugin_start)); } + + if( function_exists( $func_name_info ) && $tiki_p_edit == 'y' ) { + include_once('lib/smarty_tiki/function.icon.php'); + global $headerlib, $page; + $headerlib->add_jsfile( 'tiki-jsplugin.php?plugin=' . urlencode( $plugin_name ) ); + $ret = '<div><div style="float:right;"><a href="javascript:void(0)" onclick="show_plugin_form(\'' . addslashes($plugin_name) . '\', ' . addslashes($current_index) . ', \'' . addslashes($page) . '\', ' . htmlentities(json_encode($arguments)) . ', ' . htmlentities(json_encode(trim($plugin_data))) . ');this.style.display=\'none\'">'.smarty_function_icon(array('_id'=>'page_edit', 'alt'=>tra('Edit Plugin')), $smarty).'</a></div><div id="' . $plugin_name . $current_index . '">' . $ret . '</div></div>'; + } } else { // Handle nested plugins. $this->parse_first($plugin_data, $preparsed, $noparsed); Modified: trunk/lib/wiki/wikilib.php =================================================================== --- trunk/lib/wiki/wikilib.php 2008-07-31 20:02:38 UTC (rev 13990) +++ trunk/lib/wiki/wikilib.php 2008-07-31 20:04:24 UTC (rev 13991) @@ -684,10 +684,12 @@ if (!$cachelib->isCached('plugindesc')) { $plugins = array(); foreach ($files as $pfile) { - $pinfo['file'] = $pfile; - $pinfo["help"] = $this->get_plugin_description($pfile); + $pinfo['file'] = $pfile; + $pinfo["help"] = $this->get_plugin_description($pfile, $enabled); $pinfo["name"] = strtoupper(str_replace(".php", "", str_replace("wikiplugin_", "", $pfile))); - $plugins[] = $pinfo; + + if( $enabled ) + $plugins[] = $pinfo; } $cachelib->cacheItem("plugindesc",serialize($plugins)); } else { @@ -702,24 +704,48 @@ // // Call 'wikiplugin_.*_description()' from given file // - function get_plugin_description($file) { + function get_plugin_description($file, &$enabled) { global $tikilib; $data = ''; - $fp = fopen(PLUGINS_DIR . '/' . $file, 'r'); - while(!feof($fp)) { - $data .= fread($fp,4096); - } - fclose($fp); - $func_name = str_replace('.php', '', $file). '_help'; - if (!preg_match('#.*?function\s+' . $func_name . - '[\s|^]*\([\s|^]*\)[\s|^]*(.+)#msi', $data, $prematch) - || !preg_match('#\{((?:(?R)|[^{}]+)+)}#ms', - $prematch[1], $matches)) { - return ''; - } - $fun = create_function('', $matches[1]); - $ret = $tikilib->parse_data($fun()); - return $ret; + require_once PLUGINS_DIR . '/' . $file; + + // If info function exists, it means the improved method is available + $func_name = str_replace('.php', '', $file). '_info'; + if( ! function_exists( $func_name ) ) + { + $enabled = true; + + $func_name = str_replace('.php', '', $file). '_help'; + if( ! function_exists( $func_name ) ) + return false; + + $ret = $func_name(); + return $tikilib->parse_data($ret); + } + else + { + global $smarty; + $enabled = true; + + $ret = $func_name(); + + if( isset( $ret['prefs'] ) ) + { + global $prefs, $headerlib; + + // If the plugin defines required preferences, they should all be to 'y' + foreach( $ret['prefs'] as $pref ) + if( ! isset( $prefs[$pref] ) || $prefs[$pref] != 'y' ) + { + $enabled = false; + return; + } + } + + $smarty->assign( 'plugin', $ret ); + $smarty->assign( 'plugin_name', strtoupper( substr( $file, 11, -4 ) ) ); + return $smarty->fetch( 'tiki-plugin_help.tpl' ); + } } // get all modified pages for a user (if actionlog is not clean Modified: trunk/lib/wiki-plugins/wikiplugin_annotation.php =================================================================== --- trunk/lib/wiki-plugins/wikiplugin_annotation.php 2008-07-31 20:02:38 UTC (rev 13990) +++ trunk/lib/wiki-plugins/wikiplugin_annotation.php 2008-07-31 20:04:24 UTC (rev 13991) @@ -20,6 +20,47 @@ return tra("Creates an annotation block for an image.").":<br />~np~{ANNOTATION(src=, width=, height=, align=, desc=)}__AUTOGENERATED__{ANNOTATION}~/np~"; } +function wikiplugin_annotation_info() { + return array( + 'name' => tra('Image Annotation'), + 'description' => tra("Displays an image and allow the users to define zones to highlight information on the image."), + 'prefs' => array(), + 'body' => tra('Autogenerated content. Leave blank initially.'), + 'params' => array( + 'src' => array( + 'required' => true, + 'name' => tra('Location'), + 'description' => tra('Absolute URL to the image or relative path from tikiwiki root.'), + ), + 'width' => array( + 'required' => true, + 'name' => tra('Width'), + 'description' => tra('Image width.'), + ), + 'height' => array( + 'required' => true, + 'name' => tra('Height'), + 'description' => tra('Image height.'), + ), + 'height' => array( + 'required' => true, + 'name' => tra('Height'), + 'description' => tra('Image height.'), + ), + 'align' => array( + 'required' => false, + 'name' => tra('Alignment'), + 'description' => tra('Image alignment. Possible values: left, right, center.'), + ), + 'desc' => array( + 'required' => false, + 'name' => tra('Description'), + 'description' => tra('Image description.'), + ), + ) + ); +} + function wikiplugin_annotation($data, $params) { static $first = true; global $page, $tiki_p_edit; @@ -370,10 +411,11 @@ if( $tiki_p_edit == 'y' ) $form = <<<FORM -<form method="post" action="tiki-annotation_edit.php"> +<form method="post" action="tiki-wikiplugin_edit.php"> <div style="display:none"> <input type="hidden" name="page" value="$page"/> - <input type="hidden" name="annotation" value="$uid"/> + <input type="hidden" name="type" value="annotation"/> + <input type="hidden" name="index" value="$uid"/> <textarea id="$cid-content" name="content"></textarea> </div> <p><input type="submit" value="$labelSave"/></p> @@ -404,7 +446,7 @@ <script type="text/javascript"> var toCreate$uid = $annotations; function todo$uid() { -for( k in toCreate$uid ) +for( k = 0; k < toCreate$uid.length; ++k ) createAnnotation( toCreate{$uid}[k], '$cid' ); serializeAnnotations( annotations, '$cid' ); Copied: trunk/lib/wiki-plugins/wikiplugin_proposal.php (from rev 13988, branches/experimental/plugin_ui/lib/wiki-plugins/wikiplugin_proposal.php) =================================================================== --- trunk/lib/wiki-plugins/wikiplugin_proposal.php (rev 0) +++ trunk/lib/wiki-plugins/wikiplugin_proposal.php 2008-07-31 20:04:24 UTC (rev 13991) @@ -0,0 +1,73 @@ +<?php + +// $Id: /cvsroot/tikiwiki/tiki/lib/wiki-plugins/wikiplugin_agentinfo.php,v 1.5.2.1 2007-12-07 12:55:20 pkdille Exp $ + +// Wiki plugin to display a proposal acceptance widget + +function wikiplugin_proposal_help() { + return tra("Displays a proposal acceptance widget").":<br />~np~{AGENTINFO(info=>IP or SVRSW or BROWSER)/}~/np~"; +} + +function wikiplugin_proposal_info() { + return array( + 'name' => tra('Proposal'), + 'description' => tra('Provides a widget for users to vote on a proposal and view the current decision.'), + 'prefs' => array(), + 'body' => tra('The list of votes casted. One vote per line. Either 0, +1 or -1 followed by a username.'), + 'params' => array( + 'caption' => array( + 'required' => false, + 'name' => tra( 'Caption' ), + 'description' => tra("Short description of the proposal to vote on. Will be displayed above the result table."), + ), + ), + ); +} + +function wikiplugin_proposal($data, $params) { + $voteData = explode( "\n", $data ); + $votes = array(); + + foreach( $voteData as $entry ) + { + $entry = trim( $entry ); + if( preg_match( "/^(([\+\-]1)|0)\s+(\w+)/", $entry, $parts ) ) + { + list( $full, $vote, $null, $voter ) = $parts; + + $votes[$voter] = $vote; + } + } + + $counts = array( + '+1' => array(), + '0' => array(), + '-1' => array(), + ); + + foreach( $votes as $voter => $vote ) + $counts[$vote][] = $voter; + + global $smarty, $user, $tiki_p_edit; + $smarty->assign( 'counts', $counts ); + + if( $user && $tiki_p_edit == 'y' ) + { + $availableVotes = array( + tra('Accept proposal') => "$data\n+1 $user", + tra('Still undecided') => "$data\n0 $user", + tra('Reject proposal') => "$data\n-1 $user", + ); + + $smarty->assign( 'available_votes', $availableVotes ); + } + + static $passes; + $smarty->assign( 'passes', ++$passes ); + $smarty->assign( 'params', $params ); + $content = $smarty->fetch( 'wiki-plugins/wikiplugin_proposal.tpl' ); + + return "~np~$content~/np~"; +} + +?> Modified: trunk/lib/wiki-plugins/wikiplugin_trackerlist.php =================================================================== --- trunk/lib/wiki-plugins/wikiplugin_trackerlist.php 2008-07-31 20:02:38 UTC (rev 13990) +++ trunk/lib/wiki-plugins/wikiplugin_trackerlist.php 2008-07-31 20:04:24 UTC (rev 13991) @@ -7,6 +7,177 @@ return $help; } +function wikiplugin_trackerlist_info() { + return array( + 'name' => tra('Tracker List'), + 'description' => tra('Displays the output of a tracker content, fields are indicated with numeric ids.'), + 'prefs' => array( 'feature_trackers' ), + 'body' => tra('Notice'), + 'params' => array( + 'trackerId' => array( + 'required' => true, + 'name' => tra('Tracker ID'), + 'description' => tra('Tracker ID'), + ), + 'fields' => array( + 'required' => true, + 'name' => tra('Fields'), + 'description' => tra('Colon-separated list of field IDs to be displayed. Example: 2:4:5'), + ), + 'sort' => array( + 'required' => false, + 'name' => tra('Sort'), + 'description' => tra('y|n'), + ), + 'popup' => array( + 'required' => false, + 'name' => tra('Popup'), + 'description' => tra('Colon-separated list of fields to display on click. Example: 6:7'), + ), + 'stickypopup' => array( + 'required' => false, + 'name' => tra('Sticky Popup'), + 'description' => tra('y|n'), + ), + 'showtitle' => array( + 'required' => false, + 'name' => tra('Show Title'), + 'description' => tra('y|n'), + ), + 'showlinks' => array( + 'required' => false, + 'name' => tra('Show Links'), + 'description' => tra('y|n'), + ), + 'showdesc' => array( + 'required' => false, + 'name' => tra('Show Description'), + 'description' => tra('y|n'), + ), + 'shownbitems' => array( + 'required' => false, + 'name' => tra('shownbitems'), + 'description' => tra('y|n'), + ), + 'showinitials' => array( + 'required' => false, + 'name' => tra('Show Initials'), + 'description' => tra('y|n'), + ), + 'showstatus' => array( + 'required' => false, + 'name' => tra('Show Status'), + 'description' => tra('y|n'), + ), + 'showcreated' => array( + 'required' => false, + 'name' => tra('Show Creation Date'), + 'description' => tra('y|n'), + ), + 'showlastmodif' => array( + 'required' => false, + 'name' => tra('Show Last Modification'), + 'description' => tra('y|n'), + ), + 'showfieldname' => array( + 'required' => false, + 'name' => tra('Show Field Name'), + 'description' => tra('y|n'), + ), + 'status' => array( + 'required' => false, + 'name' => tra('Status Filter'), + 'description' => tra('Which item status to list. o = open, p = pending, c = closed. Valid values: o|p|c|op|oc|pc|opc.'), + ), + 'sort_mode' => array( + 'required' => false, + 'name' => tra('Sort Mode'), + 'description' => tra('?'), + ), + 'max' => array( + 'required' => false, + 'name' => tra('Max'), + 'description' => tra('?'), + ), + 'filterfield' => array( + 'required' => false, + 'name' => tra('Filter Field'), + 'description' => tra('Colon separated list of fields to allow filtering on.'), + ), + 'filtervalue' => array( + 'required' => false, + 'name' => tra('Filter Value'), + 'description' => tra('?'), + ), + 'exactvalue' => array( + 'required' => false, + 'name' => tra('Exact Value'), + 'description' => tra('?'), + ), + 'checkbox' => array( + 'required' => false, + 'name' => tra('Checkbox'), + 'description' => tra('?'), + ), + 'goIfOne' => array( + 'required' => false, + 'name' => tra('goIfOne'), + 'description' => tra('?'), + ), + 'more' => array( + 'required' => false, + 'name' => tra('More'), + 'description' => tra('y|n'), + ), + 'moreurl' => array( + 'required' => false, + 'name' => tra('More URL'), + 'description' => tra('?'), + ), + 'view' => array( + 'required' => false, + 'name' => tra('View'), + 'description' => tra('?'), + ), + 'tpl' => array( + 'required' => false, + 'name' => tra('Template'), + 'description' => tra('?'), + ), + 'wiki' => array( + 'required' => false, + 'name' => tra('Wiki'), + 'description' => tra('?'), + ), + 'view_user' => array( + 'required' => false, + 'name' => tra('View User'), + 'description' => tra('?'), + ), + 'itemId' => array( + 'required' => false, + 'name' => tra('Item ID'), + 'description' => tra('?'), + ), + 'url' => array( + 'required' => false, + 'name' => tra('URL'), + 'description' => tra('?'), + ), + 'ldelim' => array( + 'required' => false, + 'name' => tra('Left Deliminator'), + 'description' => tra('?'), + ), + 'rdelim' => array( + 'required' => false, + 'name' => tra('Right Deliminator'), + 'description' => tra('?'), + ), + ), + ); +} + function wikiplugin_trackerlist($data, $params) { global $smarty, $tikilib, $dbTiki, $userlib, $tiki_p_admin_trackers, $prefs, $_REQUEST, $tiki_p_view_trackers, $user, $page, $tiki_p_tracker_vote_ratings, $tiki_p_tracker_view_ratings, $trklib, $tiki_p_traker_vote_rating; require_once("lib/trackers/trackerlib.php"); Modified: trunk/styles/transitions/1.9to2.0.css =================================================================== --- trunk/styles/transitions/1.9to2.0.css 2008-07-31 20:02:38 UTC (rev 13990) +++ trunk/styles/transitions/1.9to2.0.css 2008-07-31 20:04:24 UTC (rev 13991) @@ -544,3 +544,4 @@ .sub { padding-left: 5em !important; } + Modified: trunk/styles/transitions/2.0to3.0.css =================================================================== --- trunk/styles/transitions/2.0to3.0.css 2008-07-31 20:02:38 UTC (rev 13990) +++ trunk/styles/transitions/2.0to3.0.css 2008-07-31 20:04:24 UTC (rev 13991) @@ -3,3 +3,30 @@ They should be added to themes (possibly with tweaks) to make the theme v3.0 ready */ +.plugin-desc { + padding: 5px; +} + +.plugin-sample { + padding: 5px; + font-family: monospace; +} + +.plugin-sample .plugin-param { + padding-left: 15px; +} + +.plugin-form-float { + position: fixed; + left: 15%; + right: 15%; + top: 10%; + max-height: 80%; + overflow: auto; + + background: white; + + padding: 10px; + + border: solid 2px black; +} Modified: trunk/templates/tiki-edit_help.tpl =================================================================== --- trunk/templates/tiki-edit_help.tpl 2008-07-31 20:02:38 UTC (rev 13990) +++ trunk/templates/tiki-edit_help.tpl 2008-07-31 20:04:24 UTC (rev 13991) @@ -6,7 +6,6 @@ <div id="wikihelp-tab"> {if count($plugins) ne 0 and !($wysiwyg ne 'y' and $prefs.wysiwyg_wiki_parsed ne 'y' and $prefs.wysiwyg_wiki_semi_parsed ne 'y')} <div style="text-align: right;"> - <a href="javascript:hide('wikihelp-tab');show('wikiplhelp-tab');" onclick="needToConfirm = false;">{tr}Show Plugins Help{/tr}</a> <a title="{tr}Close{/tr}" href="javascript:flip('edithelpzone');">{icon _id=minus_small alt="{tr}Close{/tr}" width="11" height="8"}</a> </div> {/if} @@ -96,7 +95,6 @@ {if count($plugins) ne 0} <div id="wikiplhelp-tab" style="display:none;"> <div style="text-align: right;"> - <a href="javascript:hide('wikiplhelp-tab');show('wikihelp-tab');">{tr}Show Text Formatting Rules{/tr}</a> <a title="{tr}Close{/tr}" href="javascript:flip('edithelpzone');">{icon _id=minus_small alt="{tr}Close{/tr}" width="11" height="8"}</a> </div> <br /> Modified: trunk/templates/tiki-page_bar.tpl =================================================================== --- trunk/templates/tiki-page_bar.tpl 2008-07-31 20:02:38 UTC (rev 13990) +++ trunk/templates/tiki-page_bar.tpl 2008-07-31 20:04:24 UTC (rev 13991) @@ -5,7 +5,8 @@ {if $edit_page eq 'y'} {if $wysiwyg eq 'n' or $prefs.wysiwyg_wiki_parsed eq 'y' or $prefs.wysiwyg_wiki_semi_parsed eq 'y'} {* Show this button only in normal editing mode *} <span class="button2"> - <a href="#edithelp" onclick="javascript:flip('edithelpzone'); return true;" name="edithelp" class="linkbut">{tr}Wiki Help{/tr}</a> + <a href="#edithelp" onclick="javascript:show('edithelpzone');hide('wikiplhelp-tab');show('wikihelp-tab'); return true;" name="edithelp" class="linkbut">{tr}Wiki Help{/tr}</a> + <a href="#edithelp" onclick="javascript:show('edithelpzone');hide('wikihelp-tab');show('wikiplhelp-tab'); return true;" name="edithelp" class="linkbut">{tr}Plugin Help{/tr}</a> </span> {/if} {else} Copied: trunk/templates/tiki-plugin_help.tpl (from rev 13988, branches/experimental/plugin_ui/templates/tiki-plugin_help.tpl) =================================================================== --- trunk/templates/tiki-plugin_help.tpl (rev 0) +++ trunk/templates/tiki-plugin_help.tpl 2008-07-31 20:04:24 UTC (rev 13991) @@ -0,0 +1,22 @@ +<script type="text/javascript" src="tiki-jsplugin.php?plugin={$plugin_name|lower|@urlencode}"></script> +<h3>{$plugin.name|escape} <a href="javascript:void(0)" onclick="popup_plugin_form('{$plugin_name|lower|@addslashes}')">{tr}Insert{/tr}</a></h3> +<div class="plugin-desc"> +{$plugin.description} +</div> +<div class="plugin-sample"> +{{$plugin_name}( +{foreach key=name item=param from=$plugin.params} + <div class="plugin-param"> + {if param.required} + {$name}=><em>"{$param.description|escape}"</em> + {else} + [ {$name}=><em>"{$param.description|escape}"</em> ] + {/if} + </div> +{/foreach} +)} +<div class="plugin-param"> +{$plugin.body} +</div> +{{$plugin_name}} +</div> Copied: trunk/templates/wiki-plugins/wikiplugin_proposal.tpl (from rev 13988, branches/experimental/plugin_ui/templates/wiki-plugins/wikiplugin_proposal.tpl) =================================================================== --- trunk/templates/wiki-plugins/wikiplugin_proposal.tpl (rev 0) +++ trunk/templates/wiki-plugins/wikiplugin_proposal.tpl 2008-07-31 20:04:24 UTC (rev 13991) @@ -0,0 +1,45 @@ +<table class="normal"> + {if $params.caption} + <caption>{$params.caption|escape}</caption> + {/if} + <tr> + <th>{tr}Accept{/tr}</th> + <th>{tr}Undecided{/tr}</th> + <th>{tr}Reject{/tr}</th> + </tr> + <tr> + {foreach item=voters from=$counts} + <td>{$voters|@count}</td> + {/foreach} + </tr> + <tr id="plugin-proposal-votelist{$passes}"> + {foreach item=voters from=$counts} + <td> + {if $voters|@count} + <ul> + {foreach from=$voters item=name} + <li>{$name|escape}</li> + {/foreach} + </ul> + {/if} + </td> + {/foreach} + </tr> + {if $available_votes} + <tr> + {foreach from=$available_votes item=body key=label} + <td> + <form method="post" action="tiki-wikiplugin_edit.php"> + <div> + <input type="hidden" name="page" value="{$page|escape}"/> + <input type="hidden" name="content" value="{$body|escape}"/> + <input type="hidden" name="index" value="{$passes|escape}"/> + <input type="hidden" name="type" value="proposal"/> + <input type="submit" value="{$label|escape}"/> + </div> + </form> + </td> + {/foreach} + </tr> + {/if} +</table> Deleted: trunk/tiki-annotation_edit.php =================================================================== --- trunk/tiki-annotation_edit.php 2008-07-31 20:02:38 UTC (rev 13990) +++ trunk/tiki-annotation_edit.php 2008-07-31 20:04:24 UTC (rev 13991) @@ -1,46 +0,0 @@ -<?php -require 'tiki-setup.php'; - -if( ! isset( $_POST['page'], $_POST['content'], $_POST['annotation'], $_SERVER['HTTP_REFERER'] ) ) - die( 'Missing parameters' ); - -$page = $_POST['page']; - -$info = $tikilib->get_page_info($page); -$tikilib->get_perm_object($page, 'wiki page', $info, true); -if ($tiki_p_edit != 'y') { - header( "Location: {$_SERVER['HTTP_REFERER']}" ); - exit; -} -$content = $_POST['content']; -$current = $info['data']; - -$pos = 0; -$count = 0; -while( false !== $pos = strpos( $current, '{ANNOTATION(', $pos + 1 ) ) -{ - ++$count; - - if( $_POST['annotation'] == $count ) - { - $endparam = strpos( $current, ')}', $pos ); - if( false === $endparam ) - die( 'oops.' ); - $body = $endparam + 2; - $endbody = strpos( $current, '{ANNOTATION}', $endparam ); - if( false === $endbody ) - die( 'oops.' ); - - $before = substr( $current, 0, $body ); - $after = substr( $current, $endbody ); - - $content = $before . "\n" . $content . $after; - - $tikilib->update_page( $page, $content, tra('Image annotations changed.'), $user, $_SERVER['REMOTE_ADDR'] ); - - header( "Location: {$_SERVER['HTTP_REFERER']}" ); - exit; - } -} - -?> Copied: trunk/tiki-jsplugin.php (from rev 13988, branches/experimental/plugin_ui/tiki-jsplugin.php) =================================================================== --- trunk/tiki-jsplugin.php (rev 0) +++ trunk/tiki-jsplugin.php 2008-07-31 20:04:24 UTC (rev 13991) @@ -0,0 +1,25 @@ +<?php +include 'tiki-setup.php'; + +if( !isset( $_GET['plugin'] ) ) + exit; + +$plugin = basename( $_GET['plugin'] ); +$file = 'lib/wiki-plugins/wikiplugin_' . $plugin . '.php'; +$info = "wikiplugin_{$plugin}_info"; + +if( ! file_exists( $file ) ) + exit; + +include $file; + +if( ! function_exists( $info ) ) + exit; + +?> + +if( ! tiki_plugins ) + var tiki_plugins = {}; + +tiki_plugins[<?php echo json_encode( $plugin ) ?>] = <?php echo json_encode( $info() ) ?>; + Copied: trunk/tiki-wikiplugin_edit.php (from rev 13988, branches/experimental/plugin_ui/tiki-wikiplugin_edit.php) =================================================================== --- trunk/tiki-wikiplugin_edit.php (rev 0) +++ trunk/tiki-wikiplugin_edit.php 2008-07-31 20:04:24 UTC (rev 13991) @@ -0,0 +1,78 @@ +<?php +require 'tiki-setup.php'; + +if( ! isset( $_POST['page'], $_POST['content'], $_POST['index'], $_POST['type'], $_SERVER['HTTP_REFERER'] ) ) + die( 'Missing parameters' ); + +$page = $_POST['page']; + +$plugin = basename( $_POST['type'] ); +$type = strtoupper( $plugin ); +$file = 'lib/wiki-plugins/wikiplugin_' . $plugin . '.php'; +$info = "wikiplugin_{$plugin}_info"; + +if( ! file_exists( $file ) ) + exit; + +include $file; + +if( ! function_exists( $info ) ) + exit; + +$meta = $info(); + +$info = $tikilib->get_page_info($page); +$tikilib->get_perm_object($page, 'wiki page', $info, true); +if ($tiki_p_edit != 'y') { + header( "Location: {$_SERVER['HTTP_REFERER']}" ); + exit; +} +$content = $_POST['content']; +$current = $info['data']; + +$pos = 0; +$count = 0; +while( false !== $pos = strpos( $current, "{{$type}(", $pos + 1 ) ) +{ + ++$count; + + if( $_POST['index'] == $count ) + { + $endparam = strpos( $current, ')}', $pos ); + if( false === $endparam ) + die( 'oops.' ); + $body = $endparam + 2; + $endbody = strpos( $current, "{{$type}}", $endparam ); + if( false === $endbody ) + die( 'oops.' ); + + $before = substr( $current, 0, $body ); + $after = substr( $current, $endbody ); + + // If parameters are provided, rebuild the parameter line + if( isset( $_POST['params'] ) && is_array( $_POST['params'] ) ) + { + $values = array_intersect_key( $_POST['params'], $meta['params'] ); + + $parts = array(); + foreach( $values as $key => $value ) + if( ! empty( $value ) ) + $parts[] = "$key=>\"$value\""; + + $params = implode( ',', $parts ); + + $before = substr( $before, 0, $pos ) + . "{{$type}($params)}"; + } + + // Replace the content + $content = $before . $content . $after; + + $tikilib->update_page( $page, $content, tra('Image annotations changed.'), $user, $_SERVER['REMOTE_ADDR'] ); + } +} + +header( "Location: {$_SERVER['HTTP_REFERER']}" ); +exit; + +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lph...@us...> - 2008-07-31 20:08:56
|
Revision: 13992 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=13992&view=rev Author: lphuberdeau Date: 2008-07-31 20:09:04 +0000 (Thu, 31 Jul 2008) Log Message: ----------- [ROLLBACK] r13990 Not ready yet, too many tabs open Modified Paths: -------------- trunk/lib/calendar/calendarlib.php trunk/modules/mod-upcoming_events.php Modified: trunk/lib/calendar/calendarlib.php =================================================================== --- trunk/lib/calendar/calendarlib.php 2008-07-31 20:04:24 UTC (rev 13991) +++ trunk/lib/calendar/calendarlib.php 2008-07-31 20:09:04 UTC (rev 13992) @@ -586,7 +586,7 @@ return true; } - function upcoming_events($maxrows = -1, $calendarId = 0, $maxDays = -1, $order = 'start_asc', $priorDays = 0) { + function upcoming_events($maxrows = -1, $calendarId = 0, $maxDays = -1, $order = 'start_asc') { $cond = ''; $bindvars = array(); if(is_array($calendarId) && count($calendarId) > 0) { @@ -595,14 +595,12 @@ $cond = $cond." or i.`calendarId` = ? "; } $cond = $cond.")"; - $bindvars = array_merge( $bindvars, $calendarId ); + $bindvars += $calendarId; } elseif (!is_array($calendarId) and $calendarId > 0) { $cond = $cond." and i.`calendarId` = ? "; - $bindvars[] = $calendarId; + $bindvars += array($calendarId); } - $cond .= " and `end` >= (unix_timestamp(now()) - ?*3600*34)"; - $bindvars[] = $priorDays; - + $cond .= " and `end` >= (unix_timestamp(now()))"; if($maxDays > 0) { $maxSeconds = ($maxDays * 24 * 60 * 60); Modified: trunk/modules/mod-upcoming_events.php =================================================================== --- trunk/modules/mod-upcoming_events.php 2008-07-31 20:04:24 UTC (rev 13991) +++ trunk/modules/mod-upcoming_events.php 2008-07-31 20:09:04 UTC (rev 13992) @@ -39,13 +39,9 @@ } $events = array(); -if (!empty($viewable)) - $events = $calendarlib->upcoming_events($module_rows, - array_intersect(isset($module_params["calendarId"]) ? array($module_params["calendarId"]) : $calIds, $viewable), - isset($module_params["maxDays"]) ? $module_params["maxDays"] : 365, - 'start_asc', - isset($module_params["priorDays"]) ? (int) $modile_params["priorDays"] : 0 - ); +if (!empty($viewable)) $events = $calendarlib->upcoming_events($module_rows, + array_intersect(isset($module_params["calendarId"]) ? array($module_params["calendarId"]) : $calIds, $viewable), + isset($module_params["maxDays"]) ? $module_params["maxDays"] : 365); $smarty->assign('modUpcomingEvents', $events); $smarty->assign('maxlen', isset($module_params["maxlen"]) ? $module_params["maxlen"] : 0); $smarty->assign('nonums', isset($module_params["nonums"]) ? $module_params["nonums"] : 'n'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lph...@us...> - 2008-07-31 20:50:19
|
Revision: 13994 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=13994&view=rev Author: lphuberdeau Date: 2008-07-31 20:50:29 +0000 (Thu, 31 Jul 2008) Log Message: ----------- [MOD] Adding priorDays parameter to allow viewing past/recent events Modified Paths: -------------- trunk/lib/calendar/calendarlib.php trunk/modules/mod-upcoming_events.php Modified: trunk/lib/calendar/calendarlib.php =================================================================== --- trunk/lib/calendar/calendarlib.php 2008-07-31 20:15:14 UTC (rev 13993) +++ trunk/lib/calendar/calendarlib.php 2008-07-31 20:50:29 UTC (rev 13994) @@ -586,7 +586,7 @@ return true; } - function upcoming_events($maxrows = -1, $calendarId = 0, $maxDays = -1, $order = 'start_asc') { + function upcoming_events($maxrows = -1, $calendarId = 0, $maxDays = -1, $order = 'start_asc', $priorDays = 0) { $cond = ''; $bindvars = array(); if(is_array($calendarId) && count($calendarId) > 0) { @@ -595,12 +595,14 @@ $cond = $cond." or i.`calendarId` = ? "; } $cond = $cond.")"; - $bindvars += $calendarId; + $bindvars = array_merge( $bindvars, $calendarId ); } elseif (!is_array($calendarId) and $calendarId > 0) { $cond = $cond." and i.`calendarId` = ? "; - $bindvars += array($calendarId); + $bindvars[] = $calendarId; } - $cond .= " and `end` >= (unix_timestamp(now()))"; + $cond .= " and `end` >= (unix_timestamp(now()) - ?*3600*34)"; + $bindvars[] = $priorDays; + if($maxDays > 0) { $maxSeconds = ($maxDays * 24 * 60 * 60); Modified: trunk/modules/mod-upcoming_events.php =================================================================== --- trunk/modules/mod-upcoming_events.php 2008-07-31 20:15:14 UTC (rev 13993) +++ trunk/modules/mod-upcoming_events.php 2008-07-31 20:50:29 UTC (rev 13994) @@ -39,9 +39,13 @@ } $events = array(); -if (!empty($viewable)) $events = $calendarlib->upcoming_events($module_rows, - array_intersect(isset($module_params["calendarId"]) ? array($module_params["calendarId"]) : $calIds, $viewable), - isset($module_params["maxDays"]) ? $module_params["maxDays"] : 365); +if (!empty($viewable)) + $events = $calendarlib->upcoming_events($module_rows, + array_intersect(isset($module_params["calendarId"]) ? array($module_params["calendarId"]) : $calIds, $viewable), + isset($module_params["maxDays"]) ? (int) $module_params["maxDays"] : 365, + 'start_asc', + isset($module_params["priorDays"]) ? (int) $module_params["priorDays"] : 0 + ); $smarty->assign('modUpcomingEvents', $events); $smarty->assign('maxlen', isset($module_params["maxlen"]) ? $module_params["maxlen"] : 0); $smarty->assign('nonums', isset($module_params["nonums"]) ? $module_params["nonums"] : 'n'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Jy...@us...> - 2008-08-01 19:24:03
|
Revision: 14005 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=14005&view=rev Author: Jyhem Date: 2008-08-01 19:24:10 +0000 (Fri, 01 Aug 2008) Log Message: ----------- [FIX] Allow changing of article image without requiring that admin flushes image caches Modified Paths: -------------- trunk/lib/articles/artlib.php trunk/tiki-edit_article.php Modified: trunk/lib/articles/artlib.php =================================================================== --- trunk/lib/articles/artlib.php 2008-08-01 18:50:40 UTC (rev 14004) +++ trunk/lib/articles/artlib.php 2008-08-01 19:24:10 UTC (rev 14005) @@ -213,6 +213,8 @@ $title, $authorName, (int) $topicId, $topicName, (int) $size, $useImage, $imgname, $imgtype, (int) $imgsize, $imgdata, $isfloat, (int) $image_x, (int) $image_y, $heading, $body, (int) $publishDate, (int) $expireDate, (int) $this->now, $user, $type, (float) $rating, $topline, $subtitle, $linkto, $image_caption, $lang, (int) $articleId ) ); + // Clear article image cache because image may just have been changed + $this->delete_image_cache($articleId); } else { // Fixed query. -rlpowell // Insert the article @@ -593,6 +595,23 @@ } return true; } + + function delete_image_cache($articleId) { + global $prefs; + // Input validation: articleID must be a number, and not 0 + if(!ctype_digit("$articleId") || !($articleId>0)) { + return false; + } + $article_image_cache = $prefs['tmpDir']; + if ($tikidomain) { $article_image_cache.= "/$tikidomain"; } + $article_image_cache.= "/article.".$articleId; + if ( @unlink($article_image_cache) ) { + return true; + }else{ + return false; + } + } + } global $dbTiki; Modified: trunk/tiki-edit_article.php =================================================================== --- trunk/tiki-edit_article.php 2008-08-01 18:50:40 UTC (rev 14004) +++ trunk/tiki-edit_article.php 2008-08-01 19:24:10 UTC (rev 14005) @@ -46,7 +46,7 @@ $_REQUEST["body"] = $template_data["content"]; } -$smarty->assign('allowhtml', 'on'); +$smarty->assign('allowhtml', 'y'); $publishDate = $tikilib->now; $cur_time = explode(',', $tikilib->date_format('%Y,%m,%d,%H,%M,%S', $publishDate)); $expireDate = $tikilib->make_time($cur_time[3], $cur_time[4], $cur_time[5], $cur_time[1], $cur_time[2], $cur_time[0]+1); @@ -66,6 +66,7 @@ $smarty->assign('image_name', ''); $smarty->assign('image_type', ''); $smarty->assign('image_size', ''); +$smarty->assign('image_data', ''); $smarty->assign('image_x', 0); $smarty->assign('image_y', 0); $smarty->assign('heading', ''); @@ -362,10 +363,7 @@ $imgtype = $_FILES['userfile1']['type']; $imgsize = $_FILES['userfile1']['size']; $imgname = $_FILES['userfile1']['name']; - $topiccachefile = $prefs['tmpDir']; - if ($tikidomain) { $topiccachefile.= "/$tikidomain"; } - $topiccachefile.= "/article.".$_REQUEST["id"]; - @unlink($topiccachefile); + @$artlib->delete_image_cache($_REQUEST["id"]); } // Parse $edit and eliminate image references to external URIs (make them internal) @@ -423,6 +421,7 @@ if ($prefs['feature_cms_templates'] == 'y' && $tiki_p_use_content_templates == 'y') { $templates = $tikilib->list_templates('cms', 0, -1, 'name_asc', ''); } + $smarty->assign_by_ref('templates', $templates["data"]); if ($prefs['feature_multilingual'] == 'y') { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <lph...@us...> - 2008-08-03 15:57:56
|
Revision: 14032 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=14032&view=rev Author: lphuberdeau Date: 2008-08-03 15:58:03 +0000 (Sun, 03 Aug 2008) Log Message: ----------- [MRG] Automatic merge, branches/2.0 13972 to 14030 Modified Paths: -------------- trunk/lang/pt-br/language.php trunk/lib/diff/renderer_sidebyside.php trunk/lib/setup/menus.php trunk/lib/setup/prefs.php trunk/lib/shadowbox/build/js/adapter/shadowbox-mootools.js trunk/lib/tikilib.php trunk/templates/header.tpl trunk/templates/tiki-admin-include-anchors.tpl trunk/templates/tiki-admin-include-features.tpl trunk/templates/tiki-admin-include-list-sections.tpl trunk/templates/tiki-admin-include-textarea.tpl trunk/templates/tiki-admin-include-wiki.tpl trunk/templates/tiki-admin.tpl trunk/templates/tiki-editpage.tpl trunk/templates/tiki-install.tpl trunk/templates/tiki-tests_menubar.tpl trunk/tiki-admin_include_features.php trunk/tiki-admin_include_textarea.php trunk/tiki-admin_include_wiki.php trunk/tiki-editpage.php trunk/tiki-index.php trunk/tiki_tests/tiki-tests_edit.php trunk/tiki_tests/tiki-tests_replay.php Added Paths: ----------- trunk/lib/mootools/mootools-1.2-core.js trunk/lib/mootools/mootools-1.2-more.js Removed Paths: ------------- trunk/tiki-admin_include_jukebox.php Modified: trunk/lang/pt-br/language.php =================================================================== --- trunk/lang/pt-br/language.php 2008-08-03 15:39:25 UTC (rev 14031) +++ trunk/lang/pt-br/language.php 2008-08-03 15:58:03 UTC (rev 14032) @@ -1265,16 +1265,6 @@ "this quiz stats" => "estatísticas deste teste", "with checked" => "com marcação", "Old vers" => "Versão ant.", -"entire site" => "site inteiro", -"search" => "buscar", -"up" => "subir", -"down" => "descer", -"remove" => "remover", -"set" => "definir", -"register" => "registrar-se", -"standard" => "padrão", -"secure" => "seguro", -"stay in ssl mode" => "permanecer no modo seguro", "Tag name" => "Nome da Tag", "Hide page name prefix" => "Esconder prefixo do nome da página", "Category for approved pages" => "Categoria para páginas aprovadas", @@ -1369,6 +1359,11 @@ "Prevent automatic/robot registration" => "Evitar cadastro automático/robôs", "IRC log" => "Log de IRC", "Show All" => "Mostrar Tudo", +"Technology" => "Tecnologia", +"Content Related" => "Recursos de conteúdo", +"Technical Features" => "Recursos técnicos", +"Content Features" => "Recursos de Conteúdo", +"Contact Us (Anonymous)" => "Contate-nos (Anônimo)", // ### end of unused words // ### start of untranslated words @@ -1635,6 +1630,7 @@ // "Can access site when closed" => "Can access site when closed", // "Can add and change ratings on wiki pages" => "Can add and change ratings on wiki pages", // "Can add events in the calendar" => "Can add events in the calendar", +// "Can admin any mypage" => "Can admin any mypage", // "Can admin article topics" => "Can admin article topics", // "Can admin article types" => "Can admin article types", // "Can admin attachments to wiki pages" => "Can admin attachments to wiki pages", @@ -1679,6 +1675,7 @@ // "Can assign perms to blog" => "Can assign perms to blog", // "Can assign perms to file gallery" => "Can assign perms to file gallery", // "Can assign perms to image gallery" => "Can assign perms to image gallery", +// "Can assign perms to mypage" => "Can assign perms to mypage", // "Can assign perms to wiki pages" => "Can assign perms to wiki pages", // "Can attach files to tracker items" => "Can attach files to tracker items", // "Can attach files to wiki pages" => "Can attach files to wiki pages", @@ -1710,7 +1707,9 @@ // "Can download files" => "Can download files", // "Can edit a gallery file" => "Can edit a gallery file", // "Can edit all comments" => "Can edit all comments", +// "Can edit any mypage" => "Can edit any mypage", // "Can edit articles" => "Can edit articles", +// "Can edit categorized items" => "Can edit categorized items", // "Can edit content templates" => "Can edit content templates", // "Can edit copyright notices" => "Can edit copyright notices", // "Can edit drawings" => "Can edit drawings", @@ -1732,6 +1731,7 @@ // "Can insert comments for tracker items" => "Can insert comments for tracker items", // "Can list file galleries" => "Can list file galleries", // "Can list image galleries" => "Can list image galleries", +// "Can list mypages" => "Can list mypages", // "Can list registered users" => "Can list registered users", // "Can list trackers" => "Can list trackers", // "Can lock pages" => "Can lock pages", @@ -1802,6 +1802,7 @@ // "Can validate submited links" => "Can validate submited links", // "Can view action log" => "Can view action log", // "Can view action log for users of his own groups" => "Can view action log for users of his own groups", +// "Can view any mypage" => "Can view any mypage", // "Can view categories" => "Can view categories", // "Can view categorized items" => "Can view categorized items", // "Can view charts" => "Can view charts", @@ -1836,6 +1837,7 @@ // "Can view wiki attachments and download" => "Can view wiki attachments and download", // "Can view wiki comments" => "Can view wiki comments", // "Can view wiki history" => "Can view wiki history", +// "Can view/edit only one's own mypages" => "Can view/edit only one's own mypages", // "Can vote" => "Can vote", // "Can vote a rating for tracker items" => "Can vote a rating for tracker items", // "Can vote comments" => "Can vote comments", @@ -1953,6 +1955,19 @@ // "Wiki Link insert" => "Wiki Link insert", // "Please make a selection of text in order to create a link" => "Please make a selection of text in order to create a link", // "Tiki Image - Insert an image" => "Tiki Image - Insert an image", +// "This is the staging copy of" => "This is the staging copy of", +// "the approved version of this page." => "the approved version of this page.", +// "View changes since last approval." => "View changes since last approval.", +// "Viewing of changes since last approval is possible only after first approval." => "Viewing of changes since last approval is possible only after first approval.", +// "Approve changes." => "Approve changes.", +// "Latest changes will be synchronized after approval." => "Latest changes will be synchronized after approval.", +// "This is a new staging page that has not been approved before. Edit and manually move it to the category for approved pages to approve it for the first time." => "This is a new staging page that has not been approved before. Edit and manually move it to the category for approved pages to approve it for the first time.", +// "{icon _id=information.png style=\"vertical-align:middle\"} Content may be out of date" => "{icon _id=information.png style=\"vertical-align:middle\"} Content may be out of date", +// "An urgent request for translation has been sent. Until this page is updated, you can see a corrected version in the following pages:" => "An urgent request for translation has been sent. Until this page is updated, you can see a corrected version in the following pages:", +// "TOC" => "TOC", +// "This is a new staging page that has not been approved before." => "This is a new staging page that has not been approved before.", +// "Monitor the Sub-Structure" => "Monitor the Sub-Structure", +// "Stop Monitoring the Sub-Structure" => "Stop Monitoring the Sub-Structure", // "For" => "For", // "Jump to Content" => "Jump to Content", // "Report to Webmaster" => "Report to Webmaster", @@ -1966,10 +1981,10 @@ // "Group by item" => "Group by item", // "Tiki Action Calendar" => "Tiki Action Calendar", // "Test" => "Test", +// "Text area" => "Text area", // "Meta Tags" => "Meta Tags", // "Intertiki" => "Intertiki", // "InterTiki" => "InterTiki", -// "Text area" => "Text area", // "Trackbacks Pings" => "Trackbacks Pings", // "Post level trackback pings" => "Post level trackback pings", // "Force and limit categorization to within subtree of" => "Force and limit categorization to within subtree of", @@ -1994,23 +2009,22 @@ // "Q and A" => "Q and A", // "Question ID" => "Question ID", // "Please see the <a class='rbox-link' target='tikihelp' href='http://doc.tikiwiki.org/Features'>evaluation of each feature</a> on Tiki's developer site." => "Please see the <a class='rbox-link' target='tikihelp' href='http://doc.tikiwiki.org/Features'>evaluation of each feature</a> on Tiki's developer site.", -// "Feature documentation links" => "Feature documentation links", -// "Help System (Feature documentation links)" => "Help System (Feature documentation links)", +// "Programmer" => "Programmer", // "Copyright System" => "Copyright System", // "Copyright system" => "Copyright system", -// "Swffix" => "Swffix", -// "HTML Purifier" => "HTML Purifier", -// "HTML Purifier (Content is cleaned to XHTML 1.1 Strict on each save)" => "HTML Purifier (Content is cleaned to XHTML 1.1 Strict on each save)", // "JavaScript popup date selector" => "JavaScript popup date selector", // "Css Menus (suckerfish)" => "Css Menus (suckerfish)", // "Friendship" => "Friendship", // "Morcego 3D browser" => "Morcego 3D browser", -// "Use Quote plugin rather than “>” for quoting" => "Use Quote plugin rather than “>” for quoting", +// "Swffix" => "Swffix", +// "HTML Purifier" => "HTML Purifier", +// "HTML Purifier (Content is cleaned to XHTML 1.1 Strict on each save)" => "HTML Purifier (Content is cleaned to XHTML 1.1 Strict on each save)", // "Action Calendar" => "Action Calendar", // "Tiki action calendar" => "Tiki action calendar", -// "TikiTests" => "TikiTests", // "Display 'MyTiki' in the application menu" => "Display 'MyTiki' in the application menu", // "User Levels" => "User Levels", +// "Programmer Features" => "Programmer Features", +// "TikiTests" => "TikiTests", // "Allow download limit per file" => "Allow download limit per file", // "For not registered author" => "For not registered author", // "If you enable Directory Batch Loading, you need to setup a web-readable directory (outside of your web space is better). Then setup a way to upload files in that dir, either by scp, ftp, or other protocols" => "If you enable Directory Batch Loading, you need to setup a web-readable directory (outside of your web space is better). Then setup a way to upload files in that dir, either by scp, ftp, or other protocols", @@ -2107,31 +2121,20 @@ // "Users Default Preferences" => "Users Default Preferences", // "Detect user timezone if browser allows, otherwise site default" => "Detect user timezone if browser allows, otherwise site default", // "Change users defaults" => "Change users defaults", -"General Layout" => "Layout do site", // "Use transition style sheet from version" => "Use transition style sheet from version", // "Never use transition css" => "Never use transition css", // "Use @version:x.x specified in theme css or none if not specified" => "Use @version:x.x specified in theme css or none if not specified", // "Use @version:x.x specified in theme css or 1.8 if not specified" => "Use @version:x.x specified in theme css or 1.8 if not specified", // "Use @version:x.x specified in theme css or 1.9 if not specified" => "Use @version:x.x specified in theme css or 1.9 if not specified", -"Required for many of the general layout features" => "Obrigatório para a maioria das opções de layout do site", -"Custom Site Header" => "Cabeçalho personalizado", // "Site logo source (image path)" => "Site logo source (image path)", // "Site logo background style" => "Site logo background style", // "Top Bar" => "Top Bar", // "Menu ID" => "Menu ID", -"Custom code" => "Código personalizado", // "Prefix breadcrumbs with 'Location : ' " => "Prefix breadcrumbs with 'Location : ' ", // "Site Report Bar" => "Site Report Bar", // "Webmaster Report" => "Webmaster Report", // "Webmaster Email" => "Webmaster Email", -"Custom Site Footer" => "Rodapé personalizado", -"Pagination links" => "Paginação", -"Use relative (next / previous) pagination links" => "Usar links de paginação relativos (próximo / anterior)", -"Max. number of links around the current item:" => "Número máximo de links em torno da página atual:", -"Max. number of links after the first or before the last item:" => "Número máximo de links depois da primeira ou antes da última página:", -"Display 'First' and 'Last' links" => "Exibir links 'Primeiro' e 'Último'", // "Display fast move links (by 10 percent of the total number of pages) " => "Display fast move links (by 10 percent of the total number of pages) ", -"Use Icons" => "Usar ícones", // "Use context menus for actions (icons) (only in file galleries yet)" => "Use context menus for actions (icons) (only in file galleries yet)", // "Use context menus for actions (text) (only in file galleries yet)" => "Use context menus for actions (text) (only in file galleries yet)", // "Users can opt-out internal messages" => "Users can opt-out internal messages", @@ -2193,6 +2196,7 @@ // "0 for no refresh" => "0 for no refresh", // "Text area (that apply throughout many features)" => "Text area (that apply throughout many features)", // "Show quicktags over textareas (instead on left side)" => "Show quicktags over textareas (instead on left side)", +// "Use Quote plugin rather than “>” for quoting" => "Use Quote plugin rather than “>” for quoting", // "Default number of rows (wiki)" => "Default number of rows (wiki)", // "Default number of rows (comments)" => "Default number of rows (comments)", // "Default number of rows (forum)" => "Default number of rows (forum)", @@ -2258,6 +2262,7 @@ // "Warn on edit conflict:" => "Warn on edit conflict:", // "Edit idle timeout:" => "Edit idle timeout:", // "Cache wiki pages (global):" => "Cache wiki pages (global):", +// "bug" => "bug", // "Individual cache:" => "Individual cache:", // "Accept dashes and underscores in WikiWords:" => "Accept dashes and underscores in WikiWords:", // "Link plural WikiWords to their singular forms:" => "Link plural WikiWords to their singular forms:", @@ -2269,6 +2274,7 @@ // "Make structure from page:" => "Make structure from page:", // "Categorize structure pages together:" => "Categorize structure pages together:", // "Create webhelp from structure:" => "Create webhelp from structure:", +// "Wiki authors style by page settings:" => "Wiki authors style by page settings:", // "When viewing a page, if it doesn't exist and has one like page, automatic redirection to this like page:" => "When viewing a page, if it doesn't exist and has one like page, automatic redirection to this like page:", // "Show/hide heading icon displayed before the heading:" => "Show/hide heading icon displayed before the heading:", // "Force and limit categorization to within subtree of:" => "Force and limit categorization to within subtree of:", @@ -2575,8 +2581,6 @@ // "and its subpages from the structure" => "and its subpages from the structure", // "The page already exists. The page that has been added to the structure is the existing one." => "The page already exists. The page that has been added to the structure is the existing one.", // "The following pages added have automatically been categorized with the same categories as the structure:" => "The following pages added have automatically been categorized with the same categories as the structure:", -// "Monitor the Sub-Structure" => "Monitor the Sub-Structure", -// "Stop Monitoring the Sub-Structure" => "Stop Monitoring the Sub-Structure", // "Move in this structure" => "Move in this structure", // "Move to another structure" => "Move to another structure", // "Categorize all pages in structure together" => "Categorize all pages in structure together", @@ -2589,9 +2593,7 @@ // "Edit Section:" => "Edit Section:", // "Update '{\$page}' based on '{\$source_page}'" => "Update '{\$page}' based on '{\$source_page}'", // "You are editing the staging copy of the approved version of this page. Changes will be merged in after approval." => "You are editing the staging copy of the approved version of this page. Changes will be merged in after approval.", -// "This is a new staging page that has not been approved before." => "This is a new staging page that has not been approved before.", // "The current staging copy may contain changes that have yet to be approved." => "The current staging copy may contain changes that have yet to be approved.", -// "View changes since last approval." => "View changes since last approval.", // "You are editing the approved copy of this page." => "You are editing the approved copy of this page.", // "There are currently changes in the staging copy that have yet to be approved." => "There are currently changes in the staging copy that have yet to be approved.", // "Are you sure you do not want to edit" => "Are you sure you do not want to edit", @@ -2714,6 +2716,7 @@ // "If this is a first time installation, go to <strong>tiki-admin.php</strong> after login to start configuring your new Tiki installation" => "If this is a first time installation, go to <strong>tiki-admin.php</strong> after login to start configuring your new Tiki installation", // "If this is an upgrade, clean the Tiki caches manually (the <strong>templates_c</strong> directory) or by using the <strong>Admin > System</strong> option from the Admin menu." => "If this is an upgrade, clean the Tiki caches manually (the <strong>templates_c</strong> directory) or by using the <strong>Admin > System</strong> option from the Admin menu.", // "Entering TikiWiki" => "Entering TikiWiki", +// "Enter TikiWiki" => "Enter TikiWiki", // "Login as the administrator" => "Login as the administrator", // "You will be prompted to select a new administrator password." => "You will be prompted to select a new administrator password.", // "Continue in installer" => "Continue in installer", @@ -2850,15 +2853,6 @@ // "Debug" => "Debug", // "Admin Tiki Shoutbox" => "Admin Tiki Shoutbox", // "Admin Tiki Shoutbox tpl" => "Admin Tiki Shoutbox tpl", -// "This is the staging copy of" => "This is the staging copy of", -// "the approved version of this page." => "the approved version of this page.", -// "Viewing of changes since last approval is possible only after first approval." => "Viewing of changes since last approval is possible only after first approval.", -// "Approve changes." => "Approve changes.", -// "Latest changes will be synchronized after approval." => "Latest changes will be synchronized after approval.", -// "This is a new staging page that has not been approved before. Edit and manually move it to the category for approved pages to approve it for the first time." => "This is a new staging page that has not been approved before. Edit and manually move it to the category for approved pages to approve it for the first time.", -// "{icon _id=information.png style=\"vertical-align:middle\"} Content may be out of date" => "{icon _id=information.png style=\"vertical-align:middle\"} Content may be out of date", -// "An urgent request for translation has been sent. Until this page is updated, you can see a corrected version in the following pages:" => "An urgent request for translation has been sent. Until this page is updated, you can see a corrected version in the following pages:", -// "TOC" => "TOC", // "Total replies" => "Total replies", // "Average number of replies per topic" => "Average number of replies per topic", // "FAQ Stats" => "FAQ Stats", @@ -2908,23 +2902,16 @@ // "theme control objects tpl" => "theme control objects tpl", // "theme control sections tpl" => "theme control sections tpl", // "The following files have been successfully uploaded" => "The following files have been successfully uploaded", -// "Additional Info" => "Additional Info", -// "You can link to the file from a Wiki page using" => "You can link to the file from a Wiki page using", -// "You can display an image in a Wiki page using" => "You can display an image in a Wiki page using", -// "You can link to the file from an HTML page using" => "You can link to the file from an HTML page using", // "Upload big files (e.g. PodCast files) here:" => "Upload big files (e.g. PodCast files) here:", // "You locked the file" => "You locked the file", // "The file is locked by {\$fileInfo.lockedby}" => "The file is locked by {\$fileInfo.lockedby}", // "Maximum amount of downloads" => "Maximum amount of downloads", -// "0 for no limit" => "0 for no limit", // "Author if not the file creator" => "Author if not the file creator", -// "No gallery available." => "No gallery available.", // "a folder" => "a folder", // "a URL" => "a URL", // "User Contacts Preferences" => "User Contacts Preferences", // "Edit User Contacts Preferences" => "Edit User Contacts Preferences", // "Manage Fields" => "Manage Fields", -// "Default view" => "Default view", // "Gender" => "Gender", // "The user requested friendship with you" => "The user requested friendship with you", // "Accept friendship from this user" => "Accept friendship from this user", @@ -3138,6 +3125,7 @@ // "Incorrect thread" => "Incorrect thread", // "Tidy Extension not present" => "Tidy Extension not present", // "The TikiTests Replay File is Empty" => "The TikiTests Replay File is Empty", +// "The TikiTests Replay File has an error" => "The TikiTests Replay File has an error", // "TikiTests Edit" => "TikiTests Edit", // "You are about to delete a TikiTest file, do you want to continue ?" => "You are about to delete a TikiTest file, do you want to continue ?", // "TikiTest List" => "TikiTest List", @@ -3247,6 +3235,7 @@ "login" => "login", "Sites" => "Sites", "Del" => "Del", +"PDF" => "PDF", "powered by" => "powered by", "Similar" => "Similar", "Slides" => "Slides", @@ -3298,7 +3287,6 @@ "wiki-put" => "wiki-put", "wiki-append" => "wiki-append", "phpLayersMenus" => "phpLayersMenus", -"PDF" => "PDF", "UTF-8" => "UTF-8", "ISO-8859-1" => "ISO-8859-1", "Desc" => "Desc", @@ -4806,41 +4794,60 @@ "show structures" => "mostrar estruturas", "hide structures" => "esconder estruturas", "Manage structures" => "Administrar estruturas", -"Are you sure you want to remove this module?" => "Você tem certeza que deseja remover esse módulo?", -"Powered by" => "Provido por", -"Execution time" => "Tempo de execução", -"Memory usage" => "Memória usada", -"database queries used" => "consultas usadas no banco de dados", -"Server load" => "Carga do servidor", -"Locked" => "Travada", -"page id" => "id da página", -"Cached" => "Em cache", -"3d browser" => "navegador 3D", -"Refresh" => "Atualizar", -"Monitor this Page" => "Monitorar esta página", -"Stop Monitoring this Page" => "Não monitorar mais esta página", -"Backlinks" => "Referências", +"Search in" => "Buscar em", +"entire site" => "site inteiro", +"search" => "buscar", +"Last update from CVS" => "Última atualização do CVS", +"up" => "subir", +"down" => "descer", +"left/right" => "esquerdo/direito", +"Unassign module" => "Módulo não associado", +"remove" => "remover", +"logged as" => "logado como", +"user" => "usuário", +"set" => "definir", +"pass" => "senha", +"register" => "registrar-se", +"standard" => "padrão", +"secure" => "seguro", +"stay in ssl mode" => "permanecer no modo seguro", +"First page" => "Primeira página", "Previous page" => "Página anterior", +"page" => "página", +"Next page" => "Próxima página", +"Last page" => "Última página", "Parent page" => "Página pai", -"Next page" => "Próxima página", "Child" => "Criança", "Add Page" => "Adicionar página", -"First page" => "Primeira página", -"page" => "página", -"Last page" => "Última página", +"Structure" => "Estrutura", "Last edited by" => "Último edição por", "based on work by" => "baseado no trabalho de", "Page last modified on" => "Última modificação em", "Contributors to this page" => "Contribuíram para esta página", -"Created by:" => "Criado por:", -"Last Modification:" => "última modificação:", +"Last Modification" => "última modificação em", "To edit the copyright notices" => "Para editar as mensagens de diretos autorais", "Click Here" => "Clique aqui", "The content on this page is licensed under the terms of the" => "O conteúdo desta página é licenciado sob os termos do", "The original document is available at" => "O documento original pode ser encontrado em", +"page id" => "id da página", +"Cached" => "Em cache", +"3d browser" => "navegador 3D", +"Refresh" => "Atualizar", +"Send a link" => "Enviar link", +"Monitor this Page" => "Monitorar esta página", +"Stop Monitoring this Page" => "Não monitorar mais esta página", +"Backlinks" => "Referências", +"Are you sure you want to remove this module?" => "Você tem certeza que deseja remover esse módulo?", +"Powered by" => "Provido por", +"Execution time" => "Tempo de execução", +"Memory usage" => "Memória usada", +"database queries used" => "consultas usadas no banco de dados", +"Server load" => "Carga do servidor", +"Locked" => "Travada", +"Created by:" => "Criado por:", +"Last Modification:" => "última modificação:", "Made with" => "Criado com", "on:" => "em:", -"Send a link" => "Enviar link", "Translation" => "Tradução", "Article image" => "Imagem do artigo", "Topic image" => "Imagem do assunto", @@ -4860,9 +4867,6 @@ "Attach File" => "Anexar", "1 File Attached" => "1 arquivo anexado", "{\$atts_cnt} files attached" => "{\$atts_cnt} arquivos anexados", -"Last Modification" => "última modificação em", -"logged as" => "logado como", -"pass" => "senha", "Page generated in" => "Página gerada em", "The newsletter was sent to {\$sent} email addresses" => "O comunicado foi enviado para {\$sent} endereços de email", "This newsletter will be sent to {\$subscribers} email addresses." => "Este comunicado será enviado para {\$subscribers} endereços de email.", @@ -4914,8 +4918,6 @@ "Important" => "Importante", "Minor" => "Menor", "Cancel Edit" => "Cancelar edição", -"left/right" => "esquerdo/direito", -"Unassign module" => "Módulo não associado", "debugger console" => "console de depuração", "Mini Calendar" => "Mini-Calendário", "Edit mapfiles" => "Editar arquivos de mapas", @@ -4950,7 +4952,6 @@ "Blog name" => "Nome do blog", "Show/Hide Left Modules" => "Mostrar/esconder módulos da esquerda", "Show/Hide Right Modules" => "Mostrar/esconder módulos da direita", -"Last update from CVS" => "Última atualização do CVS", "Translate in" => "Traduzir em", "babelfish it" => "traduzir", "Welcome to" => "Bem vindo a", @@ -4966,15 +4967,15 @@ "Activate" => "Ativar", "Content" => "Conteúdo", "Publish" => "publicação", +"Features" => "Recursos", "General" => "Geral", -"Features" => "Recursos", -"Freetags" => "Palavras-chave", +"Customize look and feel of your Tiki" => "Personalize a aparência do seu site", +"Look & Feel" => "Aparência", "i18n" => "Idioma", -"Wysiwyg editor" => "Editor Wysiwyg", "Module" => "Módulo", -"Customize look and feel of your Tiki" => "Personalize a aparência do seu site", -"Look & Feel" => "Aparência", +"Freetags" => "Palavras-chave", "Multimedia" => "Multimídia", +"Wysiwyg editor" => "Editor Wysiwyg", "To add/remove blogs, go to \"Create/Edit blog\" under \"Blogs\" on the application menu, or" => "Para adicionar/remover blogs, va para \"Create/Edit blog\" em \"Blogs\" no menu de aplicações, ou", "Home Blog" => "Blog Principal", "Home Blog (main blog)" => "Blog Inicial (Blog principal)", @@ -5076,47 +5077,33 @@ "Main" => "Principal", "Global Features" => "Recursos globais", "More Functionality" => "Outras funcionalidades", -"Technology" => "Tecnologia", "UI Enhancements" => "Melhorias de interface", -"Content Related" => "Recursos de conteúdo", "Main Features" => "Recursos principais", "Site Global Features" => "Recursos globais", "Action Log" => "Log de atividades", "Action log setting" => "Configurar log de atividades", "Additional Features" => "Recursos adicionais", "Featured Help" => "Auxílio oferecido", -"Spreadsheet" => "Planilha", -"Tiki Sheet" => "Planilha Tiki", "Live Support" => "Suporte on-line", "Live support system" => "Sistema de auxílio on-line", "Tell a Friend" => "Envie para um amigo", -"Allow to post comments as Anonymous" => "Permitir que anônimos enviem comentários", -"Technical Features" => "Recursos técnicos", -"Search engine friendly url" => "URL amigável", -"XMLRPC API" => "API de XMLRPC", +"HTML Pages" => "Páginas HTML", +"Contact Us" => "Entre em Contato", "User interface enhancement features" => "Recursos de interface", "PhpLayers Dynamic menus" => "Menus dinâmicos PhpLayers", "Allow users to activate fullscreen mode" => "Permitir que usuários ativem o modo tela cheia", "Experimental Features" => "Recursos experimentais", -"Workflow engine" => "Gerenciador de Workflow", "Mobile" => "Dispositivos móveis", -"Content Features" => "Recursos de Conteúdo", -"Edit Templates" => "Editar padrões", -"Hotwords in New Windows" => "Palavras-chaves em novas janelas", -"Use File Galleries for images inclusion" => "Usar galeria de arquivos para inclusão de imagens", -"Custom Home" => "Página Inicial Personalizada", -"HTML Pages" => "Páginas HTML", -"Dynamic Content System" => "Sistema de Conteúdo Dinâmico", +"Spreadsheet" => "Planilha", +"Tiki Sheet" => "Planilha Tiki", +"Search engine friendly url" => "URL amigável", "Administration Features" => "Recursos de administração", "Banning System" => "Sistema de Banimento", "Banning system" => "Sistema de banimento", -"Debugger Console" => "Console de depuração", "Referer Stats" => "Estatísticas de Referências", -"Contact Us" => "Entre em Contato", -"Contact Us (Anonymous)" => "Contate-nos (Anônimo)", "Redirect On Error" => "Redirecionar em caso de erro", "Communications (send/receive objects)" => "Comunicação (enviar/receber objetos)", -"requires PHP5 or more" => "requer PHP5 ou uma versão mais atual", +"Custom Home" => "Página Inicial Personalizada", "User Features" => "Recursos do Usuário", "User Preferences Screen" => "Tela de Preferências do Usuário", "User Notepad" => "Bloco de notas do usuário", @@ -5127,6 +5114,10 @@ "User Tasks" => "Tarefas do usuário", "User Messages" => "Mensagens do usuário", "User Files" => "Arquivos do usuário", +"XMLRPC API" => "API de XMLRPC", +"Debugger Console" => "Console de depuração", +"requires PHP5 or more" => "requer PHP5 ou uma versão mais atual", +"Workflow engine" => "Gerenciador de Workflow", "To add/remove file galleries, go to \"File Galleries\" on the application menu, or" => "Para adicionar/remover galerias de arquivos, vá para \"Acervo de arquivos\" no menu de aplicações, ou", "If you decide to store files in a directory you must ensure that the user cannot access directly to the directory." => "Se você decidir guardar arquivos em um diretório precisa ter certeza de que os usuários não conseguem acessam diretamente o diretório escolhido.", "You have two options to accomplish this:<br /><ul><li>Use a directory outside your document root, make sure your php script can read and write to that directory</li><li>Use a directory inside the document root and use .htaccess to prevent the user from listing the directory contents</li></ul>" => "Você tem duas opções:<br /><ul><li>Usar um diretório fora do documento root, para isso verifique se o seu script php pode ler e escrever nesse diretório</li><li>Usar um diretório dentro do documento root e usar .htaccess para prevenir que os usuários possam listar o conteúdo do diretório</li></ul>", @@ -5438,13 +5429,17 @@ "My forum replies" => "Minhas respostas nos fóruns", "My items" => "Meus itens", "My workflow" => "Minha workflow", +"General Layout" => "Layout do site", "Slideshows theme" => "Tema para slides", "Edit CSS" => "Editar CSS", "Theme Control" => "Controle de temas", "Template Viewing" => "Visualizar templates", "Tiki Template Viewing" => "Visualização de Modelos Tiki", +"Edit Templates" => "Editar padrões", "Site Identity" => "Identidade do site", +"Required for many of the general layout features" => "Obrigatório para a maioria das opções de layout do site", "General Layout options" => "Opções gerais de layout", +"Custom Site Header" => "Cabeçalho personalizado", "Site Logo" => "Logo do site", "Site logo background color" => "Cor de fundo do logo do site", "Site logo alignment" => "Alinhamento do logo do site", @@ -5458,6 +5453,7 @@ "Site menu bar" => "Barra do menu do site", "Note: This feature also requires PHPLayers to be turned on in " => "Nota: esse recurso depende do recurso PHPLayers que deve ser habilitado em ", "Current Version" => "Versão atual", +"Custom code" => "Código personalizado", "Users can Flip Columns" => "Usuários podem mudam colunas", "Left column" => "Coluna da esquerda", "always" => "sempre", @@ -5472,10 +5468,17 @@ "Use page description:" => "Descrição do uso da página:", "Right column" => "Coluna da direita", "Left blank to use the default sender email" => "Deixe em branco para usar o e-mail padrão", +"Custom Site Footer" => "Rodapé personalizado", "Bottom bar" => "Barra inferior", "Bottom bar icons" => "Ícones da barra inferior", "Bottom bar debug" => "Informações de <i>debug</i> na barra inferior", +"Pagination links" => "Paginação", +"Use relative (next / previous) pagination links" => "Usar links de paginação relativos (próximo / anterior)", "Use direct pagination links" => "Links de paginação direta", +"Max. number of links around the current item:" => "Número máximo de links em torno da página atual:", +"Max. number of links after the first or before the last item:" => "Número máximo de links depois da primeira ou antes da última página:", +"Display 'First' and 'Last' links" => "Exibir links 'Primeiro' e 'Último'", +"Use Icons" => "Usar ícones", "Display menus as folders" => "Exibir menus como pastas", "Use Tabs" => "Usar Tabs", "Layout per section" => "Layout por sessão", @@ -5567,6 +5570,10 @@ "LRU list length" => "Tamanho da lista LRU", "Allow Smileys" => "Permitir Emoticons", "Open external links in new window" => "Links externos em nova janela", +"Use File Galleries for images inclusion" => "Usar galeria de arquivos para inclusão de imagens", +"Dynamic Content System" => "Sistema de Conteúdo Dinâmico", +"Allow to post comments as Anonymous" => "Permitir que anônimos enviem comentários", +"Hotwords in New Windows" => "Palavras-chaves em novas janelas", "To configure your trackers, look for \"Admin trackers\" under \"Trackers\" on the application menu, or" => "Para configurar seus acompanhamentos, procure por \"Admin trackers\" em \"Trackers\" no menu de aplicações, ou", "Trackers attachments preferences" => "Preferências dos anexos dos acompanhamentos", "Trackers with mirror tables" => "Acompanhamentos com tabelas espelho", @@ -6165,7 +6172,6 @@ "Check file permissions" => "Verificar as permissões do arquivo", "This check tries to find files with problematic file permissions. Some file permissions that are shown here as problematic may be unproblematic or unavoidable in some environments." => "Essa checagem tenta encontrar arquivos com permissões problemáticas. Algumas permissões de arquivos marcadas como problemáticas podem não ser ou então podem ser inevitáveis em alguns sistemas.", "type" => "tipo", -"user" => "usuário", "group" => "grupo", "other" => "outro", "sticky" => "persistente", @@ -6544,7 +6550,6 @@ "Last Name" => "Sobrenome", "Nickname" => "Apelido", "You can browse the generated WebHelp here" => "Você pode navegar o WebHelp gerado aqui", -"Structure" => "Estrutura", "Top page" => "Página de Topo", "Tiki Debugger Console" => "Console de Depuração Tiki", "Close" => "Fechar", @@ -6797,7 +6802,7 @@ "special characters" => "caracteres especiais", "Leave Fullscreen Edit" => "Deixar modo de edição em tela cheia", "Fullscreen Edit" => "Editar em tela cheia", -"Browse Images" => "Alterar imagem", +"Browse Images" => "Navegar na galeria", "Edit successful!" => "Edição bem-sucedida!", "The following image was successfully edited" => "A seguinte imagem foi editada com sucesso", "Image Description" => "Descrição da Imagem", @@ -7505,7 +7510,6 @@ "to_version" => "versão_desejada", "Search Stats" => "Estatísticas de busca", "Searched" => "Buscadas", -"Search in" => "Buscar em", "Simple search" => "Busca simples", "No pages matched the search criteria" => "Nenhuma página atendeu aos seus critérios de busca", "Send blog post" => "Enviar mensagem blog", @@ -7643,10 +7647,16 @@ "Assigned sections" => "Seções atribuídas", "Edit File:" => "Editar arquivo:", "The following file was successfully uploaded" => "O seguinte arquivo foi carregado com sucesso", +"Additional Info" => "Informações adicionais", "You can download this file using" => "Você pode baixar este arquivo usando", +"You can link to the file from a Wiki page using" => "Você pode criar um link numa página wiki para o arquivo usando", +"You can display an image in a Wiki page using" => "Você pode exibir uma imagem numa página wiki usando", +"You can link to the file from an HTML page using" => "Você pode criar um link numa página HTML usando", "File Title" => "Título do Arquivo", "Batch upload" => "Carga em lote", "Unzip all zip files" => "Descompacte todos os arquivos zip", +"0 for no limit" => "0 para ilimitado", +"No gallery available." => "Nenhuma galeria.", "You have to create a gallery first!" => "Você precisa criar uma galeria antes de prosseguir!", "Image Gallery tpl" => "Galeria de imagens tpl", "Upload successful!" => "Carga bem-sucedida!", @@ -7672,6 +7682,7 @@ "Remove Folder" => "Remover pasta", "Refresh Cache" => "Atualizar cache", "Admin folders and bookmarks" => "Administrar pastas e favoritos", +"Default view" => "Visão padrão", "Send me a message" => "Envie-me uma mensagem", "Homepage" => "Site pessoal ou institucional", "Users HomePage" => "Página inicial do usuário", Modified: trunk/lib/diff/renderer_sidebyside.php =================================================================== --- trunk/lib/diff/renderer_sidebyside.php 2008-08-03 15:39:25 UTC (rev 14031) +++ trunk/lib/diff/renderer_sidebyside.php 2008-08-03 15:58:03 UTC (rev 14032) @@ -25,7 +25,6 @@ function _endDiff() { - echo '</table>'; $val = ob_get_contents(); ob_end_clean(); return $val; Copied: trunk/lib/mootools/mootools-1.2-core.js (from rev 14030, branches/2.0/lib/mootools/mootools-1.2-core.js) =================================================================== --- trunk/lib/mootools/mootools-1.2-core.js (rev 0) +++ trunk/lib/mootools/mootools-1.2-core.js 2008-08-03 15:58:03 UTC (rev 14032) @@ -0,0 +1,341 @@ +//MooTools, <http://mootools.net>, My Object Oriented (JavaScript) Tools. Copyright (c) 2006-2008 Valerio Proietti, <http://mad4milk.net>, MIT Style License. + +var MooTools={version:"1.2.0",build:""};var Native=function(J){J=J||{};var F=J.afterImplement||function(){};var G=J.generics;G=(G!==false);var H=J.legacy; +var E=J.initialize;var B=J.protect;var A=J.name;var C=E||H;C.constructor=Native;C.$family={name:"native"};if(H&&E){C.prototype=H.prototype;}C.prototype.constructor=C; +if(A){var D=A.toLowerCase();C.prototype.$family={name:D};Native.typize(C,D);}var I=function(M,K,N,L){if(!B||L||!M.prototype[K]){M.prototype[K]=N;}if(G){Native.genericize(M,K,B); +}F.call(M,K,N);return M;};C.implement=function(L,K,N){if(typeof L=="string"){return I(this,L,K,N);}for(var M in L){I(this,M,L[M],K);}return this;};C.alias=function(M,K,N){if(typeof M=="string"){M=this.prototype[M]; +if(M){I(this,K,M,N);}}else{for(var L in M){this.alias(L,M[L],K);}}return this;};return C;};Native.implement=function(D,C){for(var B=0,A=D.length;B<A;B++){D[B].implement(C); +}};Native.genericize=function(B,C,A){if((!A||!B[C])&&typeof B.prototype[C]=="function"){B[C]=function(){var D=Array.prototype.slice.call(arguments);return B.prototype[C].apply(D.shift(),D); +};}};Native.typize=function(A,B){if(!A.type){A.type=function(C){return($type(C)===B);};}};Native.alias=function(E,B,A,F){for(var D=0,C=E.length;D<C;D++){E[D].alias(B,A,F); +}};(function(B){for(var A in B){Native.typize(B[A],A);}})({"boolean":Boolean,"native":Native,object:Object});(function(B){for(var A in B){new Native({name:A,initialize:B[A],protect:true}); +}})({String:String,Function:Function,Number:Number,Array:Array,RegExp:RegExp,Date:Date});(function(B,A){for(var C=A.length;C--;C){Native.genericize(B,A[C],true); +}return arguments.callee;})(Array,["pop","push","reverse","shift","sort","splice","unshift","concat","join","slice","toString","valueOf","indexOf","lastIndexOf"])(String,["charAt","charCodeAt","concat","indexOf","lastIndexOf","match","replace","search","slice","split","substr","substring","toLowerCase","toUpperCase","valueOf"]); +function $chk(A){return !!(A||A===0);}function $clear(A){clearTimeout(A);clearInterval(A);return null;}function $defined(A){return(A!=undefined);}function $empty(){}function $arguments(A){return function(){return arguments[A]; +};}function $lambda(A){return(typeof A=="function")?A:function(){return A;};}function $extend(C,A){for(var B in (A||{})){C[B]=A[B];}return C;}function $unlink(C){var B; +switch($type(C)){case"object":B={};for(var E in C){B[E]=$unlink(C[E]);}break;case"hash":B=$unlink(C.getClean());break;case"array":B=[];for(var D=0,A=C.length; +D<A;D++){B[D]=$unlink(C[D]);}break;default:return C;}return B;}function $merge(){var E={};for(var D=0,A=arguments.length;D<A;D++){var B=arguments[D];if($type(B)!="object"){continue; +}for(var C in B){var G=B[C],F=E[C];E[C]=(F&&$type(G)=="object"&&$type(F)=="object")?$merge(F,G):$unlink(G);}}return E;}function $pick(){for(var B=0,A=arguments.length; +B<A;B++){if(arguments[B]!=undefined){return arguments[B];}}return null;}function $random(B,A){return Math.floor(Math.random()*(A-B+1)+B);}function $splat(B){var A=$type(B); +return(A)?((A!="array"&&A!="arguments")?[B]:B):[];}var $time=Date.now||function(){return new Date().getTime();};function $try(){for(var B=0,A=arguments.length; +B<A;B++){try{return arguments[B]();}catch(C){}}return null;}function $type(A){if(A==undefined){return false;}if(A.$family){return(A.$family.name=="number"&&!isFinite(A))?false:A.$family.name; +}if(A.nodeName){switch(A.nodeType){case 1:return"element";case 3:return(/\S/).test(A.nodeValue)?"textnode":"whitespace";}}else{if(typeof A.length=="number"){if(A.callee){return"arguments"; +}else{if(A.item){return"collection";}}}}return typeof A;}var Hash=new Native({name:"Hash",initialize:function(A){if($type(A)=="hash"){A=$unlink(A.getClean()); +}for(var B in A){this[B]=A[B];}return this;}});Hash.implement({getLength:function(){var B=0;for(var A in this){if(this.hasOwnProperty(A)){B++;}}return B; +},forEach:function(B,C){for(var A in this){if(this.hasOwnProperty(A)){B.call(C,this[A],A,this);}}},getClean:function(){var B={};for(var A in this){if(this.hasOwnProperty(A)){B[A]=this[A]; +}}return B;}});Hash.alias("forEach","each");function $H(A){return new Hash(A);}Array.implement({forEach:function(C,D){for(var B=0,A=this.length;B<A;B++){C.call(D,this[B],B,this); +}}});Array.alias("forEach","each");function $A(C){if(C.item){var D=[];for(var B=0,A=C.length;B<A;B++){D[B]=C[B];}return D;}return Array.prototype.slice.call(C); +}function $each(C,B,D){var A=$type(C);((A=="arguments"||A=="collection"||A=="array")?Array:Hash).each(C,B,D);}var Browser=new Hash({Engine:{name:"unknown",version:""},Platform:{name:(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase()},Features:{xpath:!!(document.evaluate),air:!!(window.runtime)},Plugins:{}}); +if(window.opera){Browser.Engine={name:"presto",version:(document.getElementsByClassName)?950:925};}else{if(window.ActiveXObject){Browser.Engine={name:"trident",version:(window.XMLHttpRequest)?5:4}; +}else{if(!navigator.taintEnabled){Browser.Engine={name:"webkit",version:(Browser.Features.xpath)?420:419};}else{if(document.getBoxObjectFor!=null){Browser.Engine={name:"gecko",version:(document.getElementsByClassName)?19:18}; +}}}}Browser.Engine[Browser.Engine.name]=Browser.Engine[Browser.Engine.name+Browser.Engine.version]=true;if(window.orientation!=undefined){Browser.Platform.name="ipod"; +}Browser.Platform[Browser.Platform.name]=true;Browser.Request=function(){return $try(function(){return new XMLHttpRequest();},function(){return new ActiveXObject("MSXML2.XMLHTTP"); +});};Browser.Features.xhr=!!(Browser.Request());Browser.Plugins.Flash=(function(){var A=($try(function(){return navigator.plugins["Shockwave Flash"].description; +},function(){return new ActiveXObject("ShockwaveFlash.ShockwaveFlash").GetVariable("$version");})||"0 r0").match(/\d+/g);return{version:parseInt(A[0]||0+"."+A[1]||0),build:parseInt(A[2]||0)}; +})();function $exec(B){if(!B){return B;}if(window.execScript){window.execScript(B);}else{var A=document.createElement("script");A.setAttribute("type","text/javascript"); +A.text=B;document.head.appendChild(A);document.head.removeChild(A);}return B;}Native.UID=1;var $uid=(Browser.Engine.trident)?function(A){return(A.uid||(A.uid=[Native.UID++]))[0]; +}:function(A){return A.uid||(A.uid=Native.UID++);};var Window=new Native({name:"Window",legacy:(Browser.Engine.trident)?null:window.Window,initialize:function(A){$uid(A); +if(!A.Element){A.Element=$empty;if(Browser.Engine.webkit){A.document.createElement("iframe");}A.Element.prototype=(Browser.Engine.webkit)?window["[[DOMElement.prototype]]"]:{}; +}return $extend(A,Window.Prototype);},afterImplement:function(B,A){window[B]=Window.Prototype[B]=A;}});Window.Prototype={$family:{name:"window"}};new Window(window); +var Document=new Native({name:"Document",legacy:(Browser.Engine.trident)?null:window.Document,initialize:function(A){$uid(A);A.head=A.getElementsByTagName("head")[0]; +A.html=A.getElementsByTagName("html")[0];A.window=A.defaultView||A.parentWindow;if(Browser.Engine.trident4){$try(function(){A.execCommand("BackgroundImageCache",false,true); +});}return $extend(A,Document.Prototype);},afterImplement:function(B,A){document[B]=Document.Prototype[B]=A;}});Document.Prototype={$family:{name:"document"}}; +new Document(document);Array.implement({every:function(C,D){for(var B=0,A=this.length;B<A;B++){if(!C.call(D,this[B],B,this)){return false;}}return true; +},filter:function(D,E){var C=[];for(var B=0,A=this.length;B<A;B++){if(D.call(E,this[B],B,this)){C.push(this[B]);}}return C;},clean:function(){return this.filter($defined); +},indexOf:function(C,D){var A=this.length;for(var B=(D<0)?Math.max(0,A+D):D||0;B<A;B++){if(this[B]===C){return B;}}return -1;},map:function(D,E){var C=[]; +for(var B=0,A=this.length;B<A;B++){C[B]=D.call(E,this[B],B,this);}return C;},some:function(C,D){for(var B=0,A=this.length;B<A;B++){if(C.call(D,this[B],B,this)){return true; +}}return false;},associate:function(C){var D={},B=Math.min(this.length,C.length);for(var A=0;A<B;A++){D[C[A]]=this[A];}return D;},link:function(C){var A={}; +for(var E=0,B=this.length;E<B;E++){for(var D in C){if(C[D](this[E])){A[D]=this[E];delete C[D];break;}}}return A;},contains:function(A,B){return this.indexOf(A,B)!=-1; +},extend:function(C){for(var B=0,A=C.length;B<A;B++){this.push(C[B]);}return this;},getLast:function(){return(this.length)?this[this.length-1]:null;},getRandom:function(){return(this.length)?this[$random(0,this.length-1)]:null; +},include:function(A){if(!this.contains(A)){this.push(A);}return this;},combine:function(C){for(var B=0,A=C.length;B<A;B++){this.include(C[B]);}return this; +},erase:function(B){for(var A=this.length;A--;A){if(this[A]===B){this.splice(A,1);}}return this;},empty:function(){this.length=0;return this;},flatten:function(){var D=[]; +for(var B=0,A=this.length;B<A;B++){var C=$type(this[B]);if(!C){continue;}D=D.concat((C=="array"||C=="collection"||C=="arguments")?Array.flatten(this[B]):this[B]); +}return D;},hexToRgb:function(B){if(this.length!=3){return null;}var A=this.map(function(C){if(C.length==1){C+=C;}return C.toInt(16);});return(B)?A:"rgb("+A+")"; +},rgbToHex:function(D){if(this.length<3){return null;}if(this.length==4&&this[3]==0&&!D){return"transparent";}var B=[];for(var A=0;A<3;A++){var C=(this[A]-0).toString(16); +B.push((C.length==1)?"0"+C:C);}return(D)?B:"#"+B.join("");}});Function.implement({extend:function(A){for(var B in A){this[B]=A[B];}return this;},create:function(B){var A=this; +B=B||{};return function(D){var C=B.arguments;C=(C!=undefined)?$splat(C):Array.slice(arguments,(B.event)?1:0);if(B.event){C=[D||window.event].extend(C); +}var E=function(){return A.apply(B.bind||null,C);};if(B.delay){return setTimeout(E,B.delay);}if(B.periodical){return setInterval(E,B.periodical);}if(B.attempt){return $try(E); +}return E();};},pass:function(A,B){return this.create({arguments:A,bind:B});},attempt:function(A,B){return this.create({arguments:A,bind:B,attempt:true})(); +},bind:function(B,A){return this.create({bind:B,arguments:A});},bindWithEvent:function(B,A){return this.create({bind:B,event:true,arguments:A});},delay:function(B,C,A){return this.create({delay:B,bind:C,arguments:A})(); +},periodical:function(A,C,B){return this.create({periodical:A,bind:C,arguments:B})();},run:function(A,B){return this.apply(B,$splat(A));}});Number.implement({limit:function(B,A){return Math.min(A,Math.max(B,this)); +},round:function(A){A=Math.pow(10,A||0);return Math.round(this*A)/A;},times:function(B,C){for(var A=0;A<this;A++){B.call(C,A,this);}},toFloat:function(){return parseFloat(this); +},toInt:function(A){return parseInt(this,A||10);}});Number.alias("times","each");(function(B){var A={};B.each(function(C){if(!Number[C]){A[C]=function(){return Math[C].apply(null,[this].concat($A(arguments))); +};}});Number.implement(A);})(["abs","acos","asin","atan","atan2","ceil","cos","exp","floor","log","max","min","pow","sin","sqrt","tan"]);String.implement({test:function(A,B){return((typeof A=="string")?new RegExp(A,B):A).test(this); +},contains:function(A,B){return(B)?(B+this+B).indexOf(B+A+B)>-1:this.indexOf(A)>-1;},trim:function(){return this.replace(/^\s+|\s+$/g,"");},clean:function(){return this.replace(/\s+/g," ").trim(); +},camelCase:function(){return this.replace(/-\D/g,function(A){return A.charAt(1).toUpperCase();});},hyphenate:function(){return this.replace(/[A-Z]/g,function(A){return("-"+A.charAt(0).toLowerCase()); +});},capitalize:function(){return this.replace(/\b[a-z]/g,function(A){return A.toUpperCase();});},escapeRegExp:function(){return this.replace(/([-.*+?^${}()|[\]\/\\])/g,"\\$1"); +},toInt:function(A){return parseInt(this,A||10);},toFloat:function(){return parseFloat(this);},hexToRgb:function(B){var A=this.match(/^#?(\w{1,2})(\w{1,2})(\w{1,2})$/); +return(A)?A.slice(1).hexToRgb(B):null;},rgbToHex:function(B){var A=this.match(/\d{1,3}/g);return(A)?A.rgbToHex(B):null;},stripScripts:function(B){var A=""; +var C=this.replace(/<script[^>]*>([\s\S]*?)<\/script>/gi,function(){A+=arguments[1]+"\n";return"";});if(B===true){$exec(A);}else{if($type(B)=="function"){B(A,C); +}}return C;},substitute:function(A,B){return this.replace(B||(/\\?\{([^}]+)\}/g),function(D,C){if(D.charAt(0)=="\\"){return D.slice(1);}return(A[C]!=undefined)?A[C]:""; +});}});Hash.implement({has:Object.prototype.hasOwnProperty,keyOf:function(B){for(var A in this){if(this.hasOwnProperty(A)&&this[A]===B){return A;}}return null; +},hasValue:function(A){return(Hash.keyOf(this,A)!==null);},extend:function(A){Hash.each(A,function(C,B){Hash.set(this,B,C);},this);return this;},combine:function(A){Hash.each(A,function(C,B){Hash.include(this,B,C); +},this);return this;},erase:function(A){if(this.hasOwnProperty(A)){delete this[A];}return this;},get:function(A){return(this.hasOwnProperty(A))?this[A]:null; +},set:function(A,B){if(!this[A]||this.hasOwnProperty(A)){this[A]=B;}return this;},empty:function(){Hash.each(this,function(B,A){delete this[A];},this); +return this;},include:function(B,C){var A=this[B];if(A==undefined){this[B]=C;}return this;},map:function(B,C){var A=new Hash;Hash.each(this,function(E,D){A.set(D,B.call(C,E,D,this)); +},this);return A;},filter:function(B,C){var A=new Hash;Hash.each(this,function(E,D){if(B.call(C,E,D,this)){A.set(D,E);}},this);return A;},every:function(B,C){for(var A in this){if(this.hasOwnProperty(A)&&!B.call(C,this[A],A)){return false; +}}return true;},some:function(B,C){for(var A in this){if(this.hasOwnProperty(A)&&B.call(C,this[A],A)){return true;}}return false;},getKeys:function(){var A=[]; +Hash.each(this,function(C,B){A.push(B);});return A;},getValues:function(){var A=[];Hash.each(this,function(B){A.push(B);});return A;},toQueryString:function(A){var B=[]; +Hash.each(this,function(F,E){if(A){E=A+"["+E+"]";}var D;switch($type(F)){case"object":D=Hash.toQueryString(F,E);break;case"array":var C={};F.each(function(H,G){C[G]=H; +});D=Hash.toQueryString(C,E);break;default:D=E+"="+encodeURIComponent(F);}if(F!=undefined){B.push(D);}});return B.join("&");}});Hash.alias({keyOf:"indexOf",hasValue:"contains"}); +var Event=new Native({name:"Event",initialize:function(A,F){F=F||window;var K=F.document;A=A||F.event;if(A.$extended){return A;}this.$extended=true;var J=A.type; +var G=A.target||A.srcElement;while(G&&G.nodeType==3){G=G.parentNode;}if(J.test(/key/)){var B=A.which||A.keyCode;var M=Event.Keys.keyOf(B);if(J=="keydown"){var D=B-111; +if(D>0&&D<13){M="f"+D;}}M=M||String.fromCharCode(B).toLowerCase();}else{if(J.match(/(click|mouse|menu)/i)){K=(!K.compatMode||K.compatMode=="CSS1Compat")?K.html:K.body; +var I={x:A.pageX||A.clientX+K.scrollLeft,y:A.pageY||A.clientY+K.scrollTop};var C={x:(A.pageX)?A.pageX-F.pageXOffset:A.clientX,y:(A.pageY)?A.pageY-F.pageYOffset:A.clientY}; +if(J.match(/DOMMouseScroll|mousewheel/)){var H=(A.wheelDelta)?A.wheelDelta/120:-(A.detail||0)/3;}var E=(A.which==3)||(A.button==2);var L=null;if(J.match(/over|out/)){switch(J){case"mouseover":L=A.relatedTarget||A.fromElement; +break;case"mouseout":L=A.relatedTarget||A.toElement;}if(!(function(){while(L&&L.nodeType==3){L=L.parentNode;}return true;}).create({attempt:Browser.Engine.gecko})()){L=false; +}}}}return $extend(this,{event:A,type:J,page:I,client:C,rightClick:E,wheel:H,relatedTarget:L,target:G,code:B,key:M,shift:A.shiftKey,control:A.ctrlKey,alt:A.altKey,meta:A.metaKey}); +}});Event.Keys=new Hash({enter:13,up:38,down:40,left:37,right:39,esc:27,space:32,backspace:8,tab:9,"delete":46});Event.implement({stop:function(){return this.stopPropagation().preventDefault(); +},stopPropagation:function(){if(this.event.stopPropagation){this.event.stopPropagation();}else{this.event.cancelBubble=true;}return this;},preventDefault:function(){if(this.event.preventDefault){this.event.preventDefault(); +}else{this.event.returnValue=false;}return this;}});var Class=new Native({name:"Class",initialize:function(B){B=B||{};var A=function(E){for(var D in this){this[D]=$unlink(this[D]); +}for(var F in Class.Mutators){if(!this[F]){continue;}Class.Mutators[F](this,this[F]);delete this[F];}this.constructor=A;if(E===$empty){return this;}var C=(this.initialize)?this.initialize.apply(this,arguments):this; +if(this.options&&this.options.initialize){this.options.initialize.call(this);}return C;};$extend(A,this);A.constructor=Class;A.prototype=B;return A;}}); +Class.implement({implement:function(){Class.Mutators.Implements(this.prototype,Array.slice(arguments));return this;}});Class.Mutators={Implements:function(A,B){$splat(B).each(function(C){$extend(A,($type(C)=="class")?new C($empty):C); +});},Extends:function(self,klass){var instance=new klass($empty);delete instance.parent;delete instance.parentOf;for(var key in instance){var current=self[key],previous=instance[key]; +if(current==undefined){self[key]=previous;continue;}var ctype=$type(current),ptype=$type(previous);if(ctype!=ptype){continue;}switch(ctype){case"function":if(!arguments.callee.caller){self[key]=eval("("+String(current).replace(/\bthis\.parent\(\s*(\))?/g,function(full,close){return"arguments.callee._parent_.call(this"+(close||", "); +})+")");}self[key]._parent_=previous;break;case"object":self[key]=$merge(previous,current);}}self.parent=function(){return arguments.callee.caller._parent_.apply(this,arguments); +};self.parentOf=function(descendant){return descendant._parent_.apply(this,Array.slice(arguments,1));};}};var Chain=new Class({chain:function(){this.$chain=(this.$chain||[]).extend(arguments); +return this;},callChain:function(){return(this.$chain&&this.$chain.length)?this.$chain.shift().apply(this,arguments):false;},clearChain:function(){if(this.$chain){this.$chain.empty(); +}return this;}});var Events=new Class({addEvent:function(C,B,A){C=Events.removeOn(C);if(B!=$empty){this.$events=this.$events||{};this.$events[C]=this.$events[C]||[]; +this.$events[C].include(B);if(A){B.internal=true;}}return this;},addEvents:function(A){for(var B in A){this.addEvent(B,A[B]);}return this;},fireEvent:function(C,B,A){C=Events.removeOn(C); +if(!this.$events||!this.$events[C]){return this;}this.$events[C].each(function(D){D.create({bind:this,delay:A,"arguments":B})();},this);return this;},removeEvent:function(B,A){B=Events.removeOn(B); +if(!this.$events||!this.$events[B]){return this;}if(!A.internal){this.$events[B].erase(A);}return this;},removeEvents:function(C){for(var D in this.$events){if(C&&C!=D){continue; +}var B=this.$events[D];for(var A=B.length;A--;A){this.removeEvent(D,B[A]);}}return this;}});Events.removeOn=function(A){return A.replace(/^on([A-Z])/,function(B,C){return C.toLowerCase(); +});};var Options=new Class({setOptions:function(){this.options=$merge.run([this.options].extend(arguments));if(!this.addEvent){return this;}for(var A in this.options){if($type(this.options[A])!="function"||!(/^on[A-Z]/).test(A)){continue; +}this.addEvent(A,this.options[A]);delete this.options[A];}return this;}});Document.implement({newElement:function(A,B){if(Browser.Engine.trident&&B){["name","type","checked"].each(function(C){if(!B[C]){return ; +}A+=" "+C+'="'+B[C]+'"';if(C!="checked"){delete B[C];}});A="<"+A+">";}return $.element(this.createElement(A)).set(B);},newTextNode:function(A){return this.createTextNode(A); +},getDocument:function(){return this;},getWindow:function(){return this.defaultView||this.parentWindow;},purge:function(){var C=this.getElementsByTagName("*"); +for(var B=0,A=C.length;B<A;B++){Browser.freeMem(C[B]);}}});var Element=new Native({name:"Element",legacy:window.Element,initialize:function(A,B){var C=Element.Constructors.get(A); +if(C){return C(B);}if(typeof A=="string"){return document.newElement(A,B);}return $(A).set(B);},afterImplement:function(A,B){if(!Array[A]){Elements.implement(A,Elements.multi(A)); +}Element.Prototype[A]=B;}});Element.Prototype={$family:{name:"element"}};Element.Constructors=new Hash;var IFrame=new Native({name:"IFrame",generics:false,initialize:function(){var E=Array.link(arguments,{properties:Object.type,iframe:$defined}); +var C=E.properties||{};var B=$(E.iframe)||false;var D=C.onload||$empty;delete C.onload;C.id=C.name=$pick(C.id,C.name,B.id,B.name,"IFrame_"+$time());B=new Element(B||"iframe",C); +var A=function(){var F=$try(function(){return B.contentWindow.location.host;});if(F&&F==window.location.host){var H=new Window(B.contentWindow);var G=new Document(B.contentWindow.document); +$extend(H.Element.prototype,Element.Prototype);}D.call(B.contentWindow,B.contentWindow.document);};(!window.frames[C.id])?B.addListener("load",A):A();return B; +}});var Elements=new Native({initialize:function(F,B){B=$extend({ddup:true,cash:true},B);F=F||[];if(B.ddup||B.cash){var G={},E=[];for(var C=0,A=F.length; +C<A;C++){var D=$.element(F[C],!B.cash);if(B.ddup){if(G[D.uid]){continue;}G[D.uid]=true;}E.push(D);}F=E;}return(B.cash)?$extend(F,this):F;}});Elements.implement({filter:function(A,B){if(!A){return this; +}return new Elements(Array.filter(this,(typeof A=="string")?function(C){return C.match(A);}:A,B));}});Elements.multi=function(A){return function(){var B=[]; +var F=true;for(var D=0,C=this.length;D<C;D++){var E=this[D][A].apply(this[D],arguments);B.push(E);if(F){F=($type(E)=="element");}}return(F)?new Elements(B):B; +};};Window.implement({$:function(B,C){if(B&&B.$family&&B.uid){return B;}var A=$type(B);return($[A])?$[A](B,C,this.document):null;},$$:function(A){if(arguments.length==1&&typeof A=="string"){return this.document.getElements(A); +}var F=[];var C=Array.flatten(arguments);for(var D=0,B=C.length;D<B;D++){var E=C[D];switch($type(E)){case"element":E=[E];break;case"string":E=this.document.getElements(E,true); +break;default:E=false;}if(E){F.extend(E);}}return new Elements(F);},getDocument:function(){return this.document;},getWin... [truncated message content] |
From: <lph...@us...> - 2008-08-04 19:56:19
|
Revision: 14051 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=14051&view=rev Author: lphuberdeau Date: 2008-08-04 19:56:16 +0000 (Mon, 04 Aug 2008) Log Message: ----------- [MRG] Automatic merge, branches/2.0 14030 to 14049 Modified Paths: -------------- trunk/db/tiki_1.9to2.0.sql trunk/installer/tiki-installer.php trunk/templates/tiki-install.tpl trunk/tiki-install.php trunk/tiki-send_newsletters.php trunk/tiki-setup_base.php Modified: trunk/db/tiki_1.9to2.0.sql =================================================================== --- trunk/db/tiki_1.9to2.0.sql 2008-08-04 19:50:12 UTC (rev 14050) +++ trunk/db/tiki_1.9to2.0.sql 2008-08-04 19:56:16 UTC (rev 14051) @@ -611,7 +611,6 @@ ALTER TABLE tiki_comments CHANGE title title varchar(255); #sylvieg 2007/05/23 -ALTER TABLE users_users ADD email_due int(14) default NULL AFTER pass_due; ALTER TABLE users_users ADD unsuccessful_logins int(14) default 0; #sylvieg 2007/05/25 Modified: trunk/installer/tiki-installer.php =================================================================== --- trunk/installer/tiki-installer.php 2008-08-04 19:50:12 UTC (rev 14050) +++ trunk/installer/tiki-installer.php 2008-08-04 19:56:16 UTC (rev 14051) @@ -17,8 +17,6 @@ error_reporting (E_ALL); -session_start(); - include_once("lib/init/initlib.php"); // Define and load Smarty components @@ -728,6 +726,21 @@ $smarty->assign('htaccess_error', 'y'); } } + +if( isset( $_GET['lockenter'] ) ) +{ + touch( 'db/lock' ); + header( 'Location: tiki-index.php' ); + exit; +} + +if( isset( $_GET['lockchange'] ) ) +{ + touch( 'db/lock' ); + header( 'Location: tiki-change_password.php?user=admin' ); + exit; +} + $smarty->assign_by_ref('tikifeedback', $tikifeedback); $php_memory_limit = return_bytes(ini_get('memory_limit')); Modified: trunk/templates/tiki-install.tpl =================================================================== --- trunk/templates/tiki-install.tpl 2008-08-04 19:50:12 UTC (rev 14050) +++ trunk/templates/tiki-install.tpl 2008-08-04 19:56:16 UTC (rev 14051) @@ -221,6 +221,7 @@ <h2>{tr}Other Options{/tr}</h2> <ul> {if $tikidb_is20} + <li><a href="tiki-install.php?lockenter" class="link">{tr}Lock installer and enter Tiki (Best){/tr}</a>.</li> <li><a href="tiki-index.php" class="link">{tr}Do nothing and enter Tiki{/tr}</a>.</li> {/if} <li><a href="tiki-install.php?reset=yes{if $lang}&lang={$lang}{/if}" class="link">{tr}Reset database connection settings{/tr}</a>.</li> @@ -326,8 +327,10 @@ <h2>{tr}Entering TikiWiki{/tr}</h2> <ul> {if isset($smarty.post.update)} +<li><a href="tiki-install.php?lockenter" class="link">{tr}Enter TikiWiki and lock installer (Best){/tr}</a> <li><a href="tiki-index.php" class="link">{tr}Enter TikiWiki{/tr}</a> {else} + <li><a href="tiki-install.php?lockchange" class="link">{tr}Login as the administrator and lock installer (Best){/tr}</a><br />{tr}You will be prompted to select a new administrator password.{/tr} {tr}Old password{/tr}: <em>admin</em></li> <li><a href="tiki-change_password.php?user=admin" class="link">{tr}Login as the administrator{/tr}</a><br />{tr}You will be prompted to select a new administrator password.{/tr} {tr}Old password{/tr}: <em>admin</em></li> {/if} </ul> Modified: trunk/tiki-install.php =================================================================== --- trunk/tiki-install.php 2008-08-04 19:50:12 UTC (rev 14050) +++ trunk/tiki-install.php 2008-08-04 19:56:16 UTC (rev 14051) @@ -6,112 +6,52 @@ // All Rights Reserved. See copyright.txt for details and a complete list of authors. // Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details. -function get_tables( $dbTiki ) -{ - static $list = array(); - if( $list ) - return $list; - - $result = $dbTiki->Execute( "show tables" ); - while( $row = $result->fetchRow() ) - $list[] = reset( $row ); - - return $list; -} - -function get_pref( $dbTiki, $name, $default ) -{ - $result = $dbTiki->query( "SELECT value FROM tiki_preferences WHERE name = ?", array( $name ) ); - if( $row = $result->fetchRow() ) - return reset( $row ); - - return $default; -} - function installer_is_accessible() { - global $cookie_name, $dbTiki, $db_tiki, $host_tiki, $user_tiki, $pass_tiki, $dbs_tiki; - - if( ! $dbTiki->Connect( $host_tiki, $user_tiki, $pass_tiki, $dbs_tiki ) ) + if( ! isset( $_SESSION['accessible'] ) ) return false; - $tables = get_tables( $dbTiki ); + return true; +} - if( ! in_array( 'users_users', $tables ) ) - return true; - - $session_type = get_pref( $dbTiki, 'session_db', 'n' ); - $cookie_name = get_pref( $dbTiki, 'cookie_name', 'tikiwiki' ); +if( file_exists( 'db/lock' ) ) + die( 'Installer disabled. Remove \'db/lock\' to enable the installer.' ); - // Clean cookie name, the same way it's done in tiki-setup_base.php - $cookie_name = 'tiki-user-'.ereg_replace("[^a-zA-Z0-9]", "", $cookie_name); +session_start(); - if ($session_type == 'y') { - include('db/local.php'); - $ADODB_SESSION_DRIVER=$db_tiki; - $ADODB_SESSION_CONNECT=$host_tiki; - $ADODB_SESSION_USER=$user_tiki; - $ADODB_SESSION_PWD=$pass_tiki; - $ADODB_SESSION_DB=$dbs_tiki; - unset($db_tiki); - unset($host_tiki); - unset($user_tiki); - unset($pass_tiki); - unset($dbs_tiki); - ini_set('session.save_handler','user'); - include_once('lib/adodb/session/adodb-session.php'); - } - - session_start(); - - if( ! isset( $_SESSION[$cookie_name] ) ) - return false; - - if( $_SESSION[$cookie_name] == 'admin' ) - return true; - - global $db_tiki; - unset($db_tiki); - - return false; -} - -$cookie_name = ''; if ( file_exists( 'db/local.php' ) ) { - include_once("lib/init/initlib.php"); - require_once('lib/setup/tikisetup.class.php'); - TikiInit::prependIncludePath('lib/adodb'); - TikiInit::prependIncludePath('lib/pear'); - include('db/local.php'); - include_once('adodb.inc.php'); + include_once('lib/adodb/adodb.inc.php'); $dbTiki = &ADONewConnection($db_tiki); -} else { - $cookie_name = 'tiki-user-tikiwiki'; + if( isset( $_POST['dbuser'], $_POST['dbpass'] ) ) + { + if( $_POST['dbuser'] == $user_tiki && $_POST['dbpass'] == $pass_tiki ) + $_SESSION['accessible'] = true; + } } +else + $_SESSION['accessible'] = true; -if ( $cookie_name != '' || installer_is_accessible() ) { +if ( installer_is_accessible() ) { $logged = true; $admin_acc = 'y'; include_once("installer/tiki-installer.php"); } else { - require_once("setup_smarty.php"); - require_once("lib/tikilib.php"); - include_once('lib/init/tra.php'); - $tikilib = new TikiLib($dbTiki); - require_once("lib/userslib.php"); - $userlib = new UsersLib($dbTiki); - require_once("lib/tikiaccesslib.php"); - $access = new TikiAccessLib(); - require_once('lib/setup/prefs.php'); - require_once('lib/setup/language.php'); - - echo tra("<html><body>\n<h1>Security Alert!</h1>\n"); - echo tra('<p>The Tiki installer can be used only by the site administrator. Please login as the administrator first.</p>'); - $smarty->display('tiki-login.tpl'); - echo '</body></html>'; +?> +<html> +<body> +<h1><?php echo ('Security Alert') ?>!</h1> +<p><?php echo ( 'The Tiki installer can be used only by the site administrator. Please enter the database credentials as a verification. If you forgot about them, they are located in \'db/local.php\'') ?></p> +<form method="post" action="tiki-install.php"> +<p><?php echo ( 'Database username' ) ?>: <input type="text" name="dbuser"/></p> +<p><?php echo ( 'Database password' ) ?>: <input type="text" name="dbpass"/></p> +<p><input type="submit" value="Validate"/></p> +</form> +</body> +</html> +<?php } ?> Modified: trunk/tiki-send_newsletters.php =================================================================== --- trunk/tiki-send_newsletters.php 2008-08-04 19:50:12 UTC (rev 14050) +++ trunk/tiki-send_newsletters.php 2008-08-04 19:56:16 UTC (rev 14051) @@ -22,6 +22,13 @@ die; } +if ($tiki_p_send_newsletters != 'y') { + $smarty->assign('errortype', 401); + $smarty->assign('msg', tra("You do not have permission to use this feature")); + $smarty->display("error.tpl"); + die; +} + if (!isset($_REQUEST["nlId"])) { $_REQUEST["nlId"] = 0; } Modified: trunk/tiki-setup_base.php =================================================================== --- trunk/tiki-setup_base.php 2008-08-04 19:50:12 UTC (rev 14050) +++ trunk/tiki-setup_base.php 2008-08-04 19:56:16 UTC (rev 14051) @@ -171,6 +171,7 @@ $patterns['string'] = "/^<\/?(b|strong|small|br *\/?|ul|li|i)>|[^<>\";#]*$/"; // find, and such extended chars $patterns['stringlist'] = "/^[^<>\"#]*$/"; // to, cc, bcc (for string lists like: user1;user2;user3) $patterns['vars'] = "/^[-_a-zA-Z0-9]*$/"; // for variable keys +$patterns['dotvars'] = "/^[-_a-zA-Z0-9\.]*$/"; // same pattern as a variable key, but that may contain a dot $patterns['hash'] = "/^[a-z0-9]*$/"; // for hash reqId in live support // needed for the htmlpage inclusion in tiki-editpage $patterns['url'] = "/^(https?:\/\/)?[^<>\"']*$/"; // needed for the htmlpage inclusion in tiki-editpage @@ -243,6 +244,7 @@ $vartype['userole'] = 'int'; $vartype['focus'] = 'string'; $vartype['filegals_manager'] = 'vars'; +$vartype['ver'] = 'dotvars'; // filename hash for drawlib + rss type for rsslib function varcheck($array) { global $patterns, $vartype, $prefs; @@ -273,7 +275,8 @@ or ($vartype["$rq"] == 'char') and !preg_match($patterns['char'],$rv) or ($vartype["$rq"] == 'hash') and !preg_match($patterns['hash'],$rv) or ($vartype["$rq"] == 'string') and !preg_match($patterns['string'],$rv) - or ($vartype["$rq"] == 'stringlist') and !preg_match($patterns['stringlist'],$rv)) + or ($vartype["$rq"] == 'stringlist') and !preg_match($patterns['stringlist'],$rv) + or ($vartype["$rq"] == 'dotvars') and !preg_match($patterns['dotvars'],$rv)) { return(tra("Notice: invalid variable value:")." $rq = <font color='red'>".htmlspecialchars($rv)."</font>"); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ker...@us...> - 2008-08-04 21:26:45
|
Revision: 14055 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=14055&view=rev Author: kerrnel22 Date: 2008-08-04 21:26:43 +0000 (Mon, 04 Aug 2008) Log Message: ----------- [NEW] Added a blank date option to the date and time field. Had to re-add blank year/month/day to smarty date form which was removed from the initial smarty lib. Modified Paths: -------------- trunk/lib/smarty_tiki/function.html_select_date.php trunk/lib/trackers/trackerlib.php trunk/templates/tracker_item_field_input.tpl trunk/tiki-view_tracker.php Modified: trunk/lib/smarty_tiki/function.html_select_date.php =================================================================== --- trunk/lib/smarty_tiki/function.html_select_date.php 2008-08-04 21:12:07 UTC (rev 14054) +++ trunk/lib/smarty_tiki/function.html_select_date.php 2008-08-04 21:26:43 UTC (rev 14055) @@ -79,12 +79,21 @@ $field_order = 'MDY'; /* String printed between the different fields. */ $field_separator = "\n"; + /* Allow empty date fields. */ + $all_empty = null; + $day_empty = null; + $month_empty = null; + $year_empty = null; extract($params); if (!$time) $time = time(); + if (isset($all_empty)) + $day_empty = $month_empty = $year_empty = $all_empty; // If $time is not in format yyyy-mm-dd - if (!preg_match('/^\d{4}-\d{2}-\d{2}$/', $time)) { + // if (!preg_match('/^\d{4}-\d{2}-\d{2}$/', $time)) { + // Had to replace the search to accommodate "--" empty time setting. + if (!(preg_match('/^\d{0,4}-/', $time) || preg_match('/-\d{0,2}/', $time) || preg_match('/-$/', $time))) { // then $time is empty or unix timestamp or mysql timestamp // using smarty_make_timestamp to get an unix timestamp and // strftime to make yyyy-mm-dd @@ -115,6 +124,10 @@ if ($display_months) { $month_names = array(); $month_values = array(); + if(isset($month_empty)) { + $month_names[''] = $month_empty; + $month_values[''] = 'null'; + } for ($i = 1; $i <= 12; $i++) { @@ -146,7 +159,7 @@ $month_result .= smarty_function_html_options(array('output' => $month_names, 'values' => $month_values, - 'selected' => $month_values[$time[1]-1], + 'selected' => (int)$time[1] ? $month_values[$time[1]-1] : '', 'print_result' => false), $smarty); @@ -155,6 +168,10 @@ if ($display_days) { $days = array(); + if (isset($day_empty)) { + $days[''] = $day_empty; + $day_values[''] = 'null'; + } for ($i = 1; $i <= 31; $i++) { $days[] = sprintf($day_format, $i); $day_values[] = sprintf($day_value_format, $i); @@ -205,6 +222,12 @@ rsort($years, SORT_NUMERIC); } + $yearvals = $years; + if(isset($year_empty)) { + array_unshift($years, $year_empty); + array_unshift($yearvals, 'null'); + } + $year_result .= '<select name="' . $year_name . '"'; if (null !== $year_size){ $year_result .= ' size="' . $year_size . '"'; @@ -217,7 +240,7 @@ } $year_result .= '>'."\n"; $year_result .= smarty_function_html_options(array('output' => $years, - 'values' => $years, + 'values' => $yearvals, 'selected' => $time[0], 'print_result' => false), $smarty); Modified: trunk/lib/trackers/trackerlib.php =================================================================== --- trunk/lib/trackers/trackerlib.php 2008-08-04 21:12:07 UTC (rev 14054) +++ trunk/lib/trackers/trackerlib.php 2008-08-04 21:26:43 UTC (rev 14055) @@ -815,8 +815,7 @@ case 'l': if ( isset($fopt['options_array'][2]) && isset($fil[$fopt['options_array'][2]]) && ($lst = $fil[$fopt['options_array'][2]]) && isset($fopt['options_array'][3])) { $opts[1] = split(':', $fopt['options_array'][1]); - $finalFields = explode('|', $fopt['options_array'][3]); - $fopt['links'] = $this->get_join_values($itemId, array_merge(array($fopt['options_array'][2]), array($fopt['options_array'][1]), array($finalFields[0])), $fopt['options_array'][0], $finalFields); + $fopt['links'] = $this->get_join_values($itemId, array_merge(array($fopt['options_array'][2]), array($fopt['options_array'][1]), array($fopt['options_array'][3]))); $fopt['trackerId'] = $fopt['options_array'][0]; } if (isset($fopt['links']) && count($fopt['links']) == 1) { //if a computed field use it @@ -897,7 +896,7 @@ include_once('lib/categories/categlib.php'); include_once('lib/notifications/notificationlib.php'); - if (!empty($itemId)) { + if ($itemId && $itemId!=0) { $oldStatus = $this->getOne("select `status` from `tiki_tracker_items` where `itemId`=?", array($itemId)); if ($status) { $query = "update `tiki_tracker_items` set `status`=?,`lastModif`=? where `itemId`=?"; @@ -1236,7 +1235,7 @@ // Don't send a notification if this operation is part of a bulk import if(!$bulk_import) { $options = $this->get_tracker_options( $trackerId ); - $watchers = $this->get_notification_emails($trackerId, $itemId, $options, $new_itemId, $status, isset($oldStatus)?$oldStatus: ''); + $watchers = $this->get_notification_emails($trackerId, $itemId, $options, $new_itemId); if (count($watchers) > 0) { if( array_key_exists( "simpleEmail", $options ) ) { @@ -1267,7 +1266,6 @@ if (count($parts) > 1) unset ($parts[count($parts) - 1]); $smarty->assign('mail_machine_raw', $this->httpPrefix(). implode('/', $parts)); - $smarty->assign_by_ref('status', $status); foreach ($watchers as $watcher) { if ($itemId) { $mail_action = "\r\n".tra('Item Modification', $watcher['language'])."\r\n\r\n"; @@ -1279,8 +1277,6 @@ } $smarty->assign('mail_action', $mail_action); $smarty->assign('mail_data', $the_data); - if (isset($watcher['action'])) - $smarty->assign('mail_action', $watcher['action']); $mail_data = $smarty->fetchLang($watcher['language'], 'mail/tracker_changed_notification.tpl'); @@ -1442,10 +1438,10 @@ return $total; } - function import_csv($trackerId, $csvHandle, $replace = true, $dateFormat='', $encoding='UTF8', $csvDelimiter=',') { + function import_csv($trackerId, $csvHandle, $replace = true, $dateFormat='', $encoding='UTF8') { global $tikilib; $tracker_info = $this->get_tracker_options($trackerId); - if (($header = fgetcsv($csvHandle,100000, $csvDelimiter)) === FALSE) { + if (($header = fgetcsv($csvHandle,100000)) === FALSE) { return 'Illegal first line'; } $max = count($header); @@ -1461,7 +1457,7 @@ $total = 0; $need_reindex = array(); $fields = $this->list_tracker_fields($trackerId, 0, -1, 'position_asc', ''); - while (($data = fgetcsv($csvHandle,100000, $csvDelimiter)) !== FALSE) { + while (($data = fgetcsv($csvHandle,100000)) !== FALSE) { $status = $tracker_info['defaultStatus']; $itemId = 0; $created = $tikilib->now; @@ -2234,7 +2230,7 @@ $type['f'] = array( 'label'=>tra('date and time'), 'opt'=>true, - 'help'=>tra('Date Time options: date_time,year0,year1 where date_time=d|dt(default), d displays only date, year0 is the first year, year1 the last')); + 'help'=>tra('Date and Time options: [d|dt],[startyear],[endyear],[blank] where d=date only|dt=date+time(default), startyear is the first year in date range, endyear the last, blank allows a blank date (mandatory must be off). Example: "d,2000,2009,blank" sets a date only field from 2000 through 2009, allowing blank dates.')); $type['j'] = array( 'label'=>tra('jscalendar'), 'opt'=>true, @@ -2273,7 +2269,7 @@ $type['m'] = array( 'label'=>tra('email'), 'opt'=>true, - 'help'=>tra('Email address options: 0|1|2,o,p,c where the first param=0 puts the address as plain text, 1 does a hex encoded mailto link (more difficult for web spiders to pick it up and spam) and 2 does the normal href mailto. The second param=o watches status becoming open. The third param=p watches status becomin pending. The fourth param=c watches status becoming closed') ); + 'help'=>tra('Email address options: 0|1|2 where 0 puts the address as plain text, 1 does a hex encoded mailto link (more difficult for web spiders to pick it up and spam) and 2 does the normal href mailto.') ); $type['M'] = array( 'label'=>tra('multimedia'), 'opt'=>true, @@ -2473,9 +2469,9 @@ } return $field; } - function get_notification_emails($trackerId, $itemId, $options, $newItemId=0, $status='', $oldStatus='') { + function get_notification_emails($trackerId, $itemId, $options, $newItemId=0) { $watchers_global = $this->get_event_watches('tracker_modified',$trackerId); - $watchers_local = $this->get_local_notifications($itemId, $newItemId, $status, $oldStatus); + $watchers_local = $this->get_local_notifications($itemId, $newItemId); $watchers_item = $itemId? $this->get_event_watches('tracker_item_modified',$itemId, array('trackerId'=>$trackerId)): array(); $watchers_outbound = array(); if( array_key_exists( "outboundEmail", $options ) && $options["outboundEmail"] ) { @@ -2540,38 +2536,23 @@ return $ret; } /* return all the emails that are locally watching an item */ - function get_local_notifications($itemId, $newItemId=0, $status='', $oldStatus='') { - global $tikilib, $userlib, $user_preferences, $prefs; + function get_local_notifications($itemId, $newItemId=0) { + global $tikilib, $userlib, $user_preferences; $emails = array(); - // user field watching item $res = $this->get_item_values_by_type($itemId?$itemId:$newItemId, 'u'); - if (is_array($res)) { - foreach ($res as $f) { - if (isset($f['options_array'][0]) && ($f['options_array'][0] == 1 || $f['options_array'][0] == 2) && empty($itemId)) - continue;//do not send email on a new item for a creator/modif field - if (isset($f['options_array'][1]) && $f['options_array'][1] == 1) { - $tikilib->get_user_preferences($f['value'], array('email', 'user', 'language', 'mailCharset')); - $emails[] = array('email'=>$userlib->get_user_email($f['value']), 'user'=>$f['value'], 'language'=>$user_preferences[$f['value']]['language'], 'mailCharset'=>$user_preferences[$f['value']]['mailCharset']); - } + if (!is_array($res)) + return $emails; + foreach ($res as $f) { + if (isset($f['options_array'][0]) && ($f['options_array'][0] == 1 || $f['options_array'][0] == 2) && empty($itemId)) + continue;//do not send email on a new item for a creator/modif field + if (isset($f['options_array'][1]) && $f['options_array'][1] == 1) { + $tikilib->get_user_preferences($f['value'], array('email', 'user', 'language', 'mailCharset')); + $emails[] = array('email'=>$userlib->get_user_email($f['value']), 'user'=>$f['value'], 'language'=>$user_preferences[$f['value']]['language'], 'mailCharset'=>$user_preferences[$f['value']]['mailCharset']); } } - // email field watching status change - if ($status != $oldStatus) { - $res = $this->get_item_values_by_type($itemId?$itemId:$newItemId, 'm'); - if (is_array($res)) { - foreach ($res as $f) { - if ((isset($f['options_array'][1]) && $f['options_array'][1] == 'o' && $status == 'o') - || (isset($f['options_array'][2]) && $f['options_array'][2] == 'p' && $status == 'p') - || (isset($f['options_array'][3]) && $f['options_array'][3] == 'c' && $status == 'c')) { - $emails[] = array('email'=> $f['value'], 'user'=>'', 'language'=>$prefs['language'], 'mailCharset'=>$prefs['users_prefs_mailCharset'], 'action'=>'status'); - } - } - } - } return $emails; } - function get_join_values($itemId, $fieldIds, $finalTrackerId='', $finalFields='', $separator=' ') { - global $smarty; + function get_join_values($itemId, $fieldIds) { $select[] = "`tiki_tracker_item_fields` t0"; $where[] = " t0.`itemId`=?"; $bindVars[] = $itemId; @@ -2590,22 +2571,7 @@ $result = $this->query($query, $bindVars); $ret = array(); while ($res = $result->fetchRow()) { - $field_value = $this->get_tracker_field($res['fieldId']); - $field_value['value'] = $res['value']; - $smarty->assign('field_value', $field_value); - $ret[$res['itemId']] = $smarty->fetch('tracker_item_field_value.tpl'); - if (is_array($finalFields) && count($finalFields)) { - $i = 0; - foreach ($finalFields as $f) { - if (!$i++) - continue; - $field_value = $this->get_tracker_field($f); - $ff = $this->get_item_value($finalTrackerId, $res['itemId'], $f);; - $field_value['value'] = $ff; - $smarty->assign('field_value', $field_value); - $ret[$res['itemId']] .= $separator.$smarty->fetch('tracker_item_field_value.tpl'); - } - } + $ret[$res['itemId']] = $res['value']; } return $ret; } Modified: trunk/templates/tracker_item_field_input.tpl =================================================================== --- trunk/templates/tracker_item_field_input.tpl 2008-08-04 21:12:07 UTC (rev 14054) +++ trunk/templates/tracker_item_field_input.tpl 2008-08-04 21:26:43 UTC (rev 14055) @@ -233,25 +233,45 @@ {* -------------------- date and time -------------------- *} {elseif $field_value.type eq 'f'} - {if isset($field_value.options_array[1])} + {* ----- Start year --- *} + {if isset($field_value.options_array[1]) and $field_value.options_array[1] ne ''} {assign var=start value=$field_value.options_array[1]} {elseif isset($prefs.calendar_start_year)} {assign var=start value=$prefs.calendar_start_year} {else} {assign var=start value=-4} + {/if} + {if $field_value.year < $start} + {assign var=start value=$field_value.year} {/if} - {if isset($field_value.options_array[2])} + + {* ----- End year --- *} + {if isset($field_value.options_array[2]) and $field_value.options_array[2] ne ''} {assign var=end value=$field_value.options_array[2]} {elseif isset($prefs.calendar_end_year)} {assign var=end value=$prefs.calendar_end_year} {else} {assign var=end value=+4} {/if} - {html_select_date prefix=$field_value.ins_id time=$field_value.value start_year=$start end_year=$end field_order=$prefs.display_field_order} - {if $field_value.options_array[0] ne 'd'} - {tr}at{/tr} {html_select_time prefix=$field_value.ins_id time=$field_value.value display_seconds=false} + {if $field_value.year > $end} + {assign var=start value=$field_value.year} {/if} + {if $field_value.value eq ''} + {assign var=time value="--"} + {else} + {assign var=time value=$field_value.value} + {/if} + {if $field_value.options_array[0] eq 'd'} + {if $field_value.isMandatory ne 'y' and (isset($field_value.options_array[3]) and $field_value.options_array[3] eq 'blank')} + {html_select_date prefix=$field_value.ins_id time=$time start_year=$start end_year=$end field_order=$prefs.display_field_order all_empty=" "} + {else} + {html_select_date prefix=$field_value.ins_id time=$time start_year=$start end_year=$end field_order=$prefs.display_field_order} + {/if} + {else} + {tr}at{/tr} {html_select_time prefix=$field_value.ins_id time=$time display_seconds=false} + {/if} + {* -------------------- drop down -------------------- *} {elseif $field_value.type eq 'd' or $field_value.type eq 'D'} <select name="{$field_value.ins_id}" {if $field_value.http_request}onchange="selectValues('trackerIdList={$field_value.http_request[0]}&fieldlist={$field_value.http_request[3]}&filterfield={$field_value.http_request[1]}&status={$field_value.http_request[4]}&mandatory={$field_value.http_request[6]}&filtervalue={$field_value.value}{$field_value.http_request[5]}')"{/if}> Modified: trunk/tiki-view_tracker.php =================================================================== --- trunk/tiki-view_tracker.php 2008-08-04 21:12:07 UTC (rev 14054) +++ trunk/tiki-view_tracker.php 2008-08-04 21:26:43 UTC (rev 14055) @@ -763,6 +763,9 @@ include_once('tiki-section_options.php'); $smarty->assign('uses_tabs', 'y'); +if ($prefs['feature_jscalendar']) { + $smarty->assign('uses_jscalendar', 'y'); +} $smarty->assign('show_filters', 'n'); if(count($fields['data'])>0) { foreach ($fields['data'] as $it) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <sy...@us...> - 2008-08-04 22:57:43
|
Revision: 14057 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=14057&view=rev Author: sylvieg Date: 2008-08-04 22:57:50 +0000 (Mon, 04 Aug 2008) Log Message: ----------- [MOD]wiki: new syntax --text-- for deleted text Modified Paths: -------------- trunk/lib/tikilib.php trunk/templates/tiki-edit_help.tpl Modified: trunk/lib/tikilib.php =================================================================== --- trunk/lib/tikilib.php 2008-08-04 22:15:51 UTC (rev 14056) +++ trunk/lib/tikilib.php 2008-08-04 22:57:50 UTC (rev 14057) @@ -5872,6 +5872,8 @@ $data = preg_replace("/===([^\=]+)===/", "<span style=\"text-decoration:underline;\">$1</span>", $data); // Center text $data = preg_replace("/::(.+?)::/", "<div align=\"center\">$1</div>", $data); + // Strike text + $data = preg_replace("/--([^\=]+)--/", "<del>$1</del>", $data); } // definitively put out the protected words ))protectedWord(( Modified: trunk/templates/tiki-edit_help.tpl =================================================================== --- trunk/templates/tiki-edit_help.tpl 2008-08-04 22:15:51 UTC (rev 14056) +++ trunk/templates/tiki-edit_help.tpl 2008-08-04 22:57:50 UTC (rev 14057) @@ -51,6 +51,7 @@ <tr><td width="20%" class="{cycle advance=false}"><strong>{tr}Italic text{/tr}</strong></td><td class="{cycle}"> 2 {tr}single quotes{/tr} "'". {tr}Example{/tr} ''{tr}text{/tr}'' = <em>text</em></td></tr> <tr><td class="{cycle advance=false}"><strong>{tr}Centered text{/tr}</strong></td><td class="{cycle}"> 2 {tr}colons{/tr} ":". {tr}Example{/tr} ::{tr}some text{/tr}:</td></tr> <tr><td class="{cycle advance=false}"><strong>{tr}Underlined text{/tr}</strong></td><td class="{cycle}"> 3 {tr}equals{/tr} "=". {tr}Example{/tr} ==={tr}text{/tr}===</td></tr> +<tr><td class="{cycle advance=false}"><strong>{tr}Deleted text{/tr}</strong></td><td class="{cycle}"> {tr}2 dashes{/tr} "-". {tr}Example{/tr} --{tr}text{/tr}--</td></tr> <tr><td class="{cycle advance=false}"><strong>{tr}Text box{/tr}</strong></td><td class="{cycle}"> {tr}One carat{/tr} "^". {tr}Creates a box with the data{/tr}. {tr}Example{/tr} "^{tr}Box content{/tr}^"</td></tr> <tr><td class="{cycle advance=false}"><strong>{tr}Title bar{/tr}</strong></td><td class="{cycle}"> "-={tr}Title{/tr}=-" {tr}creates a title bar{/tr}.</td></tr> <tr><td class="{cycle advance=false}"><strong>{tr}Colored text{/tr}</strong></td><td class="{cycle}"> "~~#FFEE33:{tr}some text{/tr}~~" {tr}or{/tr} "~~yellow:{tr}some text{/tr}~~". {tr}Will display using the indicated HTML color or color name{/tr}</td></tr> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <se...@us...> - 2008-08-05 12:55:54
|
Revision: 14060 http://tikiwiki.svn.sourceforge.net/tikiwiki/?rev=14060&view=rev Author: sept_7 Date: 2008-08-05 12:56:02 +0000 (Tue, 05 Aug 2008) Log Message: ----------- [ENH] : xhtml validation+reindentation Modified Paths: -------------- trunk/styles/tikinewt.css trunk/templates/tiki-admin-include-look.tpl Modified: trunk/styles/tikinewt.css =================================================================== --- trunk/styles/tikinewt.css 2008-08-05 07:35:31 UTC (rev 14059) +++ trunk/styles/tikinewt.css 2008-08-05 12:56:02 UTC (rev 14060) @@ -572,7 +572,7 @@ div#attzoneopen, div#comzoneopen {display: block; margin-top: 10px;} div#edithelpzone {display: none;} #rules-copy-panel {display: none;} -.clear, #clear {clear: both;} +.clear, #clear {clear: both !important;} br.clear {clear: both; height: 0} .clearfix:after { content: "."; Modified: trunk/templates/tiki-admin-include-look.tpl =================================================================== --- trunk/templates/tiki-admin-include-look.tpl 2008-08-05 07:35:31 UTC (rev 14059) +++ trunk/templates/tiki-admin-include-look.tpl 2008-08-05 12:56:02 UTC (rev 14060) @@ -11,410 +11,654 @@ <input type="reset" name="looksetupreset" value="{tr}Reset{/tr}" /> </div> -{if $prefs.feature_tabs eq 'y'} - {cycle name=tabs values="1,2,3,4" print=false advance=false reset=true} - <div class="tabs"> - <span id="tab{cycle name=tabs advance=false assign=tabi}{$tabi}" - class="tabmark tabinactive"><a - href="#theme" - onclick="javascript:tikitabs({cycle name=tabs},4); return false;">{tr}Theme{/tr}</a></span> - <span id="tab{cycle name=tabs advance=false assign=tabi}{$tabi}" - class="tabmark tabinactive"><a - href="#layout" - onclick="javascript:tikitabs({cycle name=tabs},4); return false;">{tr}General Layout{/tr}</a></span> - <span id="tab{cycle name=tabs advance=false assign=tabi}{$tabi}" - class="tabmark tabinactive"><a - href="#other" - onclick="javascript:tikitabs({cycle name=tabs},4); return false;">{tr}Other{/tr}</a></span> - </div> - {cycle name=content values="1,2,3,4" print=false advance=false reset=true} -{/if} + {if $prefs.feature_tabs eq 'y'} + {cycle name=tabs values="1,2,3,4" print=false advance=false reset=true} + <div class="tabs"> + <span id="tab{cycle name=tabs advance=false assign=tabi}{$tabi}" class="tabmark tabinactive"> + <a href="#theme" onclick="javascript:tikitabs({cycle name=tabs},4); return false;">{tr}Theme{/tr}</a> + </span> + <span id="tab{cycle name=tabs advance=false assign=tabi}{$tabi}" + class="tabmark tabinactive"> + <a href="#layout" onclick="javascript:tikitabs({cycle name=tabs},4); return false;">{tr}General Layout{/tr}</a> + </span> + <span id="tab{cycle name=tabs advance=false assign=tabi}{$tabi}" class="tabmark tabinactive"> + <a href="#other" onclick="javascript:tikitabs({cycle name=tabs},4); return false;">{tr}Other{/tr}</a> + </span> + </div> + {cycle name=content values="1,2,3,4" print=false advance=false reset=true} + {/if} <fieldset{if $prefs.feature_tabs eq 'y'} class="tabcontent" id="content{cycle name=content assign=focustab}{$focustab}"{/if}> - {if $prefs.feature_tabs neq 'y'}<legend class="heading"><a - href="#theme" - name="theme" - onclick="flip('theme'); return false;"><span>{tr}Theme{/tr}</span></a></legend> - <div id="theme" style="display:{if !isset($smarty.session.tiki_cookie_jar.show_theme) and $smarty.session.tiki_cookie_jar.show_theme neq 'y'}none{else}block{/if};">{/if} + {if $prefs.feature_tabs neq 'y'} + <legend class="heading"> + <a href="#theme" name="theme" onclick="flip('theme'); return false;"> + <span>{tr}Theme{/tr}</span> + </a> + </legend> + <div id="theme" style="display:{if !isset($smarty.session.tiki_cookie_jar.show_theme) and $smarty.session.tiki_cookie_jar.show_theme neq 'y'}none{else}block{/if};"> + {/if} <table class="admin"> <tr> - <td class="form" ><label for="general-theme">{tr}Theme{/tr}:</label></td> - <td width="67%"><select name="site_style" id="general-theme"> - {section name=ix loop=$styles} - <option value="{$styles[ix]|escape}"{if $prefs.site_style eq $styles[ix]} selected="selected"{/if}>{$styles[ix]}</option> - {/section} - </select></td> - </tr><tr> - <td class="form"><label for="general-slideshows">{tr}Slideshows theme{/tr}:</label></td> - <td><select name="slide_style" id="general-slideshows"> - {section name=ix loop=$slide_styles} - <option value="{$slide_styles[ix]|escape}"{if $prefs.slide_style eq $slide_styles[ix]} selected="selected"{/if}>{$slide_styles[ix]}</option> - {/section} - </select></td> - </tr><tr> - <td class="form"><label for="transition_style_ver">{tr}Use transition style sheet from version{/tr}:</label></td> - <td><select name="transition_style_ver" id="transition_style_ver"> - <option value="none" {if $prefs.transition_style_ver eq 'none'}selected="selected"{/if}>{tr}Never use transition css{/tr}</option> - <option value="css_specified_only" {if $prefs.transition_style_ver eq 'css_specified_only'}selected="selected"{/if}>{tr}Use @version:x.x specified in theme css or none if not specified{/tr}</option> - <option value="1.9" {if $prefs.transition_style_ver eq '1.9'}selected="selected"{/if}>{tr}Use @version:x.x specified in theme css or 1.9 if not specified{/tr}</option> - <option value="2.0" {if $prefs.transition_style_ver eq '2.0'}selected="selected"{/if}>{tr}Use @version:x.x specified in theme css or 2.0 if not specified{/tr}</option> - </select></td> - </tr><tr> - <td class="form"> {if $prefs.feature_help eq 'y'}<a href="{$prefs.helpurl}Edit+CSS" - target="tikihelp" class="tikihelp" title="{tr}Edit CSS{/tr}">{/if} {tr}Edit CSS{/tr} {if $prefs.feature_help eq 'y'}</a>{/if}</td> - <td><input type="checkbox" name="feature_editcss" {if $prefs.feature_editcss eq 'y'}checked="checked"{/if}/> - {if $prefs.feature_editcss eq 'y' and $tiki_p_create_css eq 'y'}<a href="tiki-edit_css.php" class="link" title="{tr}Edit CSS{/tr}">{tr}Edit CSS{/tr}</a>{/if} </td> - </tr> - - <tr><td colspan="2"><hr/></td></tr> - <tr> - <td class="form"> {tr}Theme Control{/tr} </td> - <td><input type="checkbox" name="feature_theme_control" {if $prefs.feature_theme_control eq 'y'}checked="checked"{/if}/> - {if $prefs.feature_theme_control eq 'y'}<a href="tiki-theme_control.php" class="link" title="{tr}Theme Control{/tr}">{tr}Theme Control{/tr}</a>{/if} - </td> - </tr> - <tr> - <td class="form"> {if $prefs.feature_help eq 'y'}<a href="{$prefs.helpurl}View+Templates" target="tikihelp" class="tikihelp" title="{tr}Template Viewing{/tr}">{/if} {tr}Tiki Template Viewing{/tr} {if $prefs.feature_help eq 'y'}</a>{/if}</td> - <td><input type="checkbox" name="feature_view_tpl" {if $prefs.feature_view_tpl eq 'y'}checked="checked"{/if}/></td> - </tr> - <tr> - <td class="form"> {if $prefs.feature_help eq 'y'}<a href="{$prefs.helpurl}Edit+Templates" target="tikihelp" class="tikihelp" title="{tr}Edit Templates{/tr}">{/if} {tr}Edit Templates{/tr} {if $prefs.feature_help eq 'y'}</a>{/if}</td> - <td><input type="checkbox" name="feature_edit_templates" {if $prefs.feature_edit_templates eq 'y'}checked="checked"{/if}/> - {if $prefs.feature_edit_templates eq 'y'}<a href="tiki-edit_templates.php" class="link" title="{tr}Edit Templates{/tr}">{tr}Edit Templates{/tr}</a>{/if} </td> - </tr> - <tr> - <td class="form" > {if $prefs.feature_help eq 'y'}<a href="{$prefs.helpurl}Site+Identity" target="tikihelp" class="tikihelp" title="{tr}Site Identity{/tr}">{/if} {tr}Site Identity{/tr} {if $prefs.feature_help eq 'y'}</a>{/if}</td> - <td ><input type="checkbox" name="feature_siteidentity" {if $prefs.feature_siteidentity eq 'y'}checked="checked"{/if}/> {tr}Required for many of the general layout features{/tr}</td> - </tr> - </table> - {if $prefs.feature_tabs neq 'y'}</div>{/if} -</fieldset> - -{* --- General Layout options --- *} -<fieldset{if $prefs.feature_tabs eq 'y'} class="tabcontent" id="content{cycle name=content assign=focustab}{$focustab}"{/if}> - {if $prefs.feature_tabs neq 'y'}<legend class="heading" id="tab{cycle name=tabs advance=false assign=tabi}{$tabi}"><a href="#layout" name="layout" onclick="flip('layout'); return false;"><span>{tr}General Layout options{/tr}</span></a></legend> - <div id="layout" style="display:{if !isset($smarty.session.tiki_cookie_jar.show_layout) and $smarty.session.tiki_cookie_jar.show_layout neq 'y'}none{else}block{/if};">{/if} - <table class="admin" width="100%"> - <tr> - <td class="form" colspan="5"> - - {* --- Customize Site Header --- *} - <fieldset class="admin"> - <legend><a href="#"><span>{tr}Custom Site Header{/tr}</span></a></legend> - - <table class="admin"> + <td class="form" > + <label for="general-theme">{tr}Theme{/tr}:</label> + </td> + <td width="67%"> + <select name="site_style" id="general-theme"> + {section name=ix loop=$styles} + <option value="{$styles[ix]|escape}"{if $prefs.site_style eq $styles[ix]} selected="selected"{/if}>{$styles[ix]}</option> + {/section} + </select> + </td> + </tr> + <tr> + <td class="form"> + <label for="general-slideshows">{tr}Slideshows theme{/tr}:</label> + </td> + <td> + <select name="slide_style" id="general-slideshows"> + {section name=ix loop=$slide_styles} + <option value="{$slide_styles[ix]|escape}"{if $prefs.slide_style eq $slide_styles[ix]} selected="selected"{/if}>{$slide_styles[ix]}</option> + {/section} + </select> + </td> + </tr> + <tr> + <td class="form"> + <label for="transition_style_ver">{tr}Use transition style sheet from version{/tr}:</label> + </td> + <td> + <select name="transition_style_ver" id="transition_style_ver"> + <option value="none" {if $prefs.transition_style_ver eq 'none'}selected="selected"{/if}>{tr}Never use transition css{/tr}</option> + <option value="css_specified_only" {if $prefs.transition_style_ver eq 'css_specified_only'}selected="selected"{/if}>{tr}Use @version:x.x specified in theme css or none if not specified{/tr}</option> + <option value="1.9" {if $prefs.transition_style_ver eq '1.9'}selected="selected"{/if}>{tr}Use @version:x.x specified in theme css or 1.9 if not specified{/tr}</option> + <option value="2.0" {if $prefs.transition_style_ver eq '2.0'}selected="selected"{/if}>{tr}Use @version:x.x specified in theme css or 2.0 if not specified{/tr}</option> + </select> + </td> + </tr> + <tr> + <td class="form"> + {if $prefs.feature_help eq 'y'} + <a href="{$prefs.helpurl}Edit+CSS" target="tikihelp" class="tikihelp" title="{tr}Edit CSS{/tr}"> + {/if} + {tr}Edit CSS{/tr} + {if $prefs.feature_help eq 'y'}</a>{/if} + </td> + <td> + <input type="checkbox" name="feature_editcss" {if $prefs.feature_editcss eq 'y'}checked="checked"{/if}/> + {if $prefs.feature_editcss eq 'y' and $tiki_p_create_css eq 'y'} + <a href="tiki-edit_css.php" class="link" title="{tr}Edit CSS{/tr}">{tr}Edit CSS{/tr}</a> + {/if} + </td> + </tr> + <tr> + <td colspan="2"><hr/></td> + </tr> <tr> - <td class="form"><label for="feature_sitemycode">{tr}Activate{/tr}:</label></td> - <td><input type="checkbox" name="feature_sitemycode" id="feature_sitemycode"{if $prefs.feature_sitemycode eq 'y'} checked="checked"{/if} /></td> + <td class="form">{tr}Theme Control{/tr}</td> + <td> + <input type="checkbox" name="feature_theme_control" {if $prefs.feature_theme_control eq 'y'}checked="checked"{/if}/> + {if $prefs.feature_theme_control eq 'y'} + <a href="tiki-theme_control.php" class="link" title="{tr}Theme Control{/tr}">{tr}Theme Control{/tr}</a> + {/if} + </td> </tr> <tr> - <td class="form"><label for="sitemycode">{tr}Content{/tr}:</label></td> - <td><textarea name="sitemycode" rows="6" cols="40" style="width: 90%" id="sitemycode">{$prefs.sitemycode|escape}</textarea> - <br /> - <small><em>{tr}Example{/tr}</em>: - {literal}{if $user neq ''}{/literal}<div align="right" style="float: right; font-size: 10px">{literal}{{/literal}tr}{tr}logged as{/tr}{literal}{/tr}{/literal}: {literal}{$user}{/literal}</div>{literal}{/if}{/literal}</small></td> + <td class="form"> + {if $prefs.feature_help eq 'y'} + <a href="{$prefs.helpurl}View+Templates" target="tikihelp" class="tikihelp" title="{tr}Template Viewing{/tr}">{/if} {tr}Tiki Template Viewing{/tr} {if $prefs.feature_help eq 'y'}</a> + {/if} + </td> + <td> + <input type="checkbox" name="feature_view_tpl" {if $prefs.feature_view_tpl eq 'y'}checked="checked"{/if}/> + </td> </tr> <tr> - <td class="form"><label for="sitemycode_publish">{tr}Publish{/tr}:</label></td> - <td><input type="checkbox" name="sitemycode_publish" id="sitemycode_publish"{if $prefs.sitemycode_publish eq 'y'} checked="checked"{/if} /></td> + <td class="form"> + {if $prefs.feature_help eq 'y'} + <a href="{$prefs.helpurl}Edit+Templates" target="tikihelp" class="tikihelp" title="{tr}Edit Templates{/tr}"> + {/if} + {tr}Edit Templates{/tr} + {if $prefs.feature_help eq 'y'}</a>{/if} + </td> + <td> + <input type="checkbox" name="feature_edit_templates" {if $prefs.feature_edit_templates eq 'y'}checked="checked"{/if}/> + {if $prefs.feature_edit_templates eq 'y'} + <a href="tiki-edit_templates.php" class="link" title="{tr}Edit Templates{/tr}">{tr}Edit Templates{/tr}</a> + {/if} + </td> </tr> - </table> - </fieldset> - - {* --- Customize Site Logo and Site Titile--- *} - <fieldset> - <legend><a href="#"><span>{tr}Site Logo and Title{/tr}</span></a></legend> - - <table class="admin"> - <tr> - <td class="form"><label for="feature_sitelogo">{tr}Activate{/tr}:</label></td> - <td><input type="checkbox" name="feature_sitelogo" id="feature_sitelogo"{if $prefs.feature_sitelogo eq 'y'} checked="checked"{/if} /></td> - </tr> - <tr> - <td class="form"><label for="sitelogo_src">{tr}Site logo source (image path){/tr}:</label></td> - <td><input type="text" name="sitelogo_src" id="sitelogo_src" value="{$prefs.sitelogo_src}" size="60" style="width: 90%" /></td> - </tr> - <tr> - <td class="form"><label for="sitelogo_bgcolor">{tr}Site logo background color{/tr}:</label></td> - <td><input type="text" name="sitelogo_bgcolor" id="sitelogo_bgcolor" value="{$prefs.sitelogo_bgcolor}" size="15" maxlength="15" /></td> - </tr> - <tr> - <td class="form"><label for="sitelogo_bgstyle">{tr}Site logo background style{/tr}:</label></td> - <td><input type="text" name="sitelogo_bgstyle" id="sitelogo_bgstyle" value="{$prefs.sitelogo_bgstyle}" /><br /><i>{tr}Example{/tr} silver url(myStyle/img.gif) repeat</i></td> - </tr> - <tr> - <td class="form"><label for="sitelogo_align">{tr}Site logo alignment{/tr}:</label></td> - <td><select name="sitelogo_align" id="sitelogo_align"> - <option value="left" {if $prefs.sitelogo_align eq 'left'}selected="selected"{/if}>{tr}on left side{/tr}</option> - <option value="center" {if $prefs.sitelogo_align eq 'center'}selected="selected"{/if}>{tr}on center{/tr}</option> - <option value="right" {if $prefs.sitelogo_align eq 'right'}selected="selected"{/if}>{tr}on right side{/tr}</option> - </select> + <td class="form" > + {if $prefs.feature_help eq 'y'} + <a href="{$prefs.helpurl}Site+Identity" target="tikihelp" class="tikihelp" title="{tr}Site Identity{/tr}"> + {/if} + {tr}Site Identity{/tr} + {if $prefs.feature_help eq 'y'}</a>{/if} </td> + <td > + <input type="checkbox" name="feature_siteidentity" {if $prefs.feature_siteidentity eq 'y'}checked="checked"{/if}/> + {tr}Required for many of the general layout features{/tr} + </td> </tr> - <tr> - <td class="form"><label for="sitelogo_title">{tr}Site logo title (on mouse over){/tr}:</label></td> - <td><input type="text" name="sitelogo_title" id="sitelogo_title" value="{$prefs.sitelogo_title}" size="50" maxlength="50" /></td> - </tr> - <tr> - <td class="form"><label for="sitelogo_alt">{tr}Alt. description (e.g. for text browsers){/tr}:</label></td> - <td><input type="text" name="sitelogo_alt" id="sitelogo_alt" value="{$prefs.sitelogo_alt}" size="50" maxlength="50" /></td> - <tr> - <td class="form"><label for="sitetitle">{tr}Site title{/tr}:</label></td> - <td><input type="text" name="sitetitle" id="sitetitle" value="{$prefs.sitetitle}" size="50" maxlength="50" /></td> - </tr> - <tr> - <td class="form"><label for="sitesubtitle">{tr}Site subtitle{/tr}:</label></td> - <td><input type="text" name="sitesubtitle" id="sitesubtitle" value="{$prefs.sitesubtitle}" size="50" maxlength="50" /></td> - </tr> - </table> -</fieldset> + </table> + {if $prefs.feature_tabs neq 'y'}</div>{/if} + </fieldset> - {* --- Site Search Bar --- *} - <fieldset> - <legend><a href="#"><span>{tr}Site Search Bar{/tr}</span></a></legend> +{* --- General Layout options --- *} - <table class="admin"> + <fieldset{if $prefs.feature_tabs eq 'y'} class="tabcontent" id="content{cycle name=content assign=focustab}{$focustab}"{/if}> + {if $prefs.feature_tabs neq 'y'} + <legend class="heading" id="tab{cycle name=tabs advance=false assign=tabi}{$tabi}"> + <a href="#layout" name="layout" onclick="flip('layout'); return false;"> + <span>{tr}General Layout options{/tr}</span> + </a> + </legend> + <div id="layout" style="display:{if !isset($smarty.session.tiki_cookie_jar.show_layout) and $smarty.session.tiki_cookie_jar.show_layout neq 'y'}none{else}block{/if};">{/if} + <table class="admin" width="100%"> + <tr> + <td class="form" colspan="5"> + {* --- Customize Site Header --- *} + <fieldset class="admin"> + <legend> + <a href="#"> + <span>{tr}Custom Site Header{/tr}</span> + </a> + </legend> + <table class="admin"> + <tr> + <td class="form"> + <label for="feature_sitemycode">{tr}Activate{/tr}:</label> + </td> + <td> + <input type="checkbox" name="feature_sitemycode" id="feature_sitemycode"{if $prefs.feature_sitemycode eq 'y'} checked="checked"{/if} /> + </td> + </tr> + <tr> + <td class="form"> + <label for="sitemycode">{tr}Content{/tr}:</label> + </td> + <td> + <textarea name="sitemycode" rows="6" cols="40" style="width: 90%" id="sitemycode">{$prefs.sitemycode|escape}</textarea> + <br /> + <small><em>{tr}Example{/tr}</em>: + {literal}{if $user neq ''}{/literal}<div align="right" style="float: right; font-size: 10px">{literal}{{/literal}tr}{tr}logged as{/tr}{literal}{/tr}{/literal}: {literal}{$user}{/literal}</div>{literal}{/if}{/literal} + </small> + </td> + </tr> + <tr> + <td class="form"> + <label for="sitemycode_publish">{tr}Publish{/tr}:</label> + </td> + <td> + <input type="checkbox" name="sitemycode_publish" id="sitemycode_publish"{if $prefs.sitemycode_publish eq 'y'} checked="checked"{/if} /> + </td> + </tr> + </table> + </fieldset> - <tr> - <td class="form"><label for="feature_sitesearch">{tr}Activate{/tr}:</label></td> - <td><input type="checkbox" name="feature_sitesearch" id="feature_sitesearch"{if $prefs.feature_sitesearch eq 'y'} checked="checked"{/if} /></td> - </tr> - - </table> - </fieldset> - {* --- Site Login Bar --- *} - <fieldset> - <legend><a href="#"><span>{tr}Site Login Bar{/tr}</span></a></legend> - <table class="admin"> - <tr> - <td class="form"><label for="feature_site_login">{tr}Activate{/tr}:</label></td> - <td><input type="checkbox" name="feature_site_login" id="feature_site_login"{if $prefs.feature_site_login eq 'y'} checked="checked"{/if} /></td> - </tr> - </table> - </fieldset> + {* --- Customize Site Logo and Site Titile--- *} + <fieldset> + <legend> + <a href="#"><span>{tr}Site Logo and Title{/tr}</span></a> + </legend> + <table class="admin"> + <tr> + <td class="form"> + <label for="feature_sitelogo">{tr}Activate{/tr}:</label> + </td> + <td> + <input type="checkbox" name="feature_sitelogo" id="feature_sitelogo"{if $prefs.feature_sitelogo eq 'y'} checked="checked"{/if} /> + </td> + </tr> + <tr> + <td class="form"> + <label for="sitelogo_src">{tr}Site logo source (image path){/tr}:</label> + </td> + <td> + <input type="text" name="sitelogo_src" id="sitelogo_src" value="{$prefs.sitelogo_src}" size="60" style="width: 90%" />i + </td> + </tr> + <tr> + <td class="form"> + <label for="sitelogo_bgcolor">{tr}Site logo background color{/tr}:</label> + </td> + <td> + <input type="text" name="sitelogo_bgcolor" id="sitelogo_bgcolor" value="{$prefs.sitelogo_bgcolor}" size="15" maxlength="15" /> + </td> + </tr> + <tr> + <td class="form"> + <label for="sitelogo_bgstyle">{tr}Site logo background style{/tr}:</label> + </td> + <td> + <input type="text" name="sitelogo_bgstyle" id="sitelogo_bgstyle" value="{$prefs.sitelogo_bgstyle}" /> + <br /> + <i>{tr}Example{/tr} silver url(myStyle/img.gif) repeat</i> + </td> + </tr> + <tr> + <td class="form"> + <label for="sitelogo_align">{tr}Site logo alignment{/tr}:</label> + </td> + <td> + <select name="sitelogo_align" id="sitelogo_align"> + <option value="left" {if $prefs.sitelogo_align eq 'left'}selected="selected"{/if}>{tr}on left side{/tr}</option> + <option value="center" {if $prefs.sitelogo_align eq 'center'}selected="selected"{/if}>{tr}on center{/tr}</option> + <option value="right" {if $prefs.sitelogo_align eq 'right'}selected="selected"{/if}>{tr}on right side{/tr}</option> + </select> + </td> + </tr> + <tr> + <td class="form"> + <label for="sitelogo_title">{tr}Site logo title (on mouse over){/tr}:</label> + </td> + <td> + <input type="text" name="sitelogo_title" id="sitelogo_title" value="{$prefs.sitelogo_title}" size="50" maxlength="50" /> + </td> + </tr> + <tr> + <td class="form"> + <label for="sitelogo_alt">{tr}Alt. description (e.g. for text browsers){/tr}:</label> + </td> + <td> + <input type="text" name="sitelogo_alt" id="sitelogo_alt" value="{$prefs.sitelogo_alt}" size="50" maxlength="50" /> + </td> + </tr> + <tr> + <td class="form"> + <label for="_sitetitle">{tr}Site title{/tr}:</label> + </td> + <td> + <input type="text" name="sitetitle" id="_sitetitle" value="{$prefs.sitetitle}" size="50" maxlength="50" /> + </td> + </tr> + <tr> + <td class="form"> + <label for="_sitesubtitle">{tr}Site subtitle{/tr}:</label> + </td> + <td> + <input type="text" name="sitesubtitle" id="_sitesubtitle" value="{$prefs.sitesubtitle}" size="50" maxlength="50" /> + </td> + </tr> + </table> + </fieldset> - {* --- Top Bar --- *} - <fieldset> - <legend><a href="#"><span><input type="checkbox" name="feature_top_bar" - {if $prefs.feature_top_bar eq 'y'}checked="checked"{/if}/> {tr}Top Bar{/tr}</span></a></legend> + {* --- Site Search Bar --- *} + <fieldset> + <legend> + <a href="#"><span>{tr}Site Search Bar{/tr}</span></a> + </legend> + <table class="admin"> + <tr> + <td class="form"> + <label for="feature_sitesearch">{tr}Activate{/tr}:</label> + </td> + <td> + <input type="checkbox" name="feature_sitesearch" id="feature_sitesearch"{if $prefs.feature_sitesearch eq 'y'} checked="checked"{/if} /> + </td> + </tr> + </table> + </fieldset> - <table class="admin"> + {* --- Site Login Bar --- *} + <fieldset> + <legend> + <a href="#"><span>{tr}Site Login Bar{/tr}</span></a> + </legend> + <table class="admin"> + <tr> + <td class="form"> + <label for="feature_site_login">{tr}Activate{/tr}:</label> + </td> + <td> + <input type="checkbox" name="feature_site_login" id="feature_site_login"{if $prefs.feature_site_login eq 'y'} checked="checked"{/if} /> + </td> + </tr> + </table> + </fieldset> - <tr> - <td class="form"><label for="feature_sitemenu">{tr}Site menu bar{/tr}:</label></td> - <td><input type="checkbox" name="feature_sitemenu" id="feature_sitemenu"{if $prefs.feature_sitemenu eq 'y'} checked="checked"{/if} />{tr}Note: This feature also requires PHPLayers to be turned on in {/tr}{tr}Admin{/tr} {$prefs.site_crumb_seper} {tr}Features{/tr}</td> - </tr> - <tr> - <td class="form"><label for="feature_topbar_id_menu">{tr}Menu ID{/tr}:</label></td> - <td><input type="text" name="feature_topbar_id_menu" id="feature_topbar_id_menu" value="{$prefs.feature_topbar_id_menu}" size="6" maxlength="6" /></td> - </tr> - <tr> - <td class="form"><label for="feature_topbar_version">{tr}Current Version{/tr}:</label></td> - <td><input type="checkbox" name="feature_topbar_version" id="feature_topbar_version"{if $prefs.feature_topbar_version eq 'y'} checked="checked"{/if} /></td> - </tr> - <tr> - <td class="form"><label for="feature_topbar_date">{tr}Date{/tr}:</label></td> - <td><input type="checkbox" name="feature_topbar_date" id="feature_topbar_date"{if $prefs.feature_topbar_date eq 'y'} checked="checked"{/if} /></td> - </tr> - <tr> - <td class="form"><label for="feature_topbar_debug">{tr}Debugger Console{/tr}:</label></td> - <td><input type="checkbox" name="feature_topbar_debug" id="feature_topbar_debug"{if $prefs.feature_topbar_debug eq 'y'} checked="checked"{/if} /></td> - </tr> - <tr> - <td class="form"><label for="feature_topbar_custom_code">{tr}Custom code{/tr}:</label></td> - <td><textarea name="feature_topbar_custom_code" id="feature_topbar_custom_code" rows="6" cols="40" style="width: 90%">{$prefs.feature_topbar_custom_code}</textarea></td> - </tr></table> -</fieldset> - - - </td> - - </tr> - <tr> - - <td><fieldset> - <legend><a href="#"><span>{if $prefs.feature_help eq 'y'}<a href="{$prefs.helpurl}Users+Flip+Columns" target="tikihelp" class="tikihelp" title="{tr}Users can Flip Columns{/tr}">{/if} - {tr}Left column{/tr}{if $prefs.feature_help eq 'y'}</a>{/if} - :</span></a></legend> - <select name="feature_left_column"> - <option value="y" {if $prefs.feature_left_column eq 'y'}selected="selected"{/if}>{tr}always{/tr}</option> - <option value="user" {if $prefs.feature_left_column eq 'user'}selected="selected"{/if}>{tr}user decides{/tr}</option> - <option value="n" {if $prefs.feature_left_column eq 'n'}selected="selected"{/if}>{tr}never{/tr}</option> - </select> -</fieldset> - </td><td class="form" colspan="3"> - - {* --- Site Breadcrumbs --- *} -<fieldset class="admin"> - <legend><a href="#"><span>{tr}Site Breadcrumbs{/tr}</span></a></legend> - <table class="admin"> + {* --- Top Bar --- *} + <fieldset> + <legend> + <a href="#"> + <span> + <input type="checkbox" name="feature_top_bar" {if $prefs.feature_top_bar eq 'y'}checked="checked"{/if}/> + {tr}Top Bar{/tr} + </span> + </a> + </legend> + <table class="admin"> + <tr> + <td class="form"> + <label for="feature_sitemenu">{tr}Site menu bar{/tr}:</label> + </td> + <td> + <input type="checkbox" name="feature_sitemenu" id="feature_sitemenu"{if $prefs.feature_sitemenu eq 'y'} checked="checked"{/if} /> + {tr}Note: This feature also requires PHPLayers to be turned on in {/tr}{tr}Admin{/tr} {$prefs.site_crumb_seper} {tr}Features{/tr} + </td> + </tr> + <tr> + <td class="form"> + <label for="feature_topbar_id_menu">{tr}Menu ID{/tr}:</label> + </td> + <td> + <input type="text" name="feature_topbar_id_menu" id="feature_topbar_id_menu" value="{$prefs.feature_topbar_id_menu}" size="6" maxlength="6" /> + </td> + </tr> + <tr> + <td class="form"> + <label for="feature_topbar_version">{tr}Current Version{/tr}:</label> + </td> + <td> + <input type="checkbox" name="feature_topbar_version" id="feature_topbar_version"{if $prefs.feature_topbar_version eq 'y'} checked="checked"{/if} /> + </td> + </tr> + <tr> + <td class="form"> + <label for="feature_topbar_date">{tr}Date{/tr}:</label> + </td> + <td> + <input type="checkbox" name="feature_topbar_date" id="feature_topbar_date"{if $prefs.feature_topbar_date eq 'y'} checked="checked"{/if} /> + </td> + </tr> + <tr> + <td class="form"> + <label for="feature_topbar_debug">{tr}Debugger Console{/tr}:</label> + </td> + <td> + <input type="checkbox" name="feature_topbar_debug" id="feature_topbar_debug"{if $prefs.feature_topbar_debug eq 'y'} checked="checked"{/if} /> + </td> + </tr> + <tr> + <td class="form"> + <label for="feature_topbar_custom_code">{tr}Custom code{/tr}:</label> + </td> + <td> + <textarea name="feature_topbar_custom_code" id="feature_topbar_custom_code" rows="6" cols="40" style="width: 90%">{$prefs.feature_topbar_custom_code}</textarea> + </td> + </tr> + </table> + </fieldset> + </td> + </tr> <tr> - <td class="form"><label for="feature_breadcrumbs">{tr}Activate{/tr}:</label></td> - <td><input type="checkbox" name="feature_breadcrumbs" id="feature_breadcrumbs"{if $prefs.feature_breadcrumbs eq 'y'} checked="checked"{/if} /></td> + <td> + <fieldset> + <legend> + <a href="#"><span> + {if $prefs.feature_help eq 'y'} + <a href="{$prefs.helpurl}Users+Flip+Columns" target="tikihelp" class="tikihelp" title="{tr}Users can Flip Columns{/tr}"> + {/if} + {tr}Left column{/tr}: + {if $prefs.feature_help eq 'y'}</a>{/if} + </span></a> + </legend> + <select name="feature_left_column"> + <option value="y" {if $prefs.feature_left_column eq 'y'}selected="selected"{/if}>{tr}always{/tr}</option> + <option value="user" {if $prefs.feature_left_column eq 'user'}selected="selected"{/if}>{tr}user decides{/tr}</option> + <option value="n" {if $prefs.feature_left_column eq 'n'}selected="selected"{/if}>{tr}never{/tr}</option> + </select> + </fieldset> + </td> + <td class="form" colspan="3"> + {* --- Site Breadcrumbs --- *} + <fieldset class="admin"> + <legend> + <a href="#"><span>{tr}Site Breadcrumbs{/tr}</span></a> + </legend> + <table class="admin"> + <tr> + <td class="form"> + <label for="feature_breadcrumbs">{tr}Activate{/tr}:</label> + </td> + <td> + <input type="checkbox" name="feature_breadcrumbs" id="feature_breadcrumbs"{if $prefs.feature_breadcrumbs eq 'y'} checked="checked"{/if} /> + </td> + </tr> + <tr> + <td class="form"> + <label for="feature_siteloc">{tr}Site location bar{/tr}:</label> + </td> + <td> + <select name="feature_siteloc" id="feature_siteloc"> + <option value="y" {if $prefs.feature_siteloc eq 'y'}selected="selected"{/if}>{tr}at top of page{/tr}</option> + <option value="page" {if $prefs.feature_siteloc eq 'page'}selected="selected"{/if}>{tr}at top of center column{/tr}</option> + <option value="n" {if $prefs.feature_siteloc eq 'n'}selected="selected"{/if}>{tr}none{/tr}</option> + </select> + </td> + </tr> + <tr> + <td class="form"> + <label for="feature_siteloclabel">{tr}Prefix breadcrumbs with 'Location : ' {/tr}</label> + </td> + <td> + <input type="checkbox" name="feature_siteloclabel" id="feature_siteloclabel"{if $prefs.feature_siteloclabel eq 'y'} checked="checked"{/if} /> + </td> + </tr> + <tr> + <td class="form"> + <label for="feature_sitetitle">{tr}Larger font for{/tr}:</label> + </td> + <td> + <select name="feature_sitetitle" id="feature_sitetitle"> + <option value="y" {if $prefs.feature_sitetitle eq 'y'}selected="selected"{/if}>{tr}entire location{/tr}</option> + <option value="title" {if $prefs.feature_sitetitle eq 'title'}selected="selected"{/if}>{tr}page name{/tr}</option> + <option value="n" {if $prefs.feature_sitetitle eq 'n'}selected="selected"{/if}>{tr}none{/tr}</option> + </select> + </td> + </tr> + <tr> + <td class="form"> + <label for="feature_sitedesc">{tr}Use page description:{/tr}</label> + </td> + <td> + <select name="feature_sitedesc" id="feature_sitedesc"> + <option value="y" {if $prefs.feature_sitedesc eq 'y'}selected="selected"{/if}>{tr}at top of page{/tr}</option> + <option value="page" {if $prefs.feature_sitedesc eq 'page'}selected="selected"{/if}>{tr}at top of center column{/tr}</option> + <option value="n" {if $prefs.feature_sitedesc eq 'n'}selected="selected"{/if}>{tr}none{/tr}</option> + </select> + </td> + </tr> + </table> + </fieldset> + </td> + <td class="form"> + <fieldset> + <legend> + <a href="#"><span> + {if $prefs.feature_help eq 'y'} + <a href="{$prefs.helpurl}Users+Flip+Columns" target="tikihelp" class="tikihelp" title="{tr}Users can Flip Columns{/tr}"> + {/if} + {tr}Right column{/tr}: + {if $prefs.feature_help eq 'y'}</a>{/if} + </span></a> + </legend> + <select name="feature_right_column"> + <option value="y" {if $prefs.feature_right_column eq 'y'}selected="selected"{/if}>{tr}always{/tr}</option> + <option value="user" {if $prefs.feature_right_column eq 'user'}selected="selected"{/if}>{tr}user decides{/tr}</option> + <option value="n" {if $prefs.feature_right_column eq 'n'}selected="selected"{/if}>{tr}never{/tr}</option> + </select> + </fieldset> + </td> </tr> + {* --- Site Report Bar --- *} <tr> - <td class="form"><label for="feature_siteloc">{tr}Site location bar{/tr}:</label></td> - <td><select name="feature_siteloc" id="feature_siteloc"> - <option value="y" {if $prefs.feature_siteloc eq 'y'}selected="selected"{/if}>{tr}at top of page{/tr}</option> - <option value="page" {if $prefs.feature_siteloc eq 'page'}selected="selected"{/if}>{tr}at top of center column{/tr}</option> - <option value="n" {if $prefs.feature_siteloc eq 'n'}selected="selected"{/if}>{tr}none{/tr}</option> - </select></td> + <td colspan="5"> + <fieldset> + <legend> + <a href="#"><span>{tr}Site Report Bar{/tr}</span></a> + </legend> + <table class="admin"> + <tr> + <td class="form"> + <label for="feature_site_report">{tr}Webmaster Report{/tr}:</label> + </td> + <td> + <input type="checkbox" name="feature_site_report" id="feature_site_report"{if $prefs.feature_site_report eq 'y'} checked="checked"{/if} /> + </td> + </tr> + <tr> + <td class="form"> + <label for="feature_site_report_email">{tr}Webmaster Email{/tr}:</label> + </td> + <td> + <input type="text" name="feature_site_report_email" id="feature_site_report_email" value="{$prefs.feature_site_report_email}" /> + <i>{tr}Left blank to use the default sender email{/tr}</i> + </td> + </tr> + <tr> + <td class="form"> + <label for="feature_site_send_link">{tr}Send a link{/tr}:</label> + </td> + <td> + <input type="checkbox" name="feature_site_send_link" id="feature_site_send_link"{if $prefs.feature_send_link eq 'y'} checked="checked"{/if} /> + </td> + </tr> + </table> + </fieldset> + </td> </tr> <tr> - <td class="form"><label for="feature_siteloclabel">{tr}Prefix breadcrumbs with 'Location : ' {/tr}</label></td> - <td><input type="checkbox" name="feature_siteloclabel" id="feature_siteloclabel"{if $prefs.feature_siteloclabel eq 'y'} checked="checked"{/if} /></td> + <td colspan="5"> + <fieldset> + <legend> + <a href="#"><span>{tr}Custom Site Footer{/tr}</span></a> + </legend> + <table class="admin"> + <tr> + <td class="form"> + <label for="feature_bot_logo">{tr}Activate{/tr}:</label> + </td> + <td> + <input type="checkbox" name="feature_bot_logo" id="feature_bot_logo"{if $prefs.feature_bot_logo eq 'y'} checked="checked"{/if} /> + </td> + </tr> + <tr> + <td class="form"> + <label for="bot_logo_code">{tr}Content{/tr}:</label> + </td> + <td> + <textarea id="bot_logo_code" name="bot_logo_code" rows="6" cols="40" style="width: 90%">{$prefs.bot_logo_code|escape}</textarea> + <br /> + <small><em>{tr}Example{/tr}</em>:<div style="text-align: center"><small>Powered by Tikiwiki</small></div></small> + </td> + </tr> + </table> + </fieldset> + </td> </tr> <tr> - <td class="form"><label for="feature_sitetitle">{tr}Larger font for{/tr}:</label></td> - <td><select name="feature_sitetitle" id="feature_sitetitle"> - <option value="y" {if $prefs.feature_sitetitle eq 'y'}selected="selected"{/if}>{tr}entire location{/tr}</option> - <option value="title" {if $prefs.feature_sitetitle eq 'title'}selected="selected"{/if}>{tr}page name{/tr}</option> - <option value="n" {if $prefs.feature_sitetitle eq 'n'}selected="selected"{/if}>{tr}none{/tr}</option> - </select></td> + <td colspan="5" class="form"> + <fieldset> + <legend> + <a href="#"><span><input type="checkbox" name="feature_bot_bar" {if $prefs.feature_bot_bar eq 'y'}checked="checked"{/if}/> {tr}Bottom bar{/tr}</span></a> + </legend> + {tr}Bottom bar icons{/tr} + <input type="checkbox" name="feature_bot_bar_icons" + {if $prefs.feature_bot_bar_icons eq 'y'}checked="checked"{/if}/> + | + {tr}Bottom bar debug{/tr} + <input type="checkbox" name="feature_bot_bar_debug" {if $prefs.feature_bot_bar_debug eq 'y'}checked="checked"{/if}/> + | + {tr}Bottom bar{/tr} (RSS) + <input type="checkbox" name="feature_bot_bar_rss" {if $prefs.feature_bot_bar_rss eq 'y'}checked="checked"{/if}/> + </fieldset> + </td> </tr> - <tr> - <td class="form"><label for="feature_sitedesc">{tr}Use page description:{/tr}</label></td> - <td><select name="feature_sitedesc" id="feature_sitedesc"> - <option value="y" {if $prefs.feature_sitedesc eq 'y'}selected="selected"{/if}>{tr}at top of page{/tr}</option> - <option value="page" {if $prefs.feature_sitedesc eq 'page'}selected="selected"{/if}>{tr}at top of center column{/tr}</option> - <option value="n" {if $prefs.feature_sitedesc eq 'n'}selected="selected"{/if}>{tr}none{/tr}</option> - </select></td> - </tr> - </table> - -</fieldset> -</td> - - - <td class="form"> - - - <fieldset> - <legend><a href="#"><span>{if $prefs.feature_help eq 'y'}<a href="{$prefs.helpurl}Users+Flip+Columns" target="tikihelp" class="tikihelp" title="{tr}Users can Flip Columns{/tr}">{/if} - {tr}Right column{/tr}{if $prefs.feature_help eq 'y'}</a>{/if} - :</span></a></legend> - <select name="feature_right_column"> - <option value="y" {if $prefs.feature_right_column eq 'y'}selected="selected"{/if}>{tr}always{/tr}</option> - <option value="user" {if $prefs.feature_right_column eq 'user'}selected="selected"{/if}>{tr}user decides{/tr}</option> - <option value="n" {if $prefs.feature_right_column eq 'n'}selected="selected"{/if}>{tr}never{/tr}</option> - </select> -</fieldset> - </td> - - </tr> - {* --- Site Report Bar --- *} - <tr> - <td colspan="5"> - <fieldset> - <legend><a href="#"><span>{tr}Site Report Bar{/tr}</span></a></legend> - <table class="admin"> - <tr> - <td class="form"><label for="feature_site_report">{tr}Webmaster Report{/tr}:</label></td> - <td><input type="checkbox" name="feature_site_report" id="feature_site_report"{if $prefs.feature_site_report eq 'y'} checked="checked"{/if} /></td> - </tr> - <tr> - <td class="form"><label for="feature_site_report_email">{tr}Webmaster Email{/tr}:</label></td> - <td><input type="text" name="feature_site_report_email" id="feature_site_report_email" value="{$prefs.feature_site_report_email}" /> <i>{tr}Left blank to use the default sender email{/tr}</i></td> - </tr> - <tr> - <td class="form"><label for="feature_site_send_link">{tr}Send a link{/tr}:</label></td> - <td><input type="checkbox" name="feature_site_send_link" id="feature_site_send_link"{if $prefs.feature_send_link eq 'y'} checked="checked"{/if} /></td> - </tr> - </table> - </fieldset> - </td></tr> - <tr><td colspan="5"> - <fieldset> - <legend><a href="#"><span>{tr}Custom Site Footer{/tr}</span></a></legend> - - <table class="admin"> <tr> - <td class="form"><label for="feature_bot_logo">{tr}Activate{/tr}:</label></td> - <td><input type="checkbox" name="feature_bot_logo" id="feature_bot_logo"{if $prefs.feature_bot_logo eq 'y'} checked="checked"{/if} /></td> + <td colspan="5" class="form"> + <fieldset> + <legend> + <a href="#"><span>{tr}Pagination links{/tr}</span></a> + </legend> + <input type="checkbox" name="nextprev_pagination" id="nextprev_pagination" {if $prefs.nextprev_pagination eq 'y'}checked="checked"{/if}/> + <label for="nextprev_pagination">{tr}Use relative (next / previous) pagination links{/tr}</label> + <hr /> + <input type="checkbox" name="direct_pagination" id="direct_pagination" {if $prefs.direct_pagination eq 'y'}checked="checked"{/if}/> + <label for="direct_pagination">{tr}Use direct pagination links{/tr}</label> + <div style="margin-left:20px"> + {tr}Max. number of links around the current item:{/tr}<input type="text" name="direct_pagination_max_middle_links" id="direct_pagination_max_middle_links" value="{$prefs.direct_pagination_max_middle_links}" size="4" /><br /> + {tr}Max. number of links after the first or before the last item:{/tr}<input type="text" name="direct_pagination_max_ending_links" id="direct_pagination_max_ending_links" value="{$prefs.direct_pagination_max_ending_links}" size="4" /> + </div> + <hr /> + <input type="checkbox" name="pagination_firstlast" id="pagination_firstlast" {if $prefs.pagination_firstlast eq 'y'}checked="checked"{/if}/> + <label for="pagination_firstlast">{tr}Display 'First' and 'Last' links{/tr}</label><br /> + <input type="checkbox" name="pagination_fastmove_links" id="pagination_fastmove_links" {if $prefs.pagination_fastmove_links eq 'y'}checked="checked"{/if}/> + <label for="pagination_fastmove_links">{tr}Display fast move links (by 10 percent of the total number of pages) {/tr}</label><br /> + <input type="checkbox" name="pagination_icons" id="pagination_icons" {if $prefs.pagination_icons eq 'y'}checked="checked"{/if}/> + <label for="pagination_icons">{tr}Use Icons{/tr}</label><br /> + </fieldset> + </td> </tr> - <tr> - <td class="form"><label for="bot_logo_code">{tr}Content{/tr}:</label></td> - <td><textarea name="bot_logo_code" rows="6" cols="40" style="width: 90%">{$prefs.bot_logo_code|escape}</textarea> - <br /> - <small><em>{tr}Example{/tr}</em>:<div style="text-align: center"><small>Powered by Tikiwiki</small></div></small></td> - </tr> - + <td class="form" colspan="5"> + <input type="checkbox" name="feature_menusfolderstyle" id="general-menu_folders" {if $prefs.feature_menusfolderstyle eq 'y'}checked="checked"{/if}/> + <label for="general-menu_folders">{tr}Display menus as folders{/tr}</label> + </td> + </tr> + <tr> + <td class="form" colspan="5"> + <input type="checkbox" name="feature_tabs" id="general-feature_tabs" {if $prefs.feature_tabs eq 'y'}checked="checked"{/if}/> + <label for="general-feature_tabs">{tr}Use Tabs{/tr}</label> + </td> + </tr> + <tr> + <td class="form" colspan="5"> + <div class="floatleft"> + <input type="checkbox" name="layout_section" id="general-layout_section" {if $prefs.layout_section eq 'y'}checked="checked"{/if}/> + <label for="general-layout_section">{tr}Layout per section{/tr}</label> + </div> + <div class="floatright"> + {if $prefs.layout_section eq 'y'} + <a href="tiki-admin_layout.php" class="linkbut link"> + {else} + <span class="linkbut disabled"> + {/if} + {tr}Admin layout per section{/tr} + {if $prefs.layout_section eq 'y'} + </a> + {else} + </span> + {/if} + </div> + <hr class="clear" /> + </td> + </tr> </table> -</fieldset></td> - </tr> - <tr><td colspan="5" class="form"> - <fieldset> - <legend><a href="#"><span><input type="checkbox" name="feature_bot_bar" - {if $prefs.feature_bot_bar eq 'y'}checked="checked"{/if}/> {tr}Bottom bar{/tr}</span></a></legend> - {tr}Bottom bar icons{/tr} <input type="checkbox" name="feature_bot_bar_icons" - {if $prefs.feature_bot_bar_icons eq 'y'}checked="checked"{/if}/> | {tr}Bottom bar debug{/tr} <input type="checkbox" name="feature_bot_bar_debug" - {if $prefs.feature_bot_bar_debug eq 'y'}checked="checked"{/if}/> | {tr}Bottom bar{/tr} (RSS) <input type="checkbox" name="feature_bot_bar_rss" - {if $prefs.feature_bot_bar_rss eq 'y'}checked="checked"{/if}/> - </fieldset> - </td> - </tr><tr> - <td colspan="5" class="form"> - <fieldset> - <legend><a href="#"><span>{tr}Pagination links{/tr}</span></a></legend> - <input type="checkbox" name="nextprev_pagination" id="nextprev_pagination" {if $prefs.nextprev_pagination eq 'y'}checked="checked"{/if}/> - <label for="nextprev_pagination">{tr}Use relative (next / previous) pagination links{/tr}</label> - <hr /> - <input type="checkbox" name="direct_pagination" id="direct_pagination" {if $prefs.direct_pagination eq 'y'}checked="checked"{/if}/> - <label for="direct_pagination">{tr}Use direct pagination links{/tr}</label> - <div style="margin-left:20px"> - {tr}Max. number of links around the current item:{/tr}<input type="text" name="direct_pagination_max_middle_links" id="direct_pagination_max_middle_links" value="{$prefs.direct_pagination_max_middle_links}" size="4" /><br /> - {tr}Max. number of links after the first or before the last item:{/tr}<input type="text" name="direct_pagination_max_ending_links" id="direct_pagination_max_ending_links" value="{$prefs.direct_pagination_max_ending_links}" size="4" /> - </div> - <hr /> - <input type="checkbox" name="pagination_firstlast" id="pagination_firstlast" {if $prefs.pagination_firstlast eq 'y'}checked="checked"{/if}/> - <label for="pagination_firstlast">{tr}Display 'First' and 'Last' links{/tr}</label><br /> - <input type="checkbox" name="pagination_fastmove_links" id="pagination_fastmove_links" {if $prefs.pagination_fastmove_links eq 'y'}checked="checked"{/if}/> - <label for="pagination_fastmove_links">{tr}Display fast move links (by 10 percent of the total number of pages) {/tr}</label><br /> - <input type="checkbox" name="pagination_icons" id="pagination_icons" {if $prefs.pagination_icons eq 'y'}checked="checked"{/if}/> - <label for="pagination_icons">{tr}Use Icons{/tr}</label><br /> - </fieldset> - </td> - </tr><tr> - <td class="form" colspan="5"><input type="checkbox" name="feature_menusfolderstyle" id="general-menu_folders" - {if $prefs.feature_menusfolderstyle eq 'y'}checked="checked"{/if}/> - <label for="general-menu_folders">{tr}Display menus as folders{/tr}</label> - </td> - </tr><tr> - <td class="form" colspan="5"><input type="checkbox" name="feature_tabs" id="general-feature_tabs" {if $prefs.feature_tabs eq 'y'}checked="checked"{/if}/> - <label for="general-feature_tabs">{tr}Use Tabs{/tr}</label> - </td> - </tr> - <tr> - <td class="form" colspan="5"> - <div class="floatleft"><input type="checkbox" name="layout_section" id="general-layout_section" {if $prefs.layout_section eq 'y'}checked="checked"{/if}/> - <label for="general-layout_section">{tr}Layout per section{/tr}</label></div> - <div class="floatright">{if $prefs.layout_section eq 'y'}<a href="tiki-admin_layout.php" class="linkbut link">{else}<span class="linkbut disabled">{/if}{tr}Admin layout per section{/tr}{if $prefs.layout_section eq 'y'}</a>{else}</span>{/if}</div> - <hr class="clear" /></td> - </tr> - - - </table> - {if $prefs.feature_tabs neq 'y'}</div>{/if} -</fieldset> + {if $prefs.feature_tabs neq 'y'}</div>{/if} + </fieldset> -<fieldset{if $prefs.feature_tabs eq 'y'} class="tabcontent" id="content{cycle name=content assign=focustab}{$focustab}"{/if}> - {if $prefs.feature_tabs neq 'y'}<legend class="heading" id="tab{cycle name=tabs advance=false assign=tabi}{$tabi}"><a href="#other" name="other" onclick="flip('other'); return false;"><span>{tr}Other options{/tr}</span></a></legend> - <div id="other" style="display:{if !isset($smarty.session.tiki_cookie_jar.show_other) and $smarty.session.tiki_cookie_jar.show_other neq 'y'}none{else}block{/if};">{/if} - <div class="form"><input type="checkbox" id="use_context_menu_icon" name="use_context_menu_icon" {if $prefs.use_context_menu_icon eq 'y'}checked="checked"{/if} /><label for="use_context_menu_icon">{tr}Use context menus for actions (icons) (only in file galleries yet){/tr}</label></div> - <div class="form"><input type="checkbox" id="use_context_menu_text" name="use_context_menu_text" {if $prefs.use_context_menu_text eq 'y'}checked="checked"{/if}/><label for="use_context_menu_text">{tr}Use context menus for actions (text) (only in file galleries yet){/tr}</label></div> - <div class="floatleft"><label for="site_favicon">{tr}Favicon icon file name:{/tr}</label></div> - <div class="floatright"><input type="text" name="site_favicon" id="site_favicon" value="{$prefs.site_favicon}" size="12" maxlength="32" /></div><br class="clear"/> - <div class="floatleft"><label for="site_favicon_type">{tr}Favicon icon MIME type:{/tr}</label></div> - <div class="floatright"><select name="site_favicon_type" id="site_favicon_type"> - <option value="image/png" {if $prefs.site_favicon_type eq 'image/png'}selected="selected"{/if}>{tr}image/png{/tr}</option> - <option value="image/bmp" {if $prefs.site_favicon_type eq 'image/bmp'}selected="selected"{/if}>{tr}image/bmp{/tr}</option> - <option value="image/x-icon" {if $prefs.site_favicon_type eq 'image/x-icon'}selected="selected"{/if}>{tr}image/x-icon{/tr}</option> - </select> - </div> - {if $prefs.feature_tabs neq 'y'}</div>{/if} -</fieldset> + <fieldset{if $prefs.feature_tabs eq 'y'} class="tabcontent" id="content{cycle name=content assign=focustab}{$focustab}"{/if}> + {if $prefs.feature_tabs neq 'y'} + <legend class="heading" id="tab{cycle name=tabs advance=false assign=tabi}{$tabi}"> + <a href="#other" name="other" onclick="flip('other'); return false;"> + <span>{tr}Other options{/tr}</span> + </a> + </legend> + <div id="other" style="display:{if !isset($smarty.session.tiki_cookie_jar.show_other) and $smarty.session.tiki_cookie_jar.show_other neq 'y'}none{else}block{/if};"> + {/if} + <div class="clear floatleft"> + <input type="checkbox" id="use_context_menu_icon" name="use_context_menu_icon" {if $prefs.use_context_menu_icon eq 'y'}checked="checked"{/if} /> + <label for="use_context_menu_icon">{tr}Use context menus for actions (icons) (only in file galleries yet){/tr}</label> + </div> + <div class="clear floatleft"> + <input type="checkbox" id="use_context_menu_text" name="use_context_menu_text" {if $prefs.use_context_menu_text eq 'y'}checked="checked"{/if}/> + <label for="use_context_menu_text">{tr}Use context menus for actions (text) (only in file galleries yet){/tr}</label> + </div> + <div class="clear floatleft"> + <label for="site_favicon">{tr}Favicon icon file name:{/tr}</label> + <input type="text" name="site_favicon" id="site_favicon" value="{$prefs.site_favicon}" size="12" maxlength="32" /> + </div> + <div class="clear floatleft"> + <label for="site_favicon_type">{tr}Favicon icon MIME type:{/tr}</label> + <select name="site_favicon_type" id="site_favicon_type"> + <option value="image/png" {if $prefs.site_favicon_type eq 'image/png'}selected="selected"{/if}>{tr}image/png{/tr}</option> + <option value="image/bmp" {if $prefs.site_favicon_type eq 'image/bmp'}selected="selected"{/if}>{tr}image/bmp{/tr}</option> + <option value="image/x-icon" {if $prefs.site_favicon_type eq 'image/x-icon'}selected="selected"{/if}>{tr}image/x-icon{/tr}</option> + </select> + </div> + {if $prefs.feature_tabs neq 'y'}</div>{/if} + </fieldset> <div class="button clear" style="text-align: center"><input type="submit" name="looksetup" value="{tr}Apply{/tr}" /></div> </form> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |