【首发】零度LEP3.3分销系统开源对接插件
零度LEP3.3分销系统开源来啦~仅供学习研究,请勿倒卖等可耻行为。
若侵犯了作者的权益请私信我。550090076@qq.com
零度LEP分销系统-已更新至3.3版本-自主开发-全网领先
1.全新采用Thinkphp框架开发,全网首发
2.拥有对接全网EP分销的功能【对接云屋没毛病】
3 .前台后台全新UI 拒绝EPD传统UI
4.微博QQ登录 方便快捷
5.邮箱注册,手机号注册[暂未开放]
6.该有的多有 懒得写了
1.1版本更新记录:
1.后台在线更新,无需手动替换文件
2.EPD数据库一键转换LEP数据库
3.测试站功能,修改信息后自动发送给站长
4.该有的都有了 懒得写了
代码预览
<?php function Jason_ConfigOptions() { return array( '空间大小' => array('Type' => 'text','Size' => '5','Description' => 'MB'), '数据库大小' => array('Type' => 'text','Size' => '5','Description' => 'MB'), '绑定域名数' => array('Type' => 'text','Size' => '5','Description' => '个,-1为无限'), '绑定子目录数' => array('Type' => 'text','Size' => '5','Description' => '个,0为无限'), '流量限制' => array('Type' => 'text','Size' => '5','Description' => 'GB/月'), '产品类型' => array('Type' => 'text','Size' => '5','Description' => '0为虚拟主机,1为CDN'), '端口(可留空)' => array('Type' => 'text','Size' => '5','Description' => '多个端口由,分开,ssl端口请加s,如80,443s') ); } function Jason_AdminLink($params) { $act = 'adminlink'; $data = array( 'apiurl' => isset($params['product_id']) ? $params['serverdomain'] : $params['serverhostname'], 'username' => $params['serverusername'], 'userkey' => $params['serverpassword'] ); $result = GetCloud($act, $data); $str = '<span class="btn btn-success btn-xs">' . $result['msg'] . '</span>'; if($result['code'] != 1)$str = '<span class="btn btn-danger btn-xs">' . $result['msg'] . '</span>'; return $str; } function Jason_CheckName($params) { if (!preg_match('/^[a-z0-9][a-z0-9_]{3,16}$/', $params['username']))return 'failed'; return 'success'; } function Jason_ClientArea($params) { if(isset($params['configoption25'])){ $str1 = '<ui><form action="http://' . $params["serverip"] . ':3312/vhost/index.php?c=session&a=login" method="post" target="_blank"><input type="hidden" name="username" value="' . $params['username'] . '" /><input type="hidden" name="passwd" value="' . $params['password'] . '" /><input type="submit" class="btn btn-success btn-block" value="直接登录(自定义密码无效)"/></form>'; $str2 = '<a href="http://' . $params["serverip"] . ':3312/vhost/?c=session&a=login" target="_blank" class="btn btn-primary btn-block">打开登录地址</a>'; return array($str1, $str2); } else { $str = '<body onLoad="document.Jason.submit()"><form action="http://' . $params['serverip'] . ':3312/vhost/?c=session&a=login" method="POST" name="Jason"><input name="username" value="' . $params['username'] . '" hidden><input name="passwd" value="' . $params['password'] . '" hidden></form></body>'; exit($str); } } function Jason_CreateAccount($params) { if (!$params['configoption6'] && ($params['configoption1'] == NULL || $params['configoption2'] == NULL)) return '容量设置错误'; $act = 'createaccount'; $data = array( 'apiurl' => isset($params['product_id']) ? $params['serverdomain'] : $params['serverhostname'], 'username' => $params['serverusername'], "userkey" => $params['serverpassword'], 'apiip' => $params['serverip'], 'hostname' => $params['username'], 'hostpwd' => $params['password'], 'hostdomain' => $params['domain'], 'hostlimit' => $params['configoption1'], 'dblimit' => $params['configoption2'], 'domainlimit' => $params['configoption3'], 'dirlimit' => $params['configoption4'], 'flowlimit' => $params['configoption5'], 'hosttype' => $params['configoption6'], 'prot' => $params['configoption7'] ); $result = GetCloud($act, $data); $str = 'success'; if(isset($params['configoption25']))$str = '成功'; if($result['code'] != 1)$str = $result['msg']; return $str; } function Jason_changepassword($params) { $act = 'changepassword'; $data = array( 'apiurl' => isset($params['product_id']) ? $params['serverdomain'] : $params['serverhostname'], 'username' => $params['serverusername'], "userkey" => $params['serverpassword'], 'apiip' => $params['serverip'], 'hostname' => $params['username'], 'hostpwd' => $params['password'] ); $result = GetCloud($act, $data); $str = 'success'; if(isset($params['configoption25']))$str = '成功'; if($result['code'] != 1)$str = $result['msg']; return $str; } function Jason_TerminateAccount($params) { $act = 'terminateaccount'; $data = array( 'apiurl' => isset($params['product_id']) ? $params['serverdomain'] : $params['serverhostname'], 'username' => $params['serverusername'], "userkey" => $params['serverpassword'], 'apiip' => $params['serverip'], 'hostname' => $params['username'] ); $result = GetCloud($act, $data); $str = 'success'; if(isset($params['configoption25']))$str = '成功'; if($result['code'] != 1)$str = $result['msg']; return $str; } function Jason_SuspendAccount($params) { $act = 'suspendaccount'; $data = array( 'apiurl' => isset($params['product_id']) ? $params['serverdomain'] : $params['serverhostname'], 'username' => $params['serverusername'], "userkey" => $params['serverpassword'], 'apiip' => $params['serverip'], 'hostname' => $params['username'], 'hoststate' => 1 ); $result = GetCloud($act, $data); $str = 'success'; if(isset($params['configoption25']))$str = '成功'; if($result['code'] != 1)$str = $result['msg']; return $str; } function Jason_UnsuspendAccount($params) { $act = 'suspendaccount'; $data = array( 'apiurl' => isset($params['product_id']) ? $params['serverdomain'] : $params['serverhostname'], 'username' => $params['serverusername'], "userkey" => $params['serverpassword'], 'apiip' => $params['serverip'], 'hostname' => $params['username'], 'hoststate' => 0 ); $result = GetCloud($act, $data); $str = 'success'; if(isset($params['configoption25']))$str = '成功'; if($result['code'] != 1)$str = $result['msg']; return $str; } function GetCloud($act, $data){ $apiurl = $data['apiurl']; unset($data['apiurl']); $url = $apiurl . '?act=' . $act; foreach ($data as $k => $v) { $url .= '&' . $k . '=' . $v; } return json_decode(file_get_contents($url), TRUE); } ?>
[CommShow]
https://vience.lanzoui.com/igNcerkr8if
[/CommShow]
发表评论