</form> <?php echo foot(); } elseif ($job == 'http2') { echo head(); $c->getdata(); $c->updateconfig('gzip', int); $c->updateconfig('gzcompression', int); $c->updateconfig('nocache', int); $c->updateconfig('cookie_prefix', str); $c->savedata(); ok('admin.php?action=settings&job=settings'); } elseif ($job == 'textprocessing') { $config = $gpc->prepare($config); if (!empty($_SERVER['HTTP_HOST']) && !empty($_SERVER['PHP_SELF'])) { $surl = "http://" . $_SERVER['HTTP_HOST'] . rtrim(viscacha_dirname($_SERVER['PHP_SELF']), '/\\') . '/images/smileys'; } else { $surl = "Unable to analyze URL."; } echo head(); ?> <form name="form" method="post" action="admin.php?action=settings&job=textprocessing2"> <table class="border" border="0" cellspacing="0" cellpadding="4" align="center"> <tr> <td class="obox" colspan="2"><b>BB-Code & Text processing</b></td> </tr> <tr> <td class="mbox" width="50%">Censor Texts:<br /> <span class="stext">Specify the words to censor <a href="admin.php?action=bbcodes&job=censor">here</a>. The extended censor is more accurate and can even find words that have their letters separated by spaces or other characters.</span></td> <td class="mbox" width="50%"> <input type="radio" name="censorstatus" value="0"<?php
function show() { $body = $this->showContent(false); $title = $this->realPath($_SERVER['HTTP_HOST'] . '/' . viscacha_dirname($this->script_file) . '/' . $this->path); $title = preg_replace("/^.*?\\/?([^\\/]+)\\/?\$/", "\\1", $title); echo $body; }
$temp = gzTempfile($file); $temp = realpath($temp); include 'classes/class.tar.php'; $tar = new tar(); $tar->new_tar(viscacha_dirname($temp), basename($temp)); $tar->extract_files(realpath($dir)); $err = $tar->error; $filesystem->unlink($temp); if (!empty($err)) { error($redirect, $err); } } elseif ($extension == 'tar') { include 'classes/class.tar.php'; $tar = new tar(); $file = realpath($file); $tar->new_tar(viscacha_dirname($file), basename($file)); $tar->extract_files($dir); } elseif ($extension == 'gz') { gzAbortNotLoaded(); $new = $dir . DIRECTORY_SEPARATOR . basename($file); $temp = gzTempfile($file, $new); } } if (!isset($extension)) { error($redirect, 'File is not an supported archive. (Failed at position: setting extension)'); } else { ok($redirect); } } else { $ServerNavigator->useImageIcons(true); $ServerNavigator->showSubfoldersSize(true);
include '../data/config.inc.php'; function getLangNameByPath($dir) { $file = realpath($dir) . DIRECTORY_SEPARATOR . 'settings.lng.php'; if (file_exists($file)) { include $file; if (!empty($lang['lang_name'])) { return $lang['lang_name']; } } return null; } if (empty($config['furl']) == false) { $furl = $config['furl']; } elseif (!empty($_SERVER['HTTP_HOST']) && !empty($_SERVER['PHP_SELF'])) { $source = rtrim(viscacha_dirname($_SERVER['PHP_SELF']), '/\\'); $pos = strrpos($source, '/'); if ($pos === false) { $pos = strrpos($source, '\\'); } if ($pos > 0) { $dest = substr($source, 0, $pos + 1); $furl = "http://" . $_SERVER['HTTP_HOST'] . rtrim($dest, '/\\'); } else { $furl = ''; } } else { $furl = ''; } if (empty($config['forenmail']) == false) { $email = $config['forenmail'];