tool 发表于 2008-12-26 21:52:09

一直不明白``没有字的算不算一行
<?php
define('IN_ADMIN', TRUE);
require dirname(__FILE__).'/include/admin/global.func.php';
require dirname(__FILE__).'/include/common.inc.php';
require 'log.class.php';
require 'form.class.php';
require 'priv_role.class.php';
require_once 'cache.func.php';
require_once 'version.inc.php';
require PHPCMS_ROOT.'languages/'.LANG.'/phpcms_admin.lang.php';

if(!isset($file)) $file = 'index';
preg_match("/^+$/", $file) or showmessage('Invalid Request.');
$action = isset($action) ? $action : '';
$catid = isset($catid) ? intval($catid) : 0;
$specialid = isset($specialid) ? intval($specialid) : 0;
if(!isset($forward) && str_exists(HTTP_REFERER, '?')) $forward = HTTP_REFERER;

session_start();

if($_userid && $_groupid == 1 && $_SESSION['is_admin'] == 1)
{
        $ROLE = cache_read('role.php');
        $GROUP = cache_read('member_group.php');
        $POS = cache_read('position.php');
        $STATUS = cache_read('status.php');
        $_roleid = cache_read('admin_role_'.$_userid.'.php');
        if(!$_roleid) showmessage('您没有任何角色权限!');
        $priv_role = new priv_role();
        if(!$priv_role->module()) showmessage('您没有操作权限!');
}
elseif($file != 'login')
{
        showmessage('请登录!', '?mod=phpcms&file=login&forward='.urlencode(URL),1,1);
}

$log = new log();
if(ADMIN_LOG && $file != 'database' && !in_array($action, array('get_menu_list', 'menu_pos')))
{
        $log->set('admin', 0);
        $log->add();
}
if($mod != 'phpcms' && !@include PHPCMS_ROOT.$M['path'].'admin/admin.inc.php') showmessage('The file ./'.$M['path'].'admin.inc.php is not exists!');
if(!@include PHPCMS_ROOT.(isset($M['path']) ? $M['path'] : '').'admin/'.$file.'.inc.php') showmessage("The file ./{$M['path']}admin/{$file}.inc.php is not exists!");
?>

lonadu 发表于 2008-12-27 14:40:06

得到地地道道地地道道

vague 发表于 2009-1-3 11:51:17

我照上面改了,还是无法获取列表

dapei 发表于 2009-1-6 03:08:28

格式不符!

怎么没有人解决格式不符的问题啊!

feelingdo 发表于 2009-1-6 15:50:38

好用,测试已成功,不成功的可能版本不一样的问题,可根据返回的页面,修改抓取的设置就可以了,如不懂可联系我,992828062,注明火车头

fcr 发表于 2009-1-9 10:11:00

10# rq204


我来看 一下好用 哇

hrzhangjiang 发表于 2009-1-11 22:22:59

正式进入 phpcms 的行类 ,抛弃 ss7.发布太慢 了,简直受不了 了。

burner 发表于 2009-1-15 02:15:32

刚装的本地phpcms,有时间试试

zoudehuai 发表于 2009-1-25 10:45:08

不如使用入库模块方便

chenfy 发表于 2009-2-1 13:10:42

还是使用接口比较方便
页: 1 2 3 4 5 6 [7] 8 9 10
查看完整版本: phpcms2008火车采集解决方案