Commit bd760e55 by 冷斌

init

parent 233855e4
<?php
header("Content-type: text/html; charset=utf-8");
//清文件缓存
$dirs = array('./_runtime/');
//清理缓存
foreach($dirs as $value) {
rmdirr($value);
echo "<div style='border:2px solid green; background:#f1f1f1; padding:20px;margin:20px auto;width:800px;font-weight:bold;color:green;text-align:center;'>\"".$value."\" 成功清除缓存! </div> <br /><br />";
}
@mkdir('_runtime',0777,true);
function rmdirr($dirname) {
if (!file_exists($dirname)) {
return false;
}
if (is_file($dirname) || is_link($dirname)) {
return unlink($dirname);
}
$dir = dir($dirname);
if($dir){
while (false !== $entry = $dir->read()) {
if ($entry == '.' || $entry == '..') {
continue;
}
rmdirr($dirname . DIRECTORY_SEPARATOR . $entry);
}
}
$dir->close();
return rmdir($dirname);
}
function U(){
return false;
}
?>
\ No newline at end of file
{
"name": "eduline/el3-plus",
"description": "eduline-plus",
"require": {
"overtrue/wechat": "~3.1",
"qiniu/php-sdk": "^7.2",
"phpoffice/phpspreadsheet": "^1.1",
"aliyuncs/oss-sdk-php": "^2.3",
"phpoffice/phpword": "^0.16.0",
"baidubce/bce-sdk-php": "0.8.22",
"nelexa/zip": "^3.1",
"obs/esdk-obs-php": "^3.1",
"alibabacloud/client": "^1.5"
},
"repositories": {
"packagist": {
"type": "composer",
"url": "https://php.cnpkg.org"
}
}
}
This diff is collapsed. Click to expand it.
<?php
/*
* 游客访问的黑/白名单,不需要开放的,可以注释掉
* 应用的游客配置,转移到apps/app_name/Conf/access.inc.php下
* 此处只配置不能后台修改的项目
*/
return [
"access" => [
'page/Index/index' => true, // 自定义页面
'basic/Widget/*' => true,
],
'validate' => [
'widget/Upload/save',
'home/User/doAddVideo',
'home/User/doAddLive',
'home/User/doteacherDeatil',
'home/User/doAddTeacherCourse',
]
];
<?php
/**
* 定义扩展的命令
* Martinsun<syh@sunyonghong.com>
*/
// 根命名空间
$base_namespace = 'Console';
return [
$base_namespace . '\Crond',
$base_namespace . '\Padding',
];
<?php
return array(
'DB_TYPE' => 'mysql', // 数据库类型
'DB_HOST' => 'mysql', // 数据库服务器地址
'DB_NAME' => 'eduline', // 数据库名
'DB_USER' => 'eduline', // 数据库用户名
'DB_PWD' => 'pMGwgu686GanCz93', // 数据库密码
'DB_PORT' => '3306', // 数据库端口
'DB_PREFIX' => 'el_', // 数据库表前缀(因为漫游的原因,数据库表前缀必须写在本文件)
'DB_CHARSET' => 'utf8', // 数据库编码
'SECURE_CODE' => '193535e65fe78b8790', // 数据加密密钥
'COOKIE_PREFIX' => 'el_', // COOKIE前缀
'APP_DEBUG' => true, //网站调试模式
'API_NOT_ENCRYPT' => false, //API加密调试模式,开启后,所有API返回数据将不会加密
'API_DEBUG' => false, //API调试模式
'APP_PAGE_LOG' => false, //页面日志加载信息
);
<?php
/**
* 定义计划任务
* Martinsun<syh@sunyonghong.com>
*/
return [
// 计划任务时间解析配置
'crond_time' => [
'*', /*每分钟*/
'*:i', /*每小时 某分*/
'H:i', /*每天 某时:某分*/
'@-w H:i', /*每周-某天 某时:某分 0=周日*/
'*-d H:i', /*每月-某天 某时:某分*/
'm-d H:i', /*某月-某日 某时-某分*/
'Y-m-d H:i', /*某年-某月-某日 某时-某分*/
],
// 计划任务配置
'crond' => [
// 每分钟执行的计划任务
'*' => [
// 添加发送邮件/短信/平台的队列任务
'Job\notify\Check',
// 每分钟检测消息通知队列,如果不存在,每隔1秒检测一次,超过3秒未加入任务,则退出
'cmd::queue:listen --queue=notify --sleep=1 --tries=0 --timeout=null --sleeptime=3',
// 每分钟检测消息通知队列,如果不存在,每隔10秒检测一次,超过3秒未加入任务,则退出
'cmd::queue:listen --queue=sys_notify --sleep=10 --tries=0 --timeout=null --sleeptime=3',
// 监听是否有默认的队列任务
// 'cmd::queue:work --queue=default --sleep=3 --tries=0',
],
// 每小时执行
'*:00' => [
'Job\order\Invalid', // 处理订单失效任务
'Job\assemble\Check', // 处理拼团失败退款任务
],
],
];
<?php
/*
* Eduline升级配置
*
* @var array
**/
return array(
'VERSION' => '4.3.0', // # Eduline 版本
'UPURL' => 'https://demo.51eduline.com/upgrade/entry.php', // # 升级地址
);
<?php
return [
// 自动加载命名空间 格式: 根命名 => 对应的路径目录
'AUTOLOAD_NAMESPACE' => [
'App' => APPS_PATH,
'Library' => ADDON_PATH . DS . 'library',
'Model' => ADDON_PATH . DS . 'model',
'Plugin' => ADDON_PATH . DS . 'plugin',
'Widget' => ADDON_PATH . DS . 'widget',
'Job' => ADDON_PATH . DS . 'job',
'Console' => ADDON_PATH . DS .'console',
],
];
<?php
return array(
/**
* 路由的key必须写全称. 比如: 使用'wap/Index/index', 而非'wap'.
*/
'router' => array(
//一级导航
'classroom/Index/index' => SITE_URL.'/',//首页
'admin/Index/index' => SITE_URL.'/admin.html',//后台首页
'admin/Public/login' => SITE_URL.'/admin/login.html',//后台首页
'course/Album/index' => SITE_URL.'/album.html',//班级
'course/Video/index' => SITE_URL.'/course.html',//课程
'live/Index/index' => SITE_URL.'/live.html',//直播
'school/Index/index' => SITE_URL.'/school.html',//机构
'classroom/Teacher/index' => SITE_URL.'/teacher.html',//讲师
'mall/Goods/index' => SITE_URL.'/mall.html',//积分商城
'wenda/Index/index' => SITE_URL.'/question.html',//问答
'exams/Index/index' => SITE_URL.'/exam.html',//考试
'group/Index/index' => SITE_URL.'/group.html',//小组
'news/Topic/index' => SITE_URL.'/news.html',//资讯
'classroom/Library/index' => SITE_URL.'/library.html',//文库
'course/LineClass/index' => SITE_URL.'/lineclass.html',//线下课
'classroom/Vip/index' => SITE_URL.'/vip.html',//vip
'classroom/CardReceipt/index' => SITE_URL.'/card_receipt/[tab].html',//卡券领取页
//登录/注册
'basic/Passport/login' => SITE_URL.'/login.html',
'basic/Passport/reg' => SITE_URL.'/register.html',
'home/Repwd/index' => SITE_URL.'/repwd.html',
//课程详情
'course/Video/view' => SITE_URL.'/course/[id].html',
'course/Video/watch' => SITE_URL.'/course/watch/[id]_[s_id].html',
'course/PayVideo/coupon' => SITE_URL.'/course/coupon/[id].html',
//直播详情
'live/Index/view' => SITE_URL.'/live/[id].html',
'live/Index/watch' => SITE_URL.'/live/watch/[id].html',
'live/Index/live_teacher' => SITE_URL.'/live/teacher/[id].html',
'live/Index/getLivePlayback' => SITE_URL.'/live/playback/[id]_[type]_[ac].html',
//线下课详情
'course/LineClass/view' => SITE_URL.'/lineclass/[id].html',
//考试详情
'exam/Index/exam' => SITE_URL.'/exams/[id].html',
'exam/UserExam/exam_info' => SITE_URL.'/exams/report/[exam_id]/[paper_id].html',
//机构详情
'school/User/index' => SITE_URL.'/school/set_info.html',
'school/User/setInfo' => SITE_URL.'/school/authentication.html',
'school/User/mount' => SITE_URL.'/school/mount.html',
'school/User/domainName' => SITE_URL.'/school/domain_name.html',
'school/User/finance' => SITE_URL.'/school/finance.html',
'school/User/advertising' => SITE_URL.'/school/advertising.html',
//讲师详情
'classroom/Teacher/view' => SITE_URL.'/teacher/[id].html',
'classroom/Teacher/about' => SITE_URL.'/teacher/index/[id].html',
'classroom/Teacher/course' => SITE_URL.'/teacher/[type]/[id].html',
'classroom/Teacher/review' => SITE_URL.'/teacher/review/[id].html',
'classroom/Teacher/follow' => SITE_URL.'/teacher/follow/[id].html',
//积分商城
'mall/Goods/view' => SITE_URL.'/mall/[id].html',
//资讯详情
'news/Topic/view' => SITE_URL.'/news/[id].html',
//问答详情
'wenda/Index/detail' => SITE_URL.'/question/[id].html',
'wenda/Index/index$' => SITE_URL.'/question/type/[wdtype].html',
'wenda/Index/classifywd' => SITE_URL.'/question/[type]/[tpid]/[wdtype].html',
'wenda/Index/addWenda' => SITE_URL.'/question/add.html',
//管理中心
'home/User/index' => SITE_URL.'/my/index.html',
'home/User/setInfo' => SITE_URL.'/my/set_up/[tab].html',
'home/User/authTeacher' => SITE_URL.'/my/certified_teacher.html',
'home/Home/course' => SITE_URL.'/my/course.html',
'home/Home/live' => SITE_URL.'/my/live.html',
'home/Home/album' => SITE_URL.'/my/album.html',
'home/Home/classes' => SITE_URL.'/my/classes.html',
'home/Home/share' => SITE_URL.'/my/share.html',
'home/Home/group' => SITE_URL.'/my/group.html',
'home/Home/courseLine' => SITE_URL.'/my/lineclass.html',
'home/Home/wenda' => SITE_URL.'/my/question.html',
'home/Home/wenti' => SITE_URL.'/my/put_question.html',
'home/Home/review' => SITE_URL.'/my/comment.html',
'home/Home/note' => SITE_URL.'/my/note.html',
'home/Home/follow' => SITE_URL.'/my/follow.html',
'home/Home/collect' => SITE_URL.'/my/collect.html',
'home/Home/learn' => SITE_URL.'/my/learn.html',
'home/Home/teacher_course' => SITE_URL.'/my/arrange_course.html',
'home/User/teacherVideo' => SITE_URL.'/my/upload.html',
'home/User/uploadVideo' => SITE_URL.'/my/upload_course.html',
'home/User/recharge' => SITE_URL.'/my/recharge.html',
'home/User/account' => SITE_URL.'/my/account.html',
'home/User/credit' => SITE_URL.'/my/credit.html',
'home/User/spilt' => SITE_URL.'/my/spilt.html',
'home/User/card' => SITE_URL.'/my/bank_card.html',
'home/User/alipay' => SITE_URL.'/my/alipay.html',
'home/User/videoCoupon' => SITE_URL.'/my/card_coupons.html',
'home/User/discount' => SITE_URL.'/my/discount.html',
'home/User/vipCard' => SITE_URL.'/my/vip_card.html',
'home/User/rechargeCard' => SITE_URL.'/my/recharge_card.html',
'home/User/courseCard' => SITE_URL.'/my/course_card.html',
'home/User/exchangeCard' => SITE_URL.'/my/recardco.html',
'home/Home/order' => SITE_URL.'/my/order.html',
'home/User/address' => SITE_URL.'/my/address.html',
'home/Home/exams' => SITE_URL.'/my/exams.html',
'home/User/teacherDeatil' => SITE_URL.'/my/teacher_info.html',
'home/User/updateArticle' => SITE_URL.'/my/upload_articles.html',
'home/User/checkDeatil' => SITE_URL.'/my/article_info/[id].html',
'home/User/updateDetails' => SITE_URL.'/my/upload_experience.html',
//个人首页
'home/UserShow/index' => SITE_URL.'/user/index/[uid].html',
'home/UserShow/course' => SITE_URL.'/user/course/[uid].html',
'home/UserShow/live' => SITE_URL.'/user/live/[uid].html',
'home/UserShow/group' => SITE_URL.'/user/group/[uid].html',
'home/UserShow/question' => SITE_URL.'/user/question/[uid].html',
'home/UserShow/wenda' => SITE_URL.'/user/wenda/[uid].html',
'home/UserShow/note' => SITE_URL.'/user/note/[uid].html',
'home/UserShow/fans' => SITE_URL.'/user/fans/[uid].html',
'home/UserShow/follow' => SITE_URL.'/user/follow/[uid].html',
//消息
'basic/Message/index' => SITE_URL.'/message/index.html',
'basic/Message/comment' => SITE_URL.'/message/comment.html',
'basic/Message/notify' => SITE_URL.'/message/notify.html',
'basic/Message/detail' => SITE_URL.'/message/reply/[id]_[type].html',
//单页
'basic/Single/info' => SITE_URL.'/single/[id].html',
'basic/Single/indie' => SITE_URL.'/indie/[ie].html',
//app下载
'home/Index/appdownload' => SITE_URL.'/appdownload.html',
//第三方登录
'basic/Widget/displayAddons' => SITE_URL.'/login_callback/[type]/[addon]/[hook].html',
//结算页-(点、直、班级、线下)
'course/PayVideo/index' => SITE_URL.'/pay/[vst].html',
//3g版发现
'classroom/Index/find' => SITE_URL.'/find.html',
//结算页-购买商品
'mall/Goods/pay' => SITE_URL.'/pay/mall_[vst].html',
//cc视频上传
'basic/Public/ccUpload' => SITE_URL.'/cc/upload.html',
'basic/Public/notify' => SITE_URL.'/cc/notify.html',
//结算页-购买考试
'exams/Index/pay' => SITE_URL.'/pay/exams_[vst].html',
)
);
\ No newline at end of file
indexer
{
mem_limit = 128000000
}
searchd
{
listen = 3312
listen = 9306:mysql41
log = /xampp/coreseek/var/log/searchd.log
query_log = /xampp/coreseek/var/log/query.log
pid_file = /xampp/coreseek/var/log/searchd.pid
read_timeout = 3
max_children = 30
max_matches = 1000
seamless_rotate = 1
preopen_indexes = 0
unlink_old = 1
}
# forum topic & post index #
source ts_forum_post
{
type = mysql
sql_host = 10.88.48.174
sql_user = 3ms_beta
sql_pass = xsw2XSW@
sql_db = forum_beta
sql_port = 3306
sql_query_pre = SET NAMES utf8
sql_query_range = SELECT min(pid),max(pid) FROM ts_forum_post
sql_range_step = 1000
sql_query = SELECT a.pid, \
20 as indexid, \
a.uid, \
a.maskId, \
crc32(a.maskName) as maskCode, \
a.cTime, \
-1 as gid, \
a.fid as cid, \
-1 as inside, \
istopic as ext1, \
a.title, \
a.content \
FROM ts_forum_post as a,ts_forum_topic as b \
WHERE b.isdel=0 AND a.isdel=0 AND a.tid=b.tid AND a.pid>=$start AND a.pid<=$end
sql_attr_uint = indexid
sql_attr_uint = uid
sql_attr_uint = maskId
sql_attr_uint = maskCode
sql_attr_timestamp = cTime
sql_attr_uint = gid
sql_attr_uint = cid
sql_attr_uint = inside
sql_attr_uint = ext1
}
index ts_forum_post
{
source = ts_forum_post
path = /xampp/coreseek/var/data/ts_forum_post
docinfo = extern
html_strip = 1
html_index_attrs = img=alt,title; a=title;
html_remove_elements = style, script
min_word_len = 2
charset_dictpath = /xampp/coreseek/etc/
charset_type = zh_cn.utf-8
}
\ No newline at end of file
<?php
define('UC_SYNC', 0);
define('UC_CONNECT', 'mysql');
define('UC_DBHOST', 'localhost');
define('UC_DBUSER', 'root');
define('UC_DBPW', '');
define('UC_DBNAME', 'ucenter');
define('UC_DBCHARSET', 'utf8');
define('UC_DBTABLEPRE', '`ucenter`.uc_');
define('UC_DBCONNECT', '0');
define('UC_KEY', '6q0A6h970l57129LbX4R7xdddq0je1dFacfC4H7J9F8P1sdd454Hcv476ybb4r4s');
define('UC_API', 'http://www1.ucenter.com');
define('UC_CHARSET', 'utf-8');
define('UC_IP', '');
define('UC_APPID', '1');
define('UC_PPP', '20');
\ No newline at end of file
#!/bin/sh
. /etc/profile
. /root/.bash_profile
# cd path
cd `dirname $0`
# 执行计划任务
php eduline crond
chown -R www:www ./_runtime
# 监听处理视频队列进程是否存活
ps -fe|grep 'php eduline queue:listen --name v4-single --queue video' |grep -v grep
if [ $? -ne 0 ]
then
php eduline queue:listen --name v4-single --queue 'video' --sleep 5 --memory 128 --timeout null
fi
# 监听处理上传队列进程是否存活
ps -fe|grep 'php eduline queue:listen --name v4-single --queue upload' |grep -v grep
if [ $? -ne 0 ]
then
php eduline queue:listen --name v4-single --queue 'upload' --sleep 10 --memory 128 --timeout null
fi
@echo off
rem 定义需监控程序的进程名和程序路径,可根据需要进行修改
set QueueVideoName=EdulineQueueVideo.exe
set QueueUploadName=EdulineQueueUpload.exe
set AppPath=%~p0core\Command\Windows\
%~d0
cd %~dp0
cls
rem 定义循环体
:startcheck
php eduline crond
echo "^>%date:~0,10% %time:~0,8%"
rem 从进程列表中查找视频转码队列进程
tasklist|findstr /i %QueueVideoName% >nul
rem 变量errorlevel的值等于0表示查找到进程,否则没有查找到进程
if %errorlevel% NEQ 0 (
start %AppPath%%QueueVideoName% 2>nul && echo "^>%date:~0,10% %time:~0,8% 启动视频转码任务监听成功"
)
rem 从进程列表中查找上传进程
tasklist|findstr /i %QueueUploadName% >nul
rem 变量errorlevel的值等于0表示查找到进程,否则没有查找到进程
if %errorlevel% NEQ 0 (
start %AppPath%%QueueUploadName% 2>nul && echo "^>%date:~0,10% %time:~0,8% 启动上传队列任务监听成功"
)
rem 用ping命令来实现延时运行
ping /n 60 127.0.0.1>nul
goto startcheck
echo on
pause
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<cross-domain-policy>
<allow-access-from domain="*"/>
</cross-domain-policy>
\ No newline at end of file
#!/usr/bin/env php
<?php
header('Content-type:text/html;charset=UTF-8;');
error_reporting(E_ALL ^ E_NOTICE ^ E_DEPRECATED);
//网站根路径设置
define('SITE_PATH', dirname(__FILE__));
// 载入核心文件
require SITE_PATH . '/core/core.php';
// 初始化
\Eduline\Console::init();
\ No newline at end of file
File added
<?php
exec('cd /app/eduline && /usr/bin/git pull 2>&1', $a, $b);
var_dump($a, $b);
This diff is collapsed. Click to expand it.
<?php
header('Content-type:text/html;charset=UTF-8;');
/**/
//error_reporting(E_ALL ^ E_NOTICE);
error_reporting(E_ALL);
/**/
/**/
ini_set('session.cookie_path', '/');
ini_set('session.cookie_lifetime', '0');
// 检测是否为IP访问
if (!preg_match('/^(?:(?:2[0-4][0-9]\.)|(?:25[0-5]\.)|(?:1[0-9][0-9]\.)|(?:[1-9][0-9]\.)|(?:[0-9]\.)){3}(?:(?:2[0-5][0-5])|(?:25[0-5])|(?:1[0-9][0-9])|(?:[1-9][0-9])|(?:[0-9]))$/', $_SERVER['HTTP_HOST'])) {
ini_set('session.cookie_domain', stristr($_SERVER['HTTP_HOST'], '.'));
}
if (empty($_SERVER['HTTP_ORIGIN'])) {
$_SERVER['HTTP_ORIGIN'] = $_SERVER['HTTP_HOST'];
}
//网站根路径设置
define('SITE_PATH', dirname(__FILE__));
// 设置头信息
header('Access-Control-Allow-Origin:'.$_SERVER['HTTP_ORIGIN'] ?:'*');
header('Access-Control-Allow-Credentials:'.'true');
header('Access-Control-Allow-Methods:'.'POST, GET, OPTIONS, DELETE');
header('Access-Control-Max-Age:'.'3600');
header('Access-Control-Allow-Headers:'.'x-requested-with');
//安装检查开始:如果您已安装过eduline,可以删除本段代码
if (is_dir('install/') && !file_exists('install/install.lock')) {
die("<div style='border:2px solid green; background:#f1f1f1; padding:20px;margin:0 auto;width:960px;font-weight:bold;color:green;text-align:center;'>"
. "<h1>您尚未安装Eduline在线教育系统,<a href='/install/index.php'>请点击进入安装页面</a></h1>"
. "</div> <br /><br />");
}
$time_run_start = microtime(true);
$mem_run_start = memory_get_usage();
//载入核心文件
require SITE_PATH . '/core/core.php';
ini_set('display_errors', C('APP_DEBUG') ? 1 : 0);
Eduline\Think::start();
$mem_run_end = memory_get_usage();
$time_run_end = microtime(true);
if (C('APP_PAGE_LOG')) {
//数据库查询信息
echo '<div align="left">';
//缓存使用情况
//print_r(Cache::$log);
echo '<hr>';
echo ' Memories: ' . "<br/>";
echo 'ToTal: ', number_format(($mem_run_end - $mem_include_start) / 1024), 'k', "<br/>";
echo 'Include:', number_format(($mem_run_start - $mem_include_start) / 1024), 'k', "<br/>";
echo 'Run:', number_format(($mem_run_end - $mem_run_start) / 1024), 'k<br/><hr/>';
echo 'Time:<br/>';
echo 'ToTal: ', $time_run_end - $time_include_start, "s<br/>";
echo 'Include:', $time_run_start - $time_include_start, 's', "<br/>";
echo 'Run:', $time_run_end - $time_run_start, 's<br/><br/>';
echo '<hr>';
$log = Eduline\Log::$log;
foreach ($log as $l) {
$l = explode('SQL:', $l);
$l = $l[1];
$l = str_replace(array('RunTime:', 's SQL ='), ' ', $l);
echo $l . '<br/>';
}
$files = get_included_files();
dump($files);
echo '</div>';
}
<?php
phpinfo();
This source diff could not be displayed because it is too large. You can view the blob instead.
<div class="footer"> &copy; 2015-<?php echo date('Y');?> <a href="http://51eduline.com" target="_blank">Eduline</a> </div>
\ No newline at end of file
<div class="header">
<h1 class="logo">Eduline在线教育系统</h1>
<div class="icon_install">安装向导</div>
<div class="version"><?php echo VERSION;?></div>
</div>
\ No newline at end of file
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title><?php echo $Title; ?> - <?php echo $Powered; ?></title>
<link rel="stylesheet" href="./css/install.css?v=9.0" />
</head>
<body>
<div class="wrap">
<?php require './templates/header.php'; ?>
<div class="section">
<div class="main cc">
<pre class="pact" readonly="readonly">
版权所有 (C) 2015-<?php echo date('Y');?><a href="http://51eduline.com" target="_blank">Eduline</a>保留所有权利。
<b>Eduline</b>是基于ThinkSNS核心组件独立开发的在线教育程序,基于PHP脚本和MySQL数据库。
官方网址: <a href="http://51eduline.com" target="_blank">www.51eduline.com</a> 在线演示: <a href="http://demo.51eduline.com" target="_blank">demo.51eduline.com</a>
为了使你正确并合法的使用本软件,请你在使用前务必阅读清楚下面的协议条款:
感谢您选择“Eduline在线教育系统”(简称Eduline),Eduline在线教育系统致力于为用户提供全面的在线教育、视频及社交的解决方案。
赛新科技有限公司为Eduline在线教育系统产品的开发商,依法独立拥有Eduline在线教育系统产品著作权。赛新科技有限公司网址为<a href="http://www.seition.com" target="_blank">http://www.seition.com</a>,Eduline在线教育系统官方网站网址为<a href="http://51eduline.com" target="_blank">www.51eduline.com</a>
Eduline在线教育系统著作权已在中华人民共和国国家版权局注册,著作权受到法律和国际公约保护。使用者:无论个人或组织、盈利与否、用途如何(包括以学习和研究为目的),均需仔细阅读本协议,在理解、同意、并遵守本协议的全部条款后,方可开始使用 Eduline在线教育系统。
赛新科技有限公司拥有对本授权协议的最终解释权。
<b>协议许可的权利</b>
1)您可以在协议规定的约束和限制范围内修改 Eduline在线教育系统 源代码或界面风格以适应您的网站要求;
2)您拥有使用本系统构建的社区中全部会员资料、文章及相关信息的所有权,并独立承担与文章内容的相关法律义务;
3)获得商业授权之后,您可以将本系统应用于商业用途,同时依据所购买的授权类型中确定的技术支持期限、技术支持方式和技术支持内容,自购买时刻起, 在技术支持期限内拥有通过指定的方式获得指定范围内的技术支持服务。商业授权用户享有反映和提出意见的权力,相关意见将被作为首要考虑,但没有一定被采纳的承诺或保证。
4)不得对本系统或与之关联的商业授权进行出租、出售、抵押或发放子许可证;
5)如果您未能遵守本协议的条款,您的授权将被终止,所被许可的权利将被收回,并承担相应法律责任。
<b>有限担保和免责声明</b>
1)本系统及所附带的文件是作为不提供任何明确的或隐含的赔偿或担保的形式提供的;
2)用户出于自愿而使用本系统,您必须了解使用本系统的风险,在尚未购买产品技术服务之前,我们不承诺提供任何形式的技术支持、使用担保,也不承担任何因使用本软件而产生问题的相关责任;
3)赛新科技有限公司不对使用本系统构建的社区中的文章或信息承担责任。
有关Eduline在线教育系统最终用户授权协议、商业授权与技术服务的详细内容,均由Eduline在线教育系统官方网站独家提供。赛新科技有限公司拥有在不事先通知的情况下,修改授权协议和服务价目表的权力,修改后的协议或价目表对自改变之日起的新授权用户生效。
电子文本形式的授权协议如同双方书面签署的协议一样,具有完全的和等同的法律效力。您一旦开始安装Eduline在线教育系统,即被视为完全理解并接受本协议的各项条款,在享有上述条款授予的权力的同时,受到相关的约束和限制。协议许可范围以外的行为,将直接违反本授权协议并构成侵权,我们有权随时终止授权,责令停止损害,并保留追究相关责任的权力。
</pre>
</div>
<div class="bottom tac"> <a href="./index.php?step=2" class="btn">接 受</a> </div>
</div>
</div>
<?php require './templates/footer.php'; ?>
</body>
</html>
\ No newline at end of file
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title><?php echo $Title; ?> - <?php echo $Powered; ?></title>
<link rel="stylesheet" href="./css/install.css?v=9.0" />
</head>
<body>
<div class="wrap">
<?php require './templates/header.php';?>
<section class="section">
<div class="step">
<ul>
<li class="current"><em>1</em>检测环境</li>
<li><em>2</em>创建数据</li>
<li><em>3</em>完成安装</li>
</ul>
</div>
<div class="server">
<table width="100%">
<tr>
<td class="td1">环境检测</td>
<td class="td1" width="25%">推荐配置</td>
<td class="td1" width="25%">当前状态</td>
<td class="td1" width="25%">最低要求</td>
</tr>
<tr>
<td>操作系统</td>
<td>类UNIX</td>
<td><span class="correct_span">&radic;</span> <?php echo $os; ?></td>
<td>不限制</td>
</tr>
<tr>
<td>PHP版本</td>
<td>>5.6.x</td>
<td><span class="correct_span">&radic;</span> <?php echo $phpv; ?></td>
<td>>=5.6</td>
</tr>
<tr>
<td>Mysql版本(client)</td>
<td>>5.6.x</td>
<td><?php echo $mysql; ?></td>
<td>>=5.6</td>
</tr>
<tr>
<td>附件上传</td>
<td>>2M</td>
<td><?php echo $uploadSize; ?></td>
<td>不限制</td>
</tr>
<tr>
<td>session</td>
<td>开启</td>
<td><?php echo $session; ?></td>
<td>开启</td>
</tr>
</table>
<table width="100%">
<tr>
<td class="td1">目录、文件权限检查</td>
<td class="td1" width="25%">写入</td>
<td class="td1" width="25%">读取</td>
</tr>
<?php
foreach($folder as $dir){
$Testdir = SITEDIR.$dir;
dir_create($Testdir);
if(TestWrite($Testdir)){
$w = '<span class="correct_span">&radic;</span>可写 ';
}else{
$w = '<span class="correct_span error_span">&radic;</span>不可写 ';
$err++;
}
if(is_readable($Testdir)){
$r = '<span class="correct_span">&radic;</span>可读' ;
}else{
$r = '<span class="correct_span error_span">&radic;</span>不可读';
$err++;
}
?>
<tr>
<td><?php echo $dir; ?></td>
<td><?php echo $w; ?></td>
<td><?php echo $r; ?></td>
</tr>
<?php
}
?>
</table>
</div>
<div class="bottom tac"> <a href="./index.php?step=2" class="btn">重新检测</a><a href="./index.php?step=3" class="btn">下一步</a> </div>
</section>
</div>
<?php require './templates/footer.php';?>
</body>
</html>
\ No newline at end of file
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title><?php echo $Title; ?> - <?php echo $Powered; ?></title>
<link rel="stylesheet" href="./css/install.css?v=9.0" />
<script src="./js/jquery.js?v=9.0"></script>
</head>
<body>
<div class="wrap">
<?php require './templates/header.php';?>
<section class="section">
<div class="step">
<ul>
<li class="on"><em>1</em>检测环境</li>
<li class="on"><em>2</em>创建数据</li>
<li class="current"><em>3</em>完成安装</li>
</ul>
</div>
<div class="install" id="log">
<ul id="loginner">
</ul>
</div>
<div class="bottom tac"> <a href="javascript:;" class="btn_old"><img src="./images/loading.gif" align="absmiddle" />&nbsp;正在安装...</a> </div>
</section>
<script type="text/javascript">
var n=0;
var data = <?php echo json_encode($_POST);?>;
$.ajaxSetup ({ cache: false });
function reloads(n) {
var url = "./index.php?step=4&install=1&n="+n;
$.ajax({
type: "POST",
url: url,
data: data,
dataType: 'json',
beforeSend:function(){
},
success: function(msg){
if(msg.n=='999999'){
$('#dosubmit').attr("disabled",false);
$('#dosubmit').removeAttr("disabled");
$('#dosubmit').removeClass("nonext");
setTimeout('gonext()',2000);
}
if(msg.n){
$('#loginner').prepend(msg.msg);
reloads(msg.n);
}else{
//alert('指定的数据库不存在,系统也无法创建,请先通过其他方式建立好数据库!');
alert(msg.msg);
}
}
});
}
function gonext(){
window.location.href='./index.php?step=5';
}
$(document).ready(function(){
reloads(n);
})
</script>
</div>
<?php require './templates/footer.php';?>
</body>
</html>
\ No newline at end of file
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<title><?php echo $Title; ?> - <?php echo $Powered; ?></title>
<link rel="stylesheet" href="./css/install.css?v=9.0" />
</head>
<body>
<div class="wrap">
<?php require './templates/header.php'; ?>
<section class="section">
<div class="">
<div class="success_tip cc"> <a href="/" class="f16 b">安装完成,点击这里体验Eduline吧</a>
</div>
<div class=""> </div>
</div>
</section>
</div>
<?php require './templates/footer.php'; ?>
</body>
</html>
\ No newline at end of file
<?php
/**
获取网卡的MAC地址原码;目前支持WIN/LINUX系统
获取机器网卡的物理(MAC)地址
**/
class GetmacAddr
{
public $result = array(); // 返回带有MAC地址的字串数组
public $macAddr;
/*构造*/
public function __construct($osType)
{
switch (strtolower($osType)) {
case "unix":break;
case "solaris":break;
case "aix":break;
case "linux":{
$this->for_linux_os();
}break;
default:{
$this->for_windows_os();
}break;
}
$temp_array = array();
foreach ($this->result as $value) {
if (preg_match("/[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f][:-]" . "[0-9a-f][0-9a-f]/i", $value,
$temp_array)) {
$this->macAddr = $temp_array[0];
break;
}
}
}
/*linux系统中获取方法*/
public function for_linux_os()
{
@exec("/sbin/ifconfig -a", $this->result);
return $this->result;
}
/*win系统中的获取方法*/
public function for_windows_os()
{
print_r($_SERVER);
@exec("ipconfig /all", $this->result);
if ($this->result) {
return $this->result;
} else {
$ipconfig = $_SERVER["WINDIR"] . "\system32\ipconfig.exe";
if (is_file($ipconfig)) {
@exec($ipconfig . " /all", $this->result);
} else {
@exec($_SERVER["WINDIR"] . "\system\ipconfig.exe /all", $this->result);
return $this->result;
}
}
}
}
$res = new GetmacAddr(PHP_OS);
echo $res->macAddr;
var_dump(PHP_OS, $res->macAddr);
exec("/sbin/ifconfig -a", $a, $b);
var_dump($a, $b);
This diff is collapsed. Click to expand it.
####感谢您购买Eduline-互动话在线教育系统,为了保证您的系统能够正常使用,请准备以下资料并在网站后台相关配置项配置
1,短信接口 申请地址:http://www.sms.cn/
2,七牛账号, 申请地址:http://www.qiniu.com
3,支付宝在线支付账号 申请地址:http://www.alipay.com
4,银联在线支付账号
\ No newline at end of file
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment