加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
myprojects.php 772 Bytes
一键复制 编辑 原始数据 按行查看 历史
programcj 提交于 2019-12-28 20:44 . 原始文件
<?php
include("init.php");
if (!isset($_SESSION["userid"]))
{
$template->assign("loginerror", 0);
$template->display("login.tpl");
die();
}
$project = new project();
$user = new user();
$myprojects = $project->getMyProjects($userid);
$oldprojects = $project->getMyProjects($userid, 0);
$pnum = count($myprojects) + count($oldprojects);
$users = $user->getAllUsers(1000000);
$template->assign("users", $users);
$title = $langfile["myprojects"];
$template->assign("title", $title);
$template->assign("projectnum",$pnum);
$template->assign("myprojects", $myprojects);
$template->assign("oldprojects", $oldprojects);
$clientobj = new client();
$template->assign("add_enabled", $clientobj->enabledAddProjects($userid));
$template->display("myprojects.tpl");
?>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化