1 Star 0 Fork 6

夜雨纷飞 / p2_plan_team

forked from 焦虑的羽毛 / p2_plan_team 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
manageimport.php 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
programcj 提交于 2019-12-28 20:44 . 原始文件
<?php
require("init.php");
$action = getArrayVal($_GET, "action");
$mainclasses = array("desktop" => "desktop",
"profil" => "profil",
"admin" => "admin_active"
);
$template->assign("mainclasses", $mainclasses);
//check if the user is admin
if (!$userpermissions["admin"]["add"])
{
$errtxt = $langfile["nopermission"];
$noperm = $langfile["accessdenied"];
$template->assign("errortext", "$errtxt<br>$noperm");
$template->display("error.tpl");
}
//basecamp import
if ($action == "basecamp")
{
// create new file object
$myfile = new datei();
// create new importer object
$importer = new importer();
// upload the file
$up = $myfile->upload("importfile", "files/" . CL_CONFIG . "/ics", 0);
if ($up)
{
$importer->importBasecampXmlFile(CL_ROOT . "/files/" . CL_CONFIG . "/ics/$up");
}
//delete the imported file
unlink(CL_ROOT . "/files/" . CL_CONFIG . "/ics/$up");
$loc = $url . "admin.php?action=system&mode=imported&msg=$importer->msgCount&peop=$importer->peopleCount&pro=$importer->projectCount&tsk=$importer->taskCount";
header("Location: $loc");
}
?>
PHP
1
https://gitee.com/xuganlin/p2_plan_team.git
git@gitee.com:xuganlin/p2_plan_team.git
xuganlin
p2_plan_team
p2_plan_team
1.4

搜索帮助