Skip to content

Commit 2d6f04f

Browse files
committed
MetInfo5.2
1 parent 031623b commit 2d6f04f

File tree

1,444 files changed

+130808
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,444 files changed

+130808
-0
lines changed

MetInfo5.2/.htaccess

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<FilesMatch ".(bak|htaccess|htpasswd|inc|ini|lbi|lib|tpl|sh)$">
2+
Order Allow,Deny
3+
Deny from all
4+
</FilesMatch>
5+
Options -Indexes
6+
order deny,allow

MetInfo5.2/about/index.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
# MetInfo Enterprise Content Management System
3+
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved.
4+
$filpy = basename(dirname(__FILE__));
5+
$fmodule=1;
6+
require_once '../include/module.php';
7+
require_once $module;
8+
# This program is an open source system, commercial use, please consciously to purchase commercial license.
9+
# Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
10+
?>

MetInfo5.2/about/show.php

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?php
2+
# MetInfo Enterprise Content Management System
3+
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved.
4+
require_once '../include/common.inc.php';
5+
if(!$id && $class1)$id = $class1;
6+
if(!is_numeric($id))okinfo('../404.html');
7+
$show = $db->get_one("SELECT * FROM $met_column WHERE id='$id' and module=1");
8+
if(!$show||!$show['isshow']){
9+
okinfo('../404.html');
10+
}
11+
$metaccess=$show[access];
12+
if($show[classtype]==3){
13+
$show3 = $db->get_one("SELECT * FROM $met_column WHERE id='$show[bigclass]'");
14+
$class1=$show3[bigclass];
15+
$class2=$show[bigclass];
16+
$class3=$show[id];
17+
}else{
18+
$class1=$show[bigclass]?$show[bigclass]:$id;
19+
$class2=$show[bigclass]?$id:"0";
20+
$class3=0;
21+
}
22+
23+
require_once '../include/head.php';
24+
$class1_info=$class_list[$class1];
25+
$class1_list=$class1_info;
26+
$class2_info=$class_list[$class2];
27+
$class3_info=$class_list[$class3];
28+
$show[content]=contentshow('<div>'.$show[content].'</div>');
29+
$show[description]=$show[description]?$show[description]:$met_description;
30+
$show[keywords]=$show[keywords]?$show[keywords]:$met_keywords;
31+
$met_title=$met_title?$show['name'].'-'.$met_title:$show['name'];
32+
if($show['ctitle']!='')$met_title=$show['ctitle'];
33+
require_once '../public/php/methtml.inc.php';
34+
include template('show');
35+
footer();
36+
# This program is an open source system, commercial use, please consciously to purchase commercial license.
37+
# Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
38+
?>

MetInfo5.2/admin/admin/add.php

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?php
2+
# MetInfo Enterprise Content Management System
3+
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved.
4+
require_once '../login/login_check.php';
5+
if($admin_list[admin_group]==3){
6+
$admin_groupx[0]='checked="checked"';
7+
}
8+
if($admin_list[langok]!='metinfo'){
9+
foreach($met_langok as $key=>$val){
10+
$langoka=explode('-',$admin_list[langok]);
11+
for($i=0;$i<count($langoka);$i++){
12+
if($langoka[$i]==$val[mark])$met_langoka[]=$val;
13+
}
14+
}
15+
}else{
16+
$met_langoka=$met_langok;
17+
}
18+
$css_url="../templates/".$met_skin."/css";
19+
$img_url="../templates/".$met_skin."/images";
20+
$query="select * from $met_app where download=1";
21+
$app=$db->get_all($query);
22+
include template('admin/admin_add');
23+
footer();
24+
# This program is an open source system, commercial use, please consciously to purchase commercial license.
25+
# Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
26+
?>

MetInfo5.2/admin/admin/ajax.php

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
# MetInfo Enterprise Content Management System
3+
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved.
4+
require_once '../include/common.inc.php';
5+
if($action=='admin'){
6+
if (isblank($id)) {
7+
echo $lang_loginIntput;
8+
exit;
9+
}
10+
$id = dhtmlchars(trim($id));
11+
foreach($char_key as $value){
12+
if(strpos($id,$value)!==false){
13+
echo $lang_loginUserErr;
14+
exit;
15+
}
16+
}
17+
unset($id_list);
18+
$id_list = $db->get_one("select admin_id from $met_admin_table where admin_id = '$id'");
19+
if ($id_list[admin_id]) {
20+
echo $lang_loginUserMudb;
21+
exit;
22+
} else {
23+
echo $lang_loginRegok;
24+
exit;
25+
}
26+
}
27+
28+
# This program is an open source system, commercial use, please consciously to purchase commercial license.
29+
# Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
30+
?>

MetInfo5.2/admin/admin/delete.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
# MetInfo Enterprise Content Management System
3+
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved.
4+
require_once '../login/login_check.php';
5+
$adminno = $db->counter($met_admin_table, " where admin_type like '%metinfo%' and id<>'$id'", "*");
6+
if($adminno<1)metsave('-1',$lang_deleteJS);
7+
if($action=="del"){
8+
$allidlist=explode(',',$allid);
9+
foreach($allidlist as $key=>$val){
10+
$query = "delete from $met_admin_table where id='$val'";
11+
$db->query($query);
12+
}
13+
metsave('../admin/index.php?lang='.$lang.'&anyid='.$anyid);
14+
}
15+
else{
16+
$admin_list = $db->get_one("SELECT * FROM $met_admin_table WHERE id='$id'");
17+
if(!$admin_list)metsave('-1',$lang_loginNoid);
18+
$query = "delete from $met_admin_table where id='$id'";
19+
$db->query($query);
20+
metsave('../admin/index.php?lang='.$lang.'&anyid='.$anyid);
21+
}
22+
# This program is an open source system, commercial use, please consciously to purchase commercial license.
23+
# Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
24+
?>

MetInfo5.2/admin/admin/editor.php

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
<?php
2+
# MetInfo Enterprise Content Management System
3+
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved.
4+
require_once '../login/login_check.php';
5+
$admin_listed = $db->get_one("SELECT * FROM $met_admin_table WHERE id='$id'");
6+
if(!$admin_listed)metsave('-1',$lang_dataerror);
7+
if($admin_list[langok]!='metinfo'){
8+
foreach($met_langok as $key=>$val){
9+
$langoka=explode('-',$admin_list[langok]);
10+
for($i=0;$i<count($langoka);$i++){
11+
if($langoka[$i]==$val[mark])$met_langoka[]=$val;
12+
}
13+
}
14+
}else{
15+
$met_langoka=$met_langok;
16+
}
17+
if($admin_listed[langok]=="metinfo"){
18+
$langok1="checked='checked'";
19+
foreach($met_langok as $key=>$val){
20+
$langok2[$val[mark]]="checked='checked'";
21+
}
22+
}else{
23+
$langokb=explode('-',$admin_listed[langok]);
24+
foreach($langokb as $key=>$val){
25+
$langok2[$val]="checked='checked'";
26+
}
27+
}
28+
if($admin_listed[admin_group]==0){
29+
if($admin_listed[admin_issueok]==1)$admin_issue_ok="checked='checked'";
30+
$admin_op=explode('-',$admin_listed['admin_op']);
31+
if($admin_op[0]=="metinfo"||$admin_listed[admin_op]=="metinfo"){
32+
$admin_op_0="checked='checked'";
33+
$admin_op_1="checked='checked'";
34+
$admin_op_2="checked='checked'";
35+
$admin_op_3="checked='checked'";
36+
}else{
37+
if($admin_op[1]=="add")$admin_op_1="checked='checked'";
38+
if($admin_op[2]=="editor")$admin_op_2="checked='checked'";
39+
if($admin_op[3]=="del")$admin_op_3="checked='checked'";
40+
}
41+
}
42+
$sexx[$admin_listed[admin_sex]]="checked='checked'";
43+
$admin_groupx[$admin_listed[admin_group]]="checked='checked'";
44+
$metmanager=1;
45+
$query="select * from $met_app where download=1";
46+
$app=$db->get_all($query);
47+
require_once '../include/metlist.php';
48+
$css_url="../templates/".$met_skin."/css";
49+
$img_url="../templates/".$met_skin."/images";
50+
include template('admin/admin_editor');
51+
footer();
52+
# 本程序是一个开源系统,使用时请你仔细阅读使用协议,商业用途请自觉购买商业授权.
53+
# Copyright (C) 长沙米拓信息技术有限公司 (http://www.metinfo.cn). All rights reserved.
54+
?>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
# MetInfo Enterprise Content Management System
3+
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved.
4+
require_once '../login/login_check.php';
5+
$id=$admin_list[id];
6+
$sexx[$admin_list[admin_sex]]="checked='checked'";
7+
$css_url="../templates/".$met_skin."/css";
8+
$img_url="../templates/".$met_skin."/images";
9+
include template('admin/admin_pass');
10+
footer();
11+
# 本程序是一个开源系统,使用时请你仔细阅读使用协议,商业用途请自觉购买商业授权.
12+
# Copyright (C) 长沙米拓信息技术有限公司 (http://www.metinfo.cn). All rights reserved.
13+
?>

0 commit comments

Comments
 (0)