1 Star 0 Fork 26

austin / lesscreator

forked from eryx / lesscreator 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
proj.php 705 Bytes
一键复制 编辑 原始数据 按行查看 历史
<?php
class lesscreator_proj
{
public static function path($proj)
{
if (substr($proj, 0, 1) == '/') {
$path = $proj;
} else {
$path = PROJROOT_DIR ."/". $proj;
}
return preg_replace("/\/+/", "/", rtrim($path, '/'));
}
public static function info($proj)
{
$path = self::path($proj) ."/lcproject.json";
$rs = lesscreator_fs::FsFileGet($path);
if ($rs->status != 200) {
return false;
}
$info = json_decode($rs->data->body, true);
if (!isset($info['projid'])) {
return false;
}
return $info;
}
}
1
https://gitee.com/cubic/lesscreator.git
git@gitee.com:cubic/lesscreator.git
cubic
lesscreator
lesscreator
master

搜索帮助