include "metalinks.php"; ?> <!-- Bootstrap --> <link href="bootstrap/css/bootstrap_1200.css" rel="stylesheet"> <!-- custom css--> <link href="css/style.css" rel="stylesheet" type="text/css" media="screen"> <link href="css/donghai.css" rel="stylesheet" type="text/css"> </head> <body style="background-color:#939598; "> <?php $aboutDb = queryDB_row("select * from aboutus where id=1"); require "headermenu.php"; ?> <div class="container" style="padding:30px"> <div class="row tabs" font-family: 'Microsoft YaHei',"微软雅黑", 'Avenir Next',Avenir,'Helvetica Neue',Helvetica,'Lantinghei SC','Hiragino Sans GB',STHeiti,'WenQuanYi Micro Hei',SimSun,sans-serif;> <div class="col-sm-8 text-center col-sm-offset-2" > <ul class="nav nav-tabs " style="font-size: 16px"> <li class="active"><a href="#">关于我们</a></li> <li ><a href="/product.php">产品服务</a></li> <li><a href="/joinus.php">加入我们</a></li> <li><a href="/contactus.php">联系我们</a></li> </ul> </div> <div class="col-sm-8 col-sm-offset-2 about-content" style="margin-top: 0px"> <br> <h4 class="t-h1"><?php
function findmisc($key, $language = 'zh-cn') { $r = queryDB_row("select * from miscs where id='{$key}'"); return $r[$language]; }
function UpdateFFV($argin) { if ($argin['formtype'] == 'miscs') { foreach ($argin as $key => $value) { if (substr($key, 0, 16) == 'bdshare_firstime') { continue; } if (substr($key, 0, 5) == '__cfd') { continue; } if (substr($key, 0, 4) == 'Hm_l') { continue; } if (substr($key, 0, 9) == 'PHPSESSID') { continue; } if ($key == 'formtype') { continue; } if ($key == 'language') { continue; } if ($key == 'id') { continue; } if (substr($key, 1, 5) == 'FILE_') { continue; } queryDB("UPDATE `{$argin['formtype']}` SET `{$argin['language']}`='{$value}' WHERE `id`='{$key}';"); } } else { if ($argin['formtype'] == 'aboutus') { // echo "<pre>"; $SetClause = ""; foreach ($argin as $key => $value) { if (substr($key, 0, 16) == 'bdshare_firstime') { continue; } if (substr($key, 0, 5) == '__cfd') { continue; } if (substr($key, 0, 4) == 'Hm_l') { continue; } if (substr($key, 0, 9) == 'PHPSESSID') { continue; } if ($key == 'formtype') { continue; } if ($key == 'language') { continue; } if ($key == 'id') { continue; } if ($SetClause != '') { $SetClause .= ', '; } $SetClause .= "`{$key}`='{$value}'"; } queryDB("UPDATE `{$argin['formtype']}` SET " . $SetClause . " WHERE `id`='{$argin['id']}'"); } else { if ($argin['formtype'] == 'prize') { // echo "<pre>"; $SetClause = ""; foreach ($argin as $key => $value) { if (substr($key, 0, 16) == 'bdshare_firstime') { continue; } if (substr($key, 0, 5) == '__cfd') { continue; } if (substr($key, 0, 4) == 'Hm_l') { continue; } if (substr($key, 0, 9) == 'PHPSESSID') { continue; } if ($key == 'formtype') { continue; } if ($SetClause != '') { $SetClause .= ', '; } $SetClause .= "`{$key}`='{$value}'"; } queryDB("UPDATE `{$argin['formtype']}` SET " . $SetClause . " WHERE `language`='{$argin['language']}'"); } else { if ($argin['formtype'] == 'news') { // echo "<pre>"; $SetClause = ""; foreach ($argin as $key => $value) { if (substr($key, 0, 16) == 'bdshare_firstime') { continue; } if (substr($key, 0, 5) == '__cfd') { continue; } if (substr($key, 0, 4) == 'Hm_l') { continue; } if (substr($key, 0, 9) == 'PHPSESSID') { continue; } if ($key == 'formtype') { continue; } if ($key == 'language') { continue; } if ($key == 'id') { continue; } if (substr($key, 0, 5) == 'FILE_') { continue; } if ($SetClause != '') { $SetClause .= ', '; } if ($key == 'publishTime') { $newStatus = $argin["status"]; if ($newStatus != 0) { $tempStatus = queryDB_row("select * from news where id = '{$argin['id']}'"); $oldStatus = $tempStatus['status']; if ($oldStatus == 0) { $time1 = date("Y-m-d H:i:s", time()); $SetClause .= "`publishTime`='{$time1}'"; continue; } } } $SetClause .= "`{$key}`='{$value}'"; } queryDB("UPDATE `{$argin['formtype']}` SET " . $SetClause . " WHERE `id`='{$argin['id']}'"); } else { if ($argin['formtype'] == 'links') { $SetClause = ""; foreach ($argin as $key => $value) { if (substr($key, 0, 16) == 'bdshare_firstime') { continue; } if (substr($key, 0, 5) == '__cfd') { continue; } if (substr($key, 0, 4) == 'Hm_l') { continue; } if (substr($key, 0, 9) == 'PHPSESSID') { continue; } if ($key == 'formtype') { continue; } if ($key == 'language') { continue; } if ($key == 'id') { continue; } if (substr($key, 0, 5) == 'FILE_') { continue; } if ($SetClause != '') { $SetClause .= ', '; } $SetClause .= "`{$key}`='{$value}'"; } queryDB("UPDATE `{$argin['formtype']}` SET " . $SetClause . " WHERE `id`='{$argin['id']}'"); } else { if ($argin['formtype'] == 'events') { $SetClause = ""; foreach ($argin as $key => $value) { if (substr($key, 0, 16) == 'bdshare_firstime') { continue; } if (substr($key, 0, 5) == '__cfd') { continue; } if (substr($key, 0, 4) == 'Hm_l') { continue; } if (substr($key, 0, 9) == 'PHPSESSID') { continue; } if ($key == 'formtype') { continue; } if ($key == 'language') { continue; } if ($key == 'id') { continue; } if (substr($key, 0, 5) == 'FILE_') { continue; } if ($SetClause != '') { $SetClause .= ', '; } $SetClause .= "`{$key}`='{$value}'"; } queryDB("UPDATE `{$argin['formtype']}` SET " . $SetClause . " WHERE `id`='{$argin['id']}'"); } else { $SetClause = ""; foreach ($argin as $key => $value) { if (substr($key, 0, 16) == 'bdshare_firstime') { continue; } if (substr($key, 0, 5) == '__cfd') { continue; } if (substr($key, 0, 4) == 'Hm_l') { continue; } if (substr($key, 0, 9) == 'PHPSESSID') { continue; } if ($key == 'formtype') { continue; } if ($key == 'language') { continue; } if ($key == 'id') { continue; } if (substr($key, 0, 5) == 'FILE_') { continue; } if ($SetClause != '') { $SetClause .= ', '; } $SetClause .= "`{$key}`='{$value}'"; } queryDB("UPDATE `{$argin['formtype']}` SET " . $SetClause . " WHERE `id`='{$argin['id']}'"); } } } } } } return 0; }
include "metalinks.php"; ?> <!-- Bootstrap --> <link href="bootstrap/css/bootstrap_1200.css" rel="stylesheet"> <!-- custom css--> <link href="css/style.css" rel="stylesheet" type="text/css" media="screen"> <link href="css/donghai.css" rel="stylesheet" type="text/css"> </head> <body style="background-color:#939598; "> <?php require "headermenu.php"; $prizeDb = queryDB_row("select * from prize where language = 1"); ?> <div class="container" style="padding:30px"> <div class="row tabs" font-family: 'Microsoft YaHei',"微软雅黑", 'Avenir Next',Avenir,'Helvetica Neue',Helvetica,'Lantinghei SC','Hiragino Sans GB',STHeiti,'WenQuanYi Micro Hei',SimSun,sans-serif;> <div class="col-sm-8 col-sm-offset-2 about-content" style="margin-top: 0px"> <br> <h4 class="t-h1">未来科学大奖</h4> <div class="ctt-wrap"> <div style="font-size: 16px"> <?php echo $prizeDb['editorValue']; ?> </div> </div> </div> </div>
//Page specific values $page = explode(".", basename($_SERVER['PHP_SELF'])); //$code_name=array(' switch ($page) { case 'footprints': case 'people': case 'news': $meta_specific = queryDB_array("select * from miscs where groupcode='{$page}' order by sequence asc"); foreach ($meta_specific as $value) { if (in_array($value['caption'], array_keys($metas)) && $value['en'] != '') { $metas[$value['caption']] = $value['en']; } } break; case 'event': case 'newsitem': $db_name = array('event' => 'events', 'newsitem' => 'news'); $db_code = array('event' => 'eventid', 'newsitem' => 'newsid'); $meta_specific = queryDB_row("\n select `meta-title`,`meta-keywords`,`meta-description` from `{$db_name[$page]}`\n where `code`='{$argin[$db_code[$page]]}'\n "); foreach ($metas as $key => $value) { if ($meta_specific['meta-' . $key] != '') { $metas[$key] = $meta_specific['meta-' . $key]; } } break; default: } //Write it down echo "<title>{$metas['title']}</title>"; echo "<meta name=\"keywords\" content=\"{$metas['keywords']}\">\n"; echo "<meta name=\"description\" content=\"{$metas['description']}\">\n";
<?php //20151016, V3 modified-FFW (API) //*Initialization, Configuration, and Definition require_once $_SERVER['DOCUMENT_ROOT'] . "/../app_config/FutureForumWWW.php"; //Include Modules require_once 'general.php'; //Input argument processing $argin = processRequestArguments(); //Now do stuff //When encounter errors, use stopBecause("", optional ERROR_NUMBER default -1); if (session_status() === PHP_SESSION_NONE) { session_start(); } if (!isset($_SESSION['user_id'])) { stopBecause("登录信息有误!", 1); } //*JSON encoding and return //defaults: 'status'=0, 'data'=array(), 'message'='', 'redirection'=''; produceOutputV3(array('data' => array('about' => queryDB_row("select * from aboutus where id = {$argin['id']}"))));
<?php //20151016, V3 modified-FFW (API) //*Initialization, Configuration, and Definition require_once $_SERVER['DOCUMENT_ROOT'] . "/../app_config/FutureForumWWW.php"; //Include Modules require_once 'general.php'; //Input argument processing $argin = processRequestArguments(); //Now do stuff //When encounter errors, use stopBecause("", optional ERROR_NUMBER default -1); if (!isset($argin['offset'])) { $argin['offset'] = 0; } if (!isset($argin['limit'])) { $argin['limit'] = 15; } $newsRecent = queryDB_array("\r\n select code,author,abstract,title, DATE_FORMAT(publishTime,'%Y-%c-%e %k:%i') as publishTime from news\r\n where status <> 0\r\n order by status desc, publishTime desc\r\n limit {$argin['offset']} , {$argin['limit']};\r\n"); $newsCount = queryDB_row("select count(*) as total from news where status <> 0"); //*JSON encoding and return //defaults: 'status'=0, 'data'=array(), 'message'='', 'redirection'=''; produceOutputV3(array('data' => array('newsRecent' => $newsRecent, 'newsCount' => $newsCount)));
$page = explode(".", basename($_SERVER['PHP_SELF'])); //$code_name=array(' switch ($page[0]) { case 'footprints': case 'people': case 'news': $meta_specific = queryDB_array("select * from miscs where groupcode='{$page['0']}' order by sequence asc"); foreach ($meta_specific as $value) { if (in_array($value['caption'], array_keys($metas)) && $value['zh-cn'] != '') { $metas[$value['caption']] = $value['zh-cn']; } } break; case 'event': $meta_specific = queryDB_row("\r\n select * from events where id = {$argin['eventid']}\r\n "); $metas['title'] = $meta_specific['meta-title']; $metas['keywords'] = $meta_specific['meta-keywords']; $metas['description'] = $meta_specific['meta-description']; break; case 'newsitem': $meta_specific = queryDB_row("\r\n select * from news where id = {$argin['newsid']}\r\n "); $metas['title'] = $meta_specific['meta-title']; $metas['keywords'] = $meta_specific['meta-keywords']; $metas['description'] = $meta_specific['meta-description']; break; default: } //Write it down echo "<title>{$metas['title']}</title>"; echo "<meta name=\"keywords\" content=\"{$metas['keywords']}\">\n"; echo "<meta name=\"description\" content=\"{$metas['description']}\">\n";
?> </div> <div class="category-infobox content"> <?php echo $events_category[0]['note_zh-cn']; ?> </div> </div> <div class="col-sm-7 col-sm-offset-1"> <div id="event-container" class="cbp"> <?php reset($events); while (list($number, $event) = each($events)) { $r = queryDB_row("select events_category.code as catCode from events inner join events_category on events_category.value=events.category where events.code='{$event['code']}'"); $event['group'] = str_replace(array("."), "", $r['catCode']); ?> <div class="cbp-item <?php echo $event['group']; ?> "> <div class="cbp-caption"> <div class="cbp-caption-defaultWrap"> <div class="row" style="margin:0"> <div class="col-xs-6 col-sm-12" style="padding:0"> <div class="hidden-xs"> <a class="" href="<?php echo "http://" . $_SERVER['HTTP_HOST'] . "/"; ?> footprints/<?php
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta id="viewport" name="viewport" content="width=device-width"> <?php include "metalinks.php"; $argin = processRequestArguments(); $newsitem = queryDB_row("select `id`, `code`, `title`, DATE_FORMAT(`publishTime`,'%Y-%m-%d %H:%i:%s') as `publishTime`, `editorValue`, `abstract`, `recommendation`, `author`, `status`, `keywords`, `meta-title`, `meta-keywords`, `meta-description` from news where id='{$argin['newsid']}' and status <> 0"); $newsRecommended = queryDB_array("\r\n select id,code,title from news\r\n where recommendation > 0 and status <> 0\r\n order by recommendation desc, publishTime desc\r\n limit 10;\r\n"); if (!isset($newsitem['code'])) { header('Location: ./news.php'); } $folder = "contents/news/"; ?> <!-- Bootstrap --> <link href="bootstrap/css/bootstrap_1200.css" rel="stylesheet"> <!-- custom css--> <link href="css/style.css" rel="stylesheet" type="text/css" media="screen"> <link href="css/donghai.css" rel="stylesheet" type="text/css"> </head> <body style="background-color:#939598; "> <?php
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta id="viewport" name="viewport" content="width=device-width"> <?php include "metalinks.php"; $argin = processRequestArguments(); $eventid = $argin['eventid']; $event = queryDB_row("select * from events where id='{$eventid}'"); if (!isset($event['code'])) { header('Location: ./footprints.php'); } $imgcounter = 1; $root = "../"; $folder = "http://" . $_SERVER['HTTP_HOST'] . "/" . "contents/event/"; ?> <!-- Bootstrap --> <link href="bootstrap/css/bootstrap.css" rel="stylesheet"> <!-- custom css--> <link href="css/style.css" rel="stylesheet" type="text/css" media="screen"> <link href="css/donghai.css" rel="stylesheet" type="text/css"> <style> #featured-images img, #featured-video-container img, iframe { width: 100%; padding-bottom:20px;
<?php //20151016, V3 modified-FFW (API) //*Initialization, Configuration, and Definition require_once $_SERVER['DOCUMENT_ROOT'] . "/../app_config/FutureForumWWW.php"; //Include Modules require_once 'general.php'; //Input argument processing $argin = processRequestArguments(); //Now do stuff //When encounter errors, use stopBecause("", optional ERROR_NUMBER default -1); if (session_status() === PHP_SESSION_NONE) { session_start(); } if (!isset($_SESSION['user_id'])) { stopBecause("登录信息有误!", 1); } //*JSON encoding and return //defaults: 'status'=0, 'data'=array(), 'message'='', 'redirection'=''; produceOutputV3(array('data' => array('prize' => queryDB_row("select * from prize where language = {$argin['language']}"))));