Beispiel #1
0
if ($user == $u) {
    $navbar .= "<font face=verdana size=1> | </font>";
    //    $navbar .= "<font face=verdana size=1> | <a href=\"$PHP_SELF?name=admin&file=filemanager\">logout</a></font>";
}
if ($back) {
    $pathext = substr($pathext, 0, -1);
    $slashpos = strrpos($pathext, "/");
    if ($slashpos == 0) {
        $pathext = "";
    } else {
        $pathext = substr($pathext, 0, $slashpos + 1);
    }
}
/*  Rename item was select / create form */
if (($user == $u || $user == "") && $rename) {
    $filemanager = renform();
} elseif (($user == $u || $user == "") && $createfile) {
    $filemanager = newfileedit();
} elseif (($user == $u || $user == "") && $edit) {
    $filemanager = ascedit($edit);
} elseif (($user == $u || $user == "") && $cpmv) {
    $filemanager = cpmvform($cpmv);
} elseif ($action == 'viewascii') {
    $filemanager = viewascii();
} elseif ($action == 'view') {
    $filemanager = viewimage();
} elseif (($user == $u || $user == "") && !$loginfailed) {
    /* if the save button was pressed on the edit screen */
    if ($save) {
        $newcontent = stripslashes($newcontent);
        $fp = @fopen($path . $pathext . $savefile, "w");
Beispiel #2
0
    foreach ($tab as $item_id => $item_name) {
        if ($item_name != "") {
            $form->addItem($item_id, $item_name);
        }
    }
    echo $form->render();
}
switch ($op) {
    case "addform":
        addform();
        break;
    case "cloneform":
        cloneform();
        break;
    case "renform":
        renform();
        break;
    case "modform":
        modform();
        break;
    case "delform":
        delform();
        break;
    case "showform":
        showform();
        break;
    case "permform":
        permform();
        break;
}
include 'footer.php';