} else { if ($commandItem['command'] == 'install') { if (!$commandItem['name']) { helpInstall(); exit(1); } } else { if (in_array($commandItem['command'], array('list'))) { } else { if ($commandItem['command'] == 'help') { helpHelp(); exit(1); } else { if ($commandItem['command'] == 'delete') { if (!$commandItem['name']) { helpDelete(); exit(1); } } else { help(); exit(1); } } } } } } } } } }
$description = safeString($_POST['content']); } if ($description == "") { array_push($errors, 'FAQ Answer can not be blank'); } if (count($errors) == 0) { createSupportArticleItem($session->generateSessionToken(), $etitle, $description, 1); $title = 'Successfully Created New Article'; $done = true; } } break; case "deletefaq": $fids = explode(":", $_GET['fids']); foreach ($fids as $fid) { helpDelete($fid); } break; case "faqpublish": $fids = explode(":", $_GET['fids']); foreach ($fids as $fid) { helpPublish($fid); } break; case "passreset": $uids = explode(":", $_GET['uids']); foreach ($uids as $uid) { resetPass($uid); } break; case "migratetime":