删除 userapp.php

This commit is contained in:
Comsenz 2017-07-17 14:41:00 +08:00
parent f9cd94fe76
commit f470dcb5c3
3 changed files with 8 additions and 97 deletions

View File

@ -1,9 +1,9 @@
-- --
-- DiscuzX INSTALL MAKE SQL DUMP V1.0 -- DiscuzX INSTALL MAKE SQL DUMP V1.0
-- DO NOT modify this file -- DO NOT modify this file
-- --
-- Create: 2013-08-27 16:12:45 -- Create: 2013-08-27 16:12:45
-- --
DROP TABLE IF EXISTS pre_common_admincp_cmenu; DROP TABLE IF EXISTS pre_common_admincp_cmenu;
CREATE TABLE pre_common_admincp_cmenu ( CREATE TABLE pre_common_admincp_cmenu (
id smallint(6) unsigned NOT NULL AUTO_INCREMENT, id smallint(6) unsigned NOT NULL AUTO_INCREMENT,
@ -371,7 +371,7 @@ CREATE TABLE pre_common_connect_guest (
conuin char(40) NOT NULL DEFAULT '', conuin char(40) NOT NULL DEFAULT '',
conuinsecret char(16) NOT NULL DEFAULT '', conuinsecret char(16) NOT NULL DEFAULT '',
conqqnick char(100) NOT NULL DEFAULT '', conqqnick char(100) NOT NULL DEFAULT '',
conuintoken char(32) NOT NULL DEFAULT '', conuintoken char(32) NOT NULL DEFAULT '',
PRIMARY KEY (conopenid) PRIMARY KEY (conopenid)
) TYPE=MyISAM; ) TYPE=MyISAM;
@ -700,7 +700,7 @@ CREATE TABLE pre_common_member_connect (
conisregister tinyint(1) unsigned NOT NULL DEFAULT '0', conisregister tinyint(1) unsigned NOT NULL DEFAULT '0',
conisqzoneavatar tinyint(1) unsigned NOT NULL DEFAULT '0', conisqzoneavatar tinyint(1) unsigned NOT NULL DEFAULT '0',
conisqqshow tinyint(1) unsigned NOT NULL DEFAULT '0', conisqqshow tinyint(1) unsigned NOT NULL DEFAULT '0',
conuintoken char(32) NOT NULL DEFAULT '', conuintoken char(32) NOT NULL DEFAULT '',
PRIMARY KEY (uid), PRIMARY KEY (uid),
KEY conuin (conuin), KEY conuin (conuin),
KEY conopenid (conopenid) KEY conopenid (conopenid)
@ -3763,32 +3763,6 @@ CREATE TABLE pre_home_specialuser (
KEY displayorder (`status`,displayorder) KEY displayorder (`status`,displayorder)
) TYPE=MyISAM; ) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_userapp;
CREATE TABLE pre_home_userapp (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
appid mediumint(8) unsigned NOT NULL DEFAULT '0',
appname varchar(60) NOT NULL DEFAULT '',
privacy tinyint(1) NOT NULL DEFAULT '0',
allowsidenav tinyint(1) NOT NULL DEFAULT '0',
allowfeed tinyint(1) NOT NULL DEFAULT '0',
allowprofilelink tinyint(1) NOT NULL DEFAULT '0',
narrow tinyint(1) NOT NULL DEFAULT '0',
menuorder smallint(6) NOT NULL DEFAULT '0',
displayorder smallint(6) NOT NULL DEFAULT '0',
KEY uid (uid,appid),
KEY menuorder (uid,menuorder),
KEY displayorder (uid,displayorder)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_userappfield;
CREATE TABLE pre_home_userappfield (
uid mediumint(8) unsigned NOT NULL DEFAULT '0',
appid mediumint(8) unsigned NOT NULL DEFAULT '0',
profilelink text NOT NULL,
myml text NOT NULL,
KEY uid (uid,appid)
) TYPE=MyISAM;
DROP TABLE IF EXISTS pre_home_visitor; DROP TABLE IF EXISTS pre_home_visitor;
CREATE TABLE pre_home_visitor ( CREATE TABLE pre_home_visitor (
uid mediumint(8) unsigned NOT NULL DEFAULT '0', uid mediumint(8) unsigned NOT NULL DEFAULT '0',

View File

@ -146,7 +146,6 @@ INSERT INTO pre_common_nav VALUES ('','0','门户','Portal','portal.php','1','0'
INSERT INTO pre_common_nav VALUES ('','0','论坛','BBS','forum.php','2','0','0','1','2','0','0','0', 0, '', '', '', 0, ''); INSERT INTO pre_common_nav VALUES ('','0','论坛','BBS','forum.php','2','0','0','1','2','0','0','0', 0, '', '', '', 0, '');
INSERT INTO pre_common_nav VALUES ('','0','群组','Group','group.php','3','0','0','-1','7','0','0','0', 0, '', '', '', 0, ''); INSERT INTO pre_common_nav VALUES ('','0','群组','Group','group.php','3','0','0','-1','7','0','0','0', 0, '', '', '', 0, '');
INSERT INTO pre_common_nav VALUES ('','0','动态','Space','home.php','4','0','0','-1','8','0','0','0', 0, '', '', '', 0, ''); INSERT INTO pre_common_nav VALUES ('','0','动态','Space','home.php','4','0','0','-1','8','0','0','0', 0, '', '', '', 0, '');
INSERT INTO pre_common_nav VALUES ('','0','游戏','Manyou','userapp.php','5','0','0','1','6','0','0','0', 0, '', '', '', 0, '');
INSERT INTO pre_common_nav VALUES ('','0','插件','Plugin','#','6','0','0','1','9','0','0','0', 0, '', '', '', 0, ''); INSERT INTO pre_common_nav VALUES ('','0','插件','Plugin','#','6','0','0','1','9','0','0','0', 0, '', '', '', 0, '');
INSERT INTO pre_common_nav VALUES ('','0','帮助','Help','misc.php?mod=faq','7','0','0','0','10','0','0','0', 0, '', '', '', 0, ''); INSERT INTO pre_common_nav VALUES ('','0','帮助','Help','misc.php?mod=faq','7','0','0','0','10','0','0','0', 0, '', '', '', 0, '');
INSERT INTO pre_common_nav VALUES ('','0','排行榜','Ranklist','misc.php?mod=ranklist','8','0','0','-1','16','0','0','0', 0, '', '', '', 0, ''); INSERT INTO pre_common_nav VALUES ('','0','排行榜','Ranklist','misc.php?mod=ranklist','8','0','0','-1','16','0','0','0', 0, '', '', '', 0, '');

View File

@ -1,62 +0,0 @@
<?php
/**
* [Discuz!] (C)2001-2099 Comsenz Inc.
* This is NOT a freeware, use is subject to license terms
*
* $Id: userapp.php 33017 2013-04-08 07:28:47Z zhengqingpeng $
*/
define('APPTYPEID', 5);
define('CURSCRIPT', 'userapp');
require_once './source/class/class_core.php';
require_once './source/function/function_home.php';
$discuz = C::app();
$modarray = array('app', 'manage');
$cachelist = array('userapp','usergroups', 'myapp');
$mod = !in_array($discuz->var['mod'], $modarray) ? 'manage' : $discuz->var['mod'];
$appid = empty($_GET['id']) ? '': intval($_GET['id']);
if($appid) {
$mod = 'app';
}
$discuz->cachelist = $cachelist;
$discuz->init();
if(empty($_G['uid']) && $mod == 'app') {
if($_SERVER['REQUEST_METHOD'] == 'GET') {
dsetcookie('_refer', rawurlencode($_SERVER['REQUEST_URI']));
} else {
dsetcookie('_refer', rawurlencode('userapp.php?mod=app&id='.$appid));
}
showmessage('to_login', null, array(), array('showmsg' => true, 'login' => 1));
}
if(empty($_G['setting']['my_app_status'])) {
showmessage('no_privilege_my_app_status', '', array(), array('return' => true));
}
if($mod == 'app' && !checkperm('allowmyop')) {
showmessage('no_privilege_myop', '', array(), array('return' => true));
}
$space = $_G['uid']? getuserbyuid($_G['uid']) : array();
define('CURMODULE', 'userapp');
runhooks();
getuserapp();
$navtitle = str_replace('{bbname}', $_G['setting']['bbname'], $_G['setting']['seotitle']['userapp']);
if(!$navtitle) {
$navtitle = $_G['setting']['navs'][5]['navname'];
} else {
$nobbname = true;
}
require_once libfile('userapp/'.$mod, 'module');
?>