$smarty->assign('isIE', $isIE); $showIeMsg = false; if ($isIE) { if (!isset($_COOKIE['ieMsgSeen']) || !$_COOKIE['ieMsgSeen']) { $showIeMsg = true; setcookie('ieMsgSeen', 1, time() + 60 * 60 * 24 * 7); } } global $style; $style = $prefs['style']; $smarty->assign('style', $style); $smarty->assign('showIeMsg', $showIeMsg); $smarty->assign('showTeste', preg_match('/teste\\.estudioli.re\\.org/', $ownurl)); //TODO descobrir pq precisa dessa bosta aqui pra traducao funcionar tra(''); TikiSetup::prependIncludePath('lib/elgal/model'); // TODO: Fazer ieGIF2PNG q substitui o {if $isIE}gif{else}png{/if} $styleDir = str_replace('.css', '', $prefs['style']); $smarty->assign('styleDir', $styleDir); $headerlib->add_cssfile("styles/{$styleDir}/css/tooltip.css"); $headerlib->add_cssfile("styles/{$styleDir}/css/lightbox.css"); if ($isIE) { $headerlib->add_cssfile("styles/{$styleDir}/css/ie.css"); } $headerlib->add_jsfile('lib/ajax/tiki-ajax.js'); $headerlib->add_jsfile('lib/js/general.js'); $headerlib->add_jsfile('lib/js/toggleImage.js'); $headerlib->add_jsfile('lib/js/tooltip.js'); $headerlib->add_jsfile('lib/elgal/player/cortado.js'); $headerlib->add_jsfile('lib/js/lightbox.js'); $headerlib->add_jsfile('lib/js/busca.js');
$httpd_conf = $m[1] . '/' . $httpd_conf; } ob_end_clean(); print "\n<html><body>\n<h2><font color='red'>TikiWiki is not properly set up:</font></h1>\n<pre>\n{$errors}\n"; if ($tikidomain) { $install_link = '?multi=' . urlencode($tikidomain); } if (!TikiSetup::isWindows()) { print "You may either chmod the directories above manually to 777, or run one of the sets of commands below.\n<b><a href='tiki-install.php{$install_link}'>Proceed to the Tiki installer</a></b> after you run the commands below.\n\nIf you cannot become root, and are NOT part of the group {$wwwgroup}:\n \$ bash\n \$ cd {$docroot}\n \$ chmod +x setup.sh\n \$ ./setup.sh yourlogin yourgroup 02777\n Tip: You can find your group using the command 'id'.\n\nIf you cannot become root, but are a member of the group {$wwwgroup}:\n \$ bash\n \$ cd {$docroot}\n \$ chmod +x setup.sh\n \$ ./setup.sh mylogin {$wwwgroup}</i>\n\nIf you can become root:\n \$ bash\n \$ cd {$docroot}\n \$ chmod +x setup.sh\n \$ su -c './setup.sh {$wwwuser}'\n\nIf you have problems accessing a directory, check the open_basedir entry in\n{$PHP_CONFIG_FILE_PATH}/php.ini or {$httpd_conf}.\n\nOnce you have executed these commands, this message will disappear!\n\nNote: If you cannot become root, you will not be able to delete certain\nfiles created by apache, and will need to ask your system administrator\nto delete them for you if needed.\n\n<a href='http://tikiwiki.org/InstallTiki' target='_blank'>Consult the tikiwiki.org installation guide</a> if you need more help.\n\n<b><a href='tiki-install.php'>Proceed to the Tiki installer</a></b> if you've completed the steps above.\n</pre></body></html>"; } exit; } } } TikiSetup::prependIncludePath('lib'); TikiSetup::prependIncludePath('lib/pear'); $tmpDir = TikiInit::tempdir(); class timer { function parseMicro($micro) { list($micro, $sec) = explode(' ', microtime()); return $sec + $micro; } function start($timer = 'default', $restart = FALSE) { if (isset($this->timer[$timer]) && !$restart) { // report error - timer already exists } $this->timer[$timer] = $this->parseMicro(microtime()); }