本文整理汇总了PHP中UploadHandler::Save方法的典型用法代码示例。如果您正苦于以下问题:PHP UploadHandler::Save方法的具体用法?PHP UploadHandler::Save怎么用?PHP UploadHandler::Save使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类UploadHandler
的用法示例。
在下文中一共展示了UploadHandler::Save方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: UploadHandler
$res["reason"] = "Failed To Update Module";
}
}
} else {
$res['result'] = false;
$res["reason"] = "U have no power !";
}
} else {
$res['result'] = false;
$res['reason'] = "Can't find Module ID:!" . $m_id;
}
}
if ($op == "add") {
if ($author_id === $_SESSION['user_info']['id']) {
$upload = new UploadHandler();
$res = $upload->Save($file, "js");
$module->m_name = $m_name;
$module->m_info = $m_info;
$module->default_config = "";
$module->risk = $risk;
$module->author_id = $author_id;
$module->m_id = $m_id;
$module->category_id = $category_id;
if ($res["result"]) {
$module->m_path = $res["reason"];
$new_m_id = $module->addModule();
if ($new_m_id) {
$res["result"] = true;
$res["reason"] = $clientPage . "?m_id=" . $new_m_id;
$log->warn("Add Module Success, User:" . $_SESSION['user_info']['username'] . " ADDR:" . $_SERVER["REMOTE_ADDR"]);
} else {