team_copy.php
来自「php网页设计」· PHP 代码 · 共 40 行
PHP
40 行
<?include "include/db.php";include "include/authenticate.php"; if (!checkperm("c")) {exit ("Permission denied.");}include "include/general.php";include "include/resource_functions.php";# Fetch user dataif (getval("from","")!="") { # Copy data $to=copy_resource(getvalescaped("from","")); if ($to===false) {$error=true;} else { redirect("edit.php?ref=" . $to); } }include "include/header.php";?><div class="BasicsBox"><h1><?=$lang["copyresource"]?></h1><p><?=text("introtext")?></p><form method=post><div class="Question"><label><?=$lang["resourceid"]?></label><input name="from" type="text" class="shrtwidth" value=""><? if (isset($error)) { ?><div class="FormError">!! <?=$lang["resourceidnotfound"]?> !!</div><? } ?><div class="clearerleft"> </div></div><div class="QuestionSubmit"><label for="buttons"> </label> <input name="save" type="submit" value=" <?=$lang["copyresource"]?> " /></div></form></div><? include "include/footer.php";?>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?