Commit b6b9654e authored by pkdille's avatar pkdille

some code cleanup (zend rules) - seen on quality.tw.o

parent dc7fe88a
......@@ -51,7 +51,9 @@ switch ($_REQUEST["image_type"]) {
die;
}
$cachefile = $prefs['tmpDir'];
if ($tikidomain) { $cachefile.= "/$tikidomain"; }
if ($tikidomain) {
$cachefile .= "/$tikidomain";
}
$cachefile.= "/$image_cache_prefix.".$_REQUEST["id"];
// If "reload" parameter is set, recreate the cached image file from database values.
......
......@@ -29,7 +29,11 @@ require_once ('tiki-setup.php');
$access->check_feature('feature_banners');
$bannercachefile = $prefs['tmpDir'];
if ($tikidomain) { $bannercachefile.= "/$tikidomain"; }
if ($tikidomain) {
$bannercachefile .= "/$tikidomain";
}
$bannercachefile.= "/banner.". (int)$_REQUEST["id"];
if (is_file($bannercachefile) and (!isset($_REQUEST["reload"]))) {
......
......@@ -47,9 +47,9 @@ if ( isset($forum_mode) && $forum_mode == 'y' ) {
foreach ( $handled_requests as $request_name ) {
if ( empty($$request_name) && empty($_REQUEST[$request_name]) ) {
$$request_name = $prefs['forum_'.$request_name];
} elseif ( empty($$request_name) && !empty($_REQUEST[$request_name]) ) {
$$request_name = $_REQUEST[$request_name];
}
} elseif ( empty($$request_name) && !empty($_REQUEST[$request_name]) ) {
$$request_name = $_REQUEST[$request_name];
}
}
if ( $forum_info['is_flat'] == 'y' ) {
......
......@@ -113,7 +113,7 @@ if ( $re === false ) {
} else {
// we are in the installer don't redirect...
return ;
}
}
}
if ( $dbversion_tiki == '1.10' ) $dbversion_tiki = '2.0';
......
......@@ -29,12 +29,12 @@ switch ($data["which"]) {
case 'useHTML':
$raw = $data["HTMLData"];
break;
break;
case 'useImage':
$raw = "<img border=\"0\" src=\"banner_image.php?id=" . $id . "\" />";
break;
break;
case 'useFixedURL':
$fp = fopen($data["fixedURLData"], "r");
......@@ -48,11 +48,11 @@ case 'useFixedURL':
}
fclose ($fp);
break;
break;
case 'useText':
$raw = $data["textData"];
break;
break;
}
print ($raw);
......@@ -10,20 +10,20 @@
// mose@tikiwiki.org
require_once('tiki-setup.php');
if($tiki_p_admin != 'y') {
if ($prefs['feature_redirect_on_error'] == 'y') {
header('location: '.$prefs['tikiIndex']);
if ($tiki_p_admin != 'y') {
if ($prefs['feature_redirect_on_error'] == 'y') {
header('location: ' . $prefs['tikiIndex']);
die;
} else {
die("You need to be admin to run this script");
}
die('You need to be admin to run this script');
}
}
$logfile = 'temp/tiki_parsed.txt';
$logfilehtml = 'temp/tiki_parsed.html';
function collect($dir) {
global $dirs;
if (is_dir($dir) and is_dir("$dir/CVS")) {
if (is_dir($dir) and is_dir("$dir/CVS")) {
$list = file("$dir/CVS/Entries");
foreach ($list as $l) {
// if (count($dirs) > 20) return true;
......
......@@ -525,14 +525,14 @@ function important_step($msg, $increment_step = true, $commit_msg = false) {
switch ( strtolower($c) ) {
case 'y': case '':
$do_step = true;
break;
break;
case 'n':
info(">> Skipping step $step.");
$do_step = false;
break;
break;
case 'q':
die;
break;
break;
default:
if ( $c != '?' ) info(color(">> Unknown answer '$c'.", 'red'));
info(">> You have to type 'y' (Yes), 'n' (No) or 'q' (Quit) and press Enter.");
......
......@@ -12,7 +12,10 @@ require_once("lib/tikilib.php");
require_once("lib/categories/categlib.php");
require_once("lib/structures/structlib.php");
function tra($s) { return $s; }
function tra($s)
{
return $s;
}
$tikilib = new TikiLib;
......
......@@ -536,7 +536,7 @@ foreach( $files as $key=>$dummy )
if( $file['unsafeextract'] )
$unsafe[] = $file;
break;
break;
case 'public':
case 'include':
case 'script':
......@@ -552,7 +552,7 @@ foreach( $files as $key=>$dummy )
if( ! $file['noweb'] && ! $file['includeonly'] && ! count( $file['features'] ) && ! count( $file['permissions'] ) )
$unsafe[] = $file;
break;
break;
}
}
......@@ -623,13 +623,14 @@ $fileType = $fileRecord['type'];
</tbody>
</table>
<?php foreach($features as $featureKey => $featureValue) {
print "$featureKey :\n";
foreach ($featureValue as $file) {
print "<li>$file</li>";
}
print "<br/><br/>\n";
} ?>
<?php
foreach($features as $featureKey => $featureValue) {
print "$featureKey :\n";
foreach ($featureValue as $file) {
print "<li>$file</li>";
}
print "<br/><br/>\n";
} ?>
</body>
</html>
......
......@@ -36,13 +36,13 @@ if ($prefs['feature_freetags'] == 'y' and $tiki_p_view_freetags == 'y') {
}
}
if ($prefs['feature_wikiapproval'] == 'y' && $prefs['wikiapproval_combine_freetags'] == 'y'
if ($prefs['feature_wikiapproval'] == 'y' && $prefs['wikiapproval_combine_freetags'] == 'y'
&& $cat_type == 'wiki page' && $approved = $tikilib->get_approved_page($cat_objid)) {
// to combine tags from approved page
$approvedPageName = $approved;
$approvedTags = $freetaglib->get_tags_on_object($approvedPageName, $cat_type);
foreach($approvedTags['data'] as $approvedTag) {
if (!in_array($approvedTag['tag'],$tagarray)) {
if (!in_array($approvedTag['tag'],$tagarray)) {
$taglist .= $approvedTag['tag'] . ' ';
}
}
......
......@@ -112,4 +112,4 @@ $installer->query($query, array('tiki_p_modify_object_categories', 'tiki_p_edit_
// FINALLY: remove tiki_p_view_categorized and tiki_p_edit_categorized
// Not done yet - before we are sure with have all the mapping
}
}
<?php
// (c) Copyright 2002-2010 by authors of the Tiki Wiki/CMS/Groupware Project
//
//
// 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.
// $Id$
......@@ -28,7 +28,7 @@ $commands = array();
$prefs = array(
// tra() should not use $tikilib because this lib is not available in every steps of the installer
// and because we want to be sure that translations of the installer are the original ones, even for an upgrade
'lang_use_db' => 'n'
'lang_use_db' => 'n'
);
// Which step of the installer
......@@ -82,7 +82,7 @@ function write_local_php($dbb_tiki, $host_tiki, $user_tiki, $pass_tiki, $dbs_tik
if ($dbversion_tiki == 'current') {
require_once 'lib/setup/twversion.class.php';
$twversion = new TWVersion();
$dbversion_tiki = $twversion->getBaseVersion();
$dbversion_tiki = $twversion->getBaseVersion();
}
$filetowrite .= "\$dbversion_tiki='" . $dbversion_tiki . "';\n";
$filetowrite .= "\$host_tiki='" . $host_tiki . "';\n";
......@@ -123,7 +123,7 @@ function create_dirs($domain=''){
'whelp');
$ret = "";
foreach ($dirs as $dir) {
foreach ($dirs as $dir) {
$dir = $dir.'/'.$domain;
// Create directories as needed
if (!is_dir($dir)) {
......@@ -158,7 +158,9 @@ class Smarty_Tikiwiki_Installer extends Smarty
function Smarty_Tikiwiki_Installer($tikidomain) {
parent::Smarty();
if ($tikidomain) { $tikidomain.= '/'; }
if ($tikidomain) {
$tikidomain .= '/';
}
$this->template_dir = realpath('templates/');
$this->compile_dir = realpath("templates_c/$tikidomain");
$this->config_dir = realpath('configs/');
......@@ -555,9 +557,18 @@ if ($errors) {
//adodb settings
if (!defined('ADODB_FORCE_NULLS')) { define('ADODB_FORCE_NULLS', 1); }
if (!defined('ADODB_ASSOC_CASE')) { define('ADODB_ASSOC_CASE', 2); }
if (!defined('ADODB_CASE_ASSOC')) { define('ADODB_CASE_ASSOC', 2); } // typo in adodb's driver for sybase? // so do we even need this without sybase? What's this?
if (!defined('ADODB_FORCE_NULLS')) {
define('ADODB_FORCE_NULLS', 1);
}
if (!defined('ADODB_ASSOC_CASE')) {
define('ADODB_ASSOC_CASE', 2);
}
if (!defined('ADODB_CASE_ASSOC')) { // typo in adodb's driver for sybase? // so do we even need this without sybase? What's this?
define('ADODB_CASE_ASSOC', 2);
}
include_once ('lib/adodb/adodb.inc.php');
include('lib/tikilib.php');
......@@ -784,7 +795,7 @@ $smarty->assign('metatag_robots', 'NOINDEX, NOFOLLOW');
$email_test_tw = 'mailtest@tikiwiki.org';
$smarty->assign('email_test_tw', $email_test_tw);
// Sytem requirements test.
// Sytem requirements test.
if ($install_step == '2') {
if (isset($_REQUEST['perform_mail_test']) && $_REQUEST['perform_mail_test'] == 'y') {
......@@ -861,12 +872,13 @@ if ($install_step == '2') {
if ($im) {
$smarty->assign('sample_image', 'y');
imagedestroy($im);
} else{
} else {
$smarty->assign('sample_image', 'n');
}
} else {
$gd_test = 'n'; }
} else {
$gd_test = 'n';
}
$smarty->assign('gd_test', $gd_test);
} elseif ($install_step == 6 && !empty($_REQUEST['validPatches'])) {
foreach ($_REQUEST['validPatches'] as $patch) {
......
......@@ -159,11 +159,12 @@ class ArtLib extends TikiLib
$machine = $tikilib->httpPrefix( true ). $foo['path'];
$smarty->assign('mail_machine', $machine);
$parts = explode('/', $foo['path']);
if (count($parts) > 1)
if (count($parts) > 1) {
unset ($parts[count($parts) - 1]);
$smarty->assign('mail_machine_raw', $tikilib->httpPrefix( true ) . implode('/', $parts));
sendEmailNotification($nots, 'watch', 'user_watch_article_post_subject.tpl', $_SERVER['SERVER_NAME'], 'user_watch_article_post.tpl');
}
$smarty->assign('mail_machine_raw', $tikilib->httpPrefix( true ) . implode('/', $parts));
sendEmailNotification($nots, 'watch', 'user_watch_article_post_subject.tpl', $_SERVER['SERVER_NAME'], 'user_watch_article_post.tpl');
}
return true;
}
......@@ -565,18 +566,19 @@ class ArtLib extends TikiLib
$machine = $tikilib->httpPrefix( true ). $foo['path'];
$smarty->assign('mail_machine', $machine);
$parts = explode('/', $foo['path']);
if (count($parts) > 1)
if (count($parts) > 1) {
unset ($parts[count($parts) - 1]);
$smarty->assign('mail_machine_raw', $tikilib->httpPrefix( true ). implode('/', $parts));
sendEmailNotification($nots, 'watch', 'user_watch_article_post_subject.tpl', $_SERVER['SERVER_NAME'], 'user_watch_article_post.tpl');
if (is_array($emails) && !empty($from) && $from != $prefs['sender_email']) {
$nots = array();
foreach ($emails as $n) {
$nots[] = array('email' => $n);
}
sendEmailNotification($nots, 'watch', 'user_watch_article_post_subject.tpl', $_SERVER['SERVER_NAME'], 'user_watch_article_post.tpl', $from);
}
}
$smarty->assign('mail_machine_raw', $tikilib->httpPrefix( true ). implode('/', $parts));
sendEmailNotification($nots, 'watch', 'user_watch_article_post_subject.tpl', $_SERVER['SERVER_NAME'], 'user_watch_article_post.tpl');
if (is_array($emails) && !empty($from) && $from != $prefs['sender_email']) {
$nots = array();
foreach ($emails as $n) {
$nots[] = array('email' => $n);
}
sendEmailNotification($nots, 'watch', 'user_watch_article_post_subject.tpl', $_SERVER['SERVER_NAME'], 'user_watch_article_post.tpl', $from);
}
}
if ( $prefs['feature_search'] == 'y' && $prefs['feature_search_fulltext'] != 'y' && $prefs['search_refresh_index_mode'] == 'normal' ) {
......@@ -737,25 +739,119 @@ class ArtLib extends TikiLib
, $creator_edit
)
{
if ($use_ratings == 'on') {$use_ratings = 'y';} else {$use_ratings = 'n';}
if ($show_pre_publ == 'on') {$show_pre_publ = 'y';} else {$show_pre_publ = 'n';}
if ($show_post_expire == 'on') {$show_post_expire = 'y';} else {$show_post_expire = 'n';}
if ($heading_only == 'on') {$heading_only = 'y';} else {$heading_only = 'n';}
if ($allow_comments == 'on') {$allow_comments = 'y';} else {$allow_comments = 'n';}
if ($comment_can_rate_article == 'on') {$comment_can_rate_article = 'y';} else {$comment_can_rate_article = 'n';}
if ($show_image == 'on') {$show_image = 'y';} else {$show_image = 'n';}
if ($show_avatar == 'on') {$show_avatar = 'y';} else {$show_avatar = 'n';}
if ($show_author == 'on') {$show_author = 'y';} else {$show_author = 'n';}
if ($show_pubdate == 'on') {$show_pubdate = 'y';} else {$show_pubdate = 'n';}
if ($show_expdate == 'on') {$show_expdate = 'y';} else {$show_expdate = 'n';}
if ($show_reads == 'on') {$show_reads = 'y';} else {$show_reads = 'n';}
if ($show_size == 'on') {$show_size = 'y';} else {$show_size = 'n';}
if ($show_topline == 'on') {$show_topline = 'y';} else {$show_topline = 'n';}
if ($show_subtitle == 'on') {$show_subtitle = 'y';} else {$show_subtitle = 'n';}
if ($show_linkto == 'on') {$show_linkto = 'y';} else {$show_linkto = 'n';}
if ($show_image_caption == 'on') {$show_image_caption = 'y';} else {$show_image_caption = 'n';}
if ($show_lang == 'on') {$show_lang = 'y';} else {$show_lang = 'n';}
if ($creator_edit == 'on') {$creator_edit = 'y';} else {$creator_edit = 'n';}
if ($use_ratings == 'on') {
$use_ratings = 'y';
} else {
$use_ratings = 'n';
}
if ($show_pre_publ == 'on') {
$show_pre_publ = 'y';
} else {
$show_pre_publ = 'n';
}
if ($show_post_expire == 'on') {
$show_post_expire = 'y';
} else {
$show_post_expire = 'n';
}
if ($heading_only == 'on') {
$heading_only = 'y';
} else {
$heading_only = 'n';
}
if ($allow_comments == 'on') {
$allow_comments = 'y';
} else {
$allow_comments = 'n';
}
if ($comment_can_rate_article == 'on') {
$comment_can_rate_article = 'y';
} else {
$comment_can_rate_article = 'n';
}
if ($show_image == 'on') {
$show_image = 'y';
} else {
$show_image = 'n';
}
if ($show_avatar == 'on') {
$show_avatar = 'y';
} else {
$show_avatar = 'n';
}
if ($show_author == 'on') {
$show_author = 'y';
} else {
$show_author = 'n';
}
if ($show_pubdate == 'on') {
$show_pubdate = 'y';
} else {
$show_pubdate = 'n';
}
if ($show_expdate == 'on') {
$show_expdate = 'y';
} else {
$show_expdate = 'n';
}
if ($show_reads == 'on') {
$show_reads = 'y';
} else {
$show_reads = 'n';
}
if ($show_size == 'on') {
$show_size = 'y';
} else {
$show_size = 'n';
}
if ($show_topline == 'on') {
$show_topline = 'y';
} else {
$show_topline = 'n';
}
if ($show_subtitle == 'on')
{
$show_subtitle = 'y';
} else {
$show_subtitle = 'n';
}
if ($show_linkto == 'on') {
$show_linkto = 'y';
} else {
$show_linkto = 'n';
}
if ($show_image_caption == 'on') {
$show_image_caption = 'y';
} else {
$show_image_caption = 'n';
}
if ($show_lang == 'on') {
$show_lang = 'y';
} else {
$show_lang = 'n';
}
if ($creator_edit == 'on') {
$creator_edit = 'y';
} else {
$creator_edit = 'n';
}
$query = "update `tiki_article_types` set
`use_ratings` = ?,
`show_pre_publ` = ?,
......@@ -969,22 +1065,24 @@ class ArtLib extends TikiLib
switch ($image_type) {
case 'article':
$image_cache_prefix = 'article';
break;
break;
case 'submission':
$image_cache_prefix = 'article_submission';
break;
break;
case 'preview':
$image_cache_prefix = 'article_preview';
break;
break;
default:
return false;
}
$article_image_cache = $prefs['tmpDir'];
if ($tikidomain) { $article_image_cache.= "/$tikidomain"; }
if ($tikidomain) {
$article_image_cache .= "/$tikidomain";
}
$article_image_cache .= "/$image_cache_prefix.".$imageId;
if ( @unlink($article_image_cache) ) {
return true;
}else{
} else {
return false;
}
}
......
This diff is collapsed.
......@@ -14,7 +14,8 @@ if (strpos($_SERVER["SCRIPT_NAME"],basename(__FILE__)) !== false) {
class BannerLib extends TikiLib
{
function select_banner_id($zone) {
function select_banner_id($zone)
{
$map = array(0=>'sun', 1=>'mon', 2=>'tue', 3=>'wed', 4=>'thu', 5=>'fri', 6=>'sat');
$dw = $map[$this->date_format("%w")];
......@@ -57,7 +58,8 @@ class BannerLib extends TikiLib
}
function select_banner($zone, $target='_blank', $id='') {
function select_banner($zone, $target='_blank', $id='')
{
global $prefs, $tikilib;
// Things to check
......@@ -78,21 +80,24 @@ class BannerLib extends TikiLib
case 'useHTML':
$raw = $res["HTMLData"];
break;
break;
case 'useFlash':
if ($prefs['javascript_enabled'] == 'y') {
global $headerlib; include_once('lib/headerlib.php');
$headerlib->add_jsfile( 'lib/swfobject/swfobject.js' );
}
$raw = $tikilib->embed_flash(unserialize($res['HTMLData']));
break;
break;
case 'useImage':
$raw
= "<div class='banner $class'><a target='$target' href='banner_click.php?id=" . $res["bannerId"] . "&amp;url=" . urlencode($res["url"]). "'><img alt='banner' border='0' src=\"banner_image.php?id=" . $res["bannerId"] . "\" /></a></div>";
= "<div class='banner $class'><a target='$target' href='banner_click.php?id="
. $res["bannerId"] . "&amp;url=" . urlencode($res["url"])
. "'><img alt='banner' border='0' src=\"banner_image.php?id="
. $res["bannerId"] . "\" /></a></div>";
break;
break;
case 'useFixedURL':
@$fp = fopen($res["fixedURLData"], "r");
......@@ -106,13 +111,14 @@ class BannerLib extends TikiLib
fclose ($fp);
}
break;
break;
case 'useText':
$raw = "<a target='$target' class='bannertext' href='banner_click.php?id=" . $res["bannerId"] . "&amp;url=" . urlencode(
$res["url"]). "'>" . $res["textData"] . "</a>";
$raw = "<a target='$target' class='bannertext' href='banner_click.php?id=" . $res["bannerId"]
. "&amp;url=" . urlencode($res["url"]) . "'>"
. $res["textData"] . "</a>";
break;
break;
}
// Increment banner impressions done in select_banner_id()
......@@ -131,13 +137,15 @@ class BannerLib extends TikiLib
return $raw;
}
function add_click($bannerId) {
function add_click($bannerId)
{
$query = "update `tiki_banners` set `clicks` = `clicks` + 1 where `bannerId`=?";
$result = $this->query($query,array((int)$bannerId));
}
function list_banners($offset = 0, $maxRecords = -1, $sort_mode = 'created_desc', $find = '', $user) {
function list_banners($offset = 0, $maxRecords = -1, $sort_mode = 'created_desc', $find = '', $user)
{
if ($user == 'admin') {
$mid = '';
$bindvars=array();
......@@ -174,7 +182,8 @@ class BannerLib extends TikiLib
return $retval;
}
function list_zones() {
function list_zones()
{
$query = "select `zone` from `tiki_zones`";
$query_cant = "select count(*) from `tiki_zones`";
......@@ -192,13 +201,15 @@ class BannerLib extends TikiLib
return $retval;
}
function remove_banner($bannerId) {
function remove_banner($bannerId)
{
$query = "delete from `tiki_banners` where `bannerId`=?";
$result = $this->query($query,array($bannerId));
}
function get_banner($bannerId) {
function get_banner($bannerId)
{
$query = "select * from `tiki_banners` where `bannerId`=?";
$result = $this->query($query,array($bannerId));
......@@ -211,8 +222,9 @@ class BannerLib extends TikiLib
}
function replace_banner($bannerId, $client, $url, $title = '', $alt = '', $use, $imageData, $imageType, $imageName, $HTMLData,
$fixedURLData, $textData, $fromDate, $toDate, $useDates, $mon, $tue, $wed, $thu, $fri, $sat, $sun, $hourFrom, $hourTo,
$maxImpressions, $maxClicks,$zone,$maxUserImpressions=-1) {
$fixedURLData, $textData, $fromDate, $toDate, $useDates, $mon, $tue, $wed, $thu, $fri, $sat, $sun, $hourFrom, $hourTo,
$maxImpressions, $maxClicks,$zone,$maxUserImpressions=-1
) {
$imageData = urldecode($imageData);
//$imageData = '';
......@@ -248,7 +260,9 @@ class BannerLib extends TikiLib
/* invalid cache */
global $tikilib, $tikidomain, $prefs;
$bannercachefile = $prefs['tmpDir'];
if ($tikidomain) { $bannercachefile.= "/$tikidomain"; }
if ($tikidomain) {
$bannercachefile .= "/$tikidomain";
}
$bannercachefile.= "/banner.".(int)$bannerId;
unlink($bannercachefile);
} else {
......@@ -272,7 +286,8 @@ class BannerLib extends TikiLib
return $bannerId;
}
function banner_add_zone($zone) {
function banner_add_zone($zone)
{
$query = "delete from `tiki_zones` where `zone`=?";
$this->query($query,array($zone),-1,-1,false);
$query = "insert into `tiki_zones`(`zone`) values(?)";
......@@ -280,7 +295,8 @@ class BannerLib extends TikiLib
return true;
}
function banner_get_zones() {
function banner_get_zones()
{
$query = "select * from `tiki_zones`";
$result = $this->query($query,array());
......@@ -293,7 +309,8 @@ class BannerLib extends TikiLib
return $ret;
}
function banner_remove_zone($zone) {
function banner_remove_zone($zone)
{
$query = "delete from `tiki_zones` where `zone`=?";
$result = $this->query($query,array($zone));
......
This diff is collapsed.
......@@ -81,28 +81,42 @@ class Cachelib
$this->erase_dir_content("temp/cache/$tikidomain");
$this->erase_dir_content("modules/cache/$tikidomain");
$this->flush_opcode_cache();
if (is_object($tikilib)) { $tikilib->set_lastUpdatePrefs(); }
if (is_object($logslib)) { $logslib->add_log( $log_section, 'erased all cache content'); }
if (is_object($tikilib)) {
$tikilib->set_lastUpdatePrefs();
}
if (is_object($logslib)) {
$logslib->add_log( $log_section, 'erased all cache content');
}
}
if (in_array( 'templates_c', $dir_names )) {
$this->erase_dir_content("templates_c/$tikidomain");
$this->flush_opcode_cache();
if (is_object($logslib)) { $logslib->add_log( $log_section, 'erased templates_c content' ); }
if (is_object($logslib)) {
$logslib->add_log( $log_section, 'erased templates_c content' );
}
}
if (in_array( 'temp_cache', $dir_names)) {
$this->erase_dir_content("temp/cache/$tikidomain");
if (is_object($logslib)) { $logslib->add_log( $log_section, 'erased temp/cache content' ); }
if (is_object($logslib)) {
$logslib->add_log( $log_section, 'erased temp/cache content' );
}
}
if (in_array( 'temp_public', $dir_names)) {
$this->erase_dir_content("temp/public/$tikidomain");
if (is_object($logslib)) { $logslib->add_log( $log_section, 'erased temp/public content' ); }
if (is_object($logslib)) {
$logslib->add_log( $log_section, 'erased temp/public content' );
}
}
if (in_array( 'modules_cache', $dir_names)) {
$this->erase_dir_content("modules/cache/$tikidomain");
if (is_object($logslib)) { $logslib->add_log( $log_section, 'erased modules/cache content' ); }
if (is_object($logslib)) {
$logslib->add_log( $log_section, 'erased modules/cache content' );
}
}
if (in_array( 'prefs', $dir_names)) {
if (is_object($tikilib)) { $tikilib->set_lastUpdatePrefs(); }
if (is_object($tikilib)) {
$tikilib->set_lastUpdatePrefs();
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please