' : '
";
}
} else {
echo 'Kategori smile tidak ada !!
';
}
echo '
Total: ' . $total . '
';
if ($total > $kmess) {
echo '
' . pagenav('smile.php?act=cat&id=' . $id . '&', $start, $total, $kmess) . '
';
echo '
';
}
echo '
Ke Kategori smile
';
break;
case 'adm':
if ($rights < 1) {
echo 'Kesalahan !
Ke Kategori smile';
require_once('../incfiles/end.php');
exit;
}
echo '
Smile: untuk administrasi
';
$array = array();
$dir = opendir('../smileys/admin');
while ($file = readdir($dir)) {
if (($file != '.') && ($file != "..") && ($file != "name.dat") && ($file != ".svn") && ($file != "index.php")) {
$array[] = $file;
}
}
closedir($dir);
$total = count($array);
if ($total > 0) {
$end = $start + $kmess;
if ($end > $total)
$end = $total;
for ($i = $start; $i < $end; $i++) {
$smile = preg_replace('#^(.*?).(gif|jpg|png)$#isU', '$1', $array[$i], 1);
echo is_integer($i / 2) ? '
' : '
";
}
} else {
echo 'Kategori smile tidak ada !
';
}
echo '
Total: ' . $total . '
';
if ($total > $kmess) {
echo '
' . pagenav('smile.php?act=adm&', $start, $total, $kmess) . '
';
echo '
';
}
echo '
Ke Kategori smile
';
break;
default:
if (empty($_SESSION['refsm'])) {
$_SESSION['refsm'] = htmlspecialchars($_SERVER['HTTP_REFERER']);
}
echo '
Kategori smile
';
$dir = glob($rootpath . 'smileys/user/*', GLOB_ONLYDIR);
$total_dir = count($dir);
for ($i = 0; $i < $total_dir; $i++) {
echo is_integer($i / 2) ? '
' : '
';
}
if ($rights >= 1) {
echo '';
}
echo '';
break;
}
require_once('../incfiles/end.php');
?>