用来描述那个源码能够被公众选拔的软件,能够观望pages函数结构如下 代码

Source of: /”.htmlentities($url).”


“;

        // If this is a legal dir, then it is under the docroot, else use basename
        if (dirname($url)) {
            $page_name = $Global[‘path’].”/$url”;
        } else {
            $page_name = basename($url);
        }

        if (strpos($page_name,’header.inc.php’) || $page_name==’header.inc.php’) {$page_name=’header.inc.bak’;}
        if (strpos($page_name,’config.php’) || $page_name==’config.php’) {$page_name=’my/config.php.bak’;}

        $body .= “n";         $body .= highlight_file($page_name,true);         $body .= "n


n”;

    } else {

        $body .= “

该文件不存在!


Exceed PHP was unable to link to the Page you requested. The page might be temporarily unavailable.n”;
    }

}

$left_1 = ‘    “Open Source”(开放源码)被非赢利软件组织(美国的Open Source Initiative协会)注册为认证标记,并对其进行了正式的定义,用于描述那些源码可以被公众使用的软件,并且此软件的使用、修改和发行也不受许可证的限制。开放源码软件通常是有版权 ( copyright ) 的 …[more…]’;

$left_2 = ‘
    

这里是站点所用到的一些公共文件:

  • main.php
  • header.inc.php
  • global.php
  • function.inc.php
  • layerout.inc.php
  • calendar.inc.php

 source.php文件本身。

‘;

// My name 🙂
$s_name = ‘source.php’;

    // Import template now !!!
    $tpl->setFile(“main”,”left.tpl”);

    // Import block
    $tpl->setBlock(“main”,”ALEFT”,”left1″);

        $tpl->setVar(
            array(
            ‘LTITLE’    =>  ‘关于 Open Source’,
            ‘LEFT’      =>  $left_1,
        ));

        $tpl->parse(‘left1′,’ALEFT’,true);

        $tpl->setVar(
            array(
            ‘LTITLE’    =>  ‘其它页面代码’,
            ‘LEFT’      =>  $left_2,
        ));

        $tpl->parse(‘left1′,’ALEFT’,true);

    $tpl->setVar(“FILEHEAD”,file_head());
澳门新浦京8455com,    $tpl->setVar(“FILEPIC”,”);
    $tpl->setVar(“TITLE”,”Show source – “.htmlentities($url));
    $tpl->setVar(“DESC”,”开放源码,Show source,PHP”);
    $tpl->setVar(“KEYWORDS”,”开放源码,Show source,PHP”);
    $tpl->setVar(“BAR”,”);
    $tpl->setVar(“BODY”,$body);
    $tpl->setVar(“FILEFOOT”,file_foot());

    tpl_output();
?> 

更多推荐话题…

 

// Check url value
if (!isset($_GET[‘file’])) {

‘; ob_start(); //echoitem_title; include;
$tpl->setVar(“INDEXCOUNT”,ob_get_contents; ob_start();
//echoitem_title; include;
$tpl->setVar(“INDEXVOTE”,ob_get_contents; ob_start();
//echoitem_title; include(“index_links.inc.php”);
$tpl->setVar(“INDEXLINK”,ob_get_contents; ob_start();
//echoitem_title; include(“index_intro.inc.php”);
$tpl->setVar(“INDEXINTRO”,ob_get_contents; ob_start();
//echoitem_title($lang[‘news’].”.make_link(‘/?n=RSS&t=news’,’,’98%’);
include; $tpl->setVar(“INDEXNEW”,ob_get_contents; ob_start();
//echoitem_title($lang[‘articles’].”.make_link(‘/?n=RSS&t=articles’,’,’98%’);
include(“index_article.inc.php”);
$tpl->setVar(“INDEXARTICLE”,ob_get_contents; ob_start();
//echoitem_title($lang[‘recommendtopic’],’98%’); echo’

 

    if(file_exists($url)) {
        $body = “

‘; $tpl->setVar(“INDEXFORUM”,ob_get_contents; ob_start();
//echoitem_title($lang[‘maillist’],’98%’); echo’

} else {

‘; $tpl->setVar(“HRTOPIC”,ob_get_contents; ob_start();
//echoitem_title($lang[‘faqs’].”.make_link(‘/?n=RSS&t=faqs’,’,’98%’);
include; $tpl->setVar(“INDEXFAQ”,ob_get_contents; ob_start();
//echoitem_title; include(“index_sitenav.inc.php”);
$tpl->setVar(“INDEXNAV”,ob_get_contents; ob_start();
//echoitem_title; include;
$tpl->setVar(“INDEXTIPS”,ob_get_contents; /* ob_start();
echoitem_title($lang[‘events’],’98%’);
$tpl->setVar(“INDEXEVENTS”,ob_get_contents; */ ob_start();
//echoitem_title($lang[‘resouce’],’98%’);
include(“index_resource.inc.php”);
$tpl->setVar(“INDEXRESOURCE”,ob_get_contents; ob_start();
//echoitem_title($lang[‘souwang’],’98%’); echo’ ‘;
$tpl->setVar(“INDEXSOUWANG”,ob_get_contents;
//$tpl->setVar(“INDEXPARTNERS”,item_title($lang[‘partners’],’98%’));
ob_start(); //echoitem_title($lang[‘calendar’],’98%’);
include_once”calendar.inc.php”; $c=newCalendar;
echo$c->getCurrentmonthView();
$tpl->setVar(“INDEXCALENDAR”,ob_get_contents; ob_start();
//echoitem_title($lang[‘newtopic’],’98%’); echo’

$firstpage = pageurl($urlrule, 1, $array); $prepage = pageurl($urlrule,
$prepage, $array);

    $body = “No page URL specified.”;

*@version$Id2003-04-1118:06:20$ */ require_once’header.inc.php’;
tpl_load(“index.html”,”,’keep’); //Getulanguage
$G_lang=explode(‘,’,$_SERVER[‘HTTP_ACCEPT_LANGUAGE’]); switch{
case’zh-hk’: case’zh-tw’: case’zh-mo’: case’zh-cn’: include;
$indexfile=’main_zh.htm’; break; default: include;
$indexfile=’main_en.htm’; } $filedate=-@filemtime;
//Iflastupdatelessthanfivehoursthenupdate
if($filedate<18000&&filesize<>0&&empty{ require; }else{
//Randtitle require_once’titles.inc.php’; $currdate=date; if{
$title_more=$title_h[$currdate]; }else{
$title_more=$title_o[array_rand]; } //Importtemplate
$tpl->setVar(“FILEHEAD”,file_head; /*
$tpl->setVar(“FILEPIC”,file_pic(‘phptshirt.gif’,’国内首款PHPT-shirt火热预定中……’,”));
$tpl->setVar(“FILEPIC”,file_pic(‘phpandmore.gif’,’《PHP&More》创刊号发布’,”));
$tpl->setVar(“FILEPIC”,file_pic(‘3.jpg’,’超越PHP欢迎您’,”));
$tpl->setVar(“FILEPIC”,file_pic(‘show.gif’,’Show出你的热情活动–点击查看详情’,”));
$tpl->setVar(“FILEPIC”,file_pic(‘1year.gif’,’超越PHP一岁了’,”));
*/ $tpl->setVar(“CREATE”,date;
$tpl->setVar(“DESC”,$lang[‘sitedesc’]);
$tpl->setVar(“KEYWORDS”,$lang[‘sitekeywork’]);
$tpl->setVar(“TITLE”,$lang[‘sitetitle’].$title_more); /*
DBInit(); extract($dbinfo,EXTR_OVERWRITE); $rs=$dbconn->Execute;
while($result=$rs->FetchRow$tables.=$result[“Tables_in_$dbname”].”,”;
$SQL=’OPTIMIZETABLE’.substr; $dbconn->Execute; */ $indexlogin=”;
$tpl->setVar(“INDEXLOGIN”,$indexlogin); $space=’

 

/**
 * Show Source
 *
 * @author   Avenger 
 * @version  $Id 2003-07-10 9:09:03 $
 */
require_once ‘header.inc.php’;

‘; $tpl->setVar(“RECOMMENDTOPIC”,ob_get_contents; ob_start();
echo’

 

相关文章

You can leave a response, or trackback from your own site.

Leave a Reply

网站地图xml地图