OSDN Git Service

Add files via upload
[idb/iDB.git.git] / preindex.php
index 03959dd..8edfa1f 100644 (file)
@@ -8,10 +8,10 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     Revised BSD License for more details.
 
-    Copyright 2004-2010 iDB Support - http://idb.berlios.de/
-    Copyright 2004-2010 Game Maker 2k - http://gamemaker2k.org/
+    Copyright 2004-2019 iDB Support - https://idb.osdn.jp/support/category.php?act=view&id=1
+    Copyright 2004-2019 Game Maker 2k - https://idb.osdn.jp/support/category.php?act=view&id=2
 
-    $FileInfo: preindex.php - Last Update: 05/15/2010 SVN 491 - Author: cooldude2k $
+    $FileInfo: preindex.php - Last Update: 08/02/2019 SVN 905 - Author: cooldude2k $
 */
 $pretime = explode(" ", microtime());
 $utime = $pretime[0];
@@ -22,24 +22,40 @@ if ($File3Name=="preindex.php"||$File3Name=="/preindex.php") {
        header('Location: index.php');
        exit(); }
 require('sql.php');
+if($_GET['act']=="sqldumper"&&$Settings['sqltype']=="cubrid") { $_GET['act'] = "view"; }
 if($_GET['act']=="sqldumper"&&$_SESSION['UserGroup']!=$Settings['GuestGroup']&&
        $GroupInfo['HasAdminCP']=="yes") { 
        if($Settings['sqltype']=="mysql"||$Settings['sqltype']=="mysqli") {
        require($SettDir['sqldumper'].'mysql.php'); }
        if($Settings['sqltype']=="pgsql") {
        require($SettDir['sqldumper'].'pgsql.php'); } 
-       if($Settings['sqltype']=="sqlite") {
+       if($Settings['sqltype']=="sqlite"||$Settings['sqltype']=="sqlite3") {
        require($SettDir['sqldumper'].'sqlite.php'); } 
+       if($Settings['sqltype']=="cubrid") {
+       require($SettDir['sqldumper'].'cubrid.php'); } 
        session_write_close(); die(); }
 if(!isset($checklowview)) {
        $checklowview = false; }
 if($checklowview!==false&&$checklowview!==true) {
        $checklowview = false; }
+if($_GET['act']=="lofi"||$_GET['act']=="lo-fi"||
+       $_GET['act']=="LoFi"||$_GET['act']=="Lo-Fi"||
+       $_GET['act']=="lores"||$_GET['act']=="lo-res"||
+       $_GET['act']=="LoRes"||$_GET['act']=="Lo-Res"||
+       $_GET['act']=="LowView"||$_GET['act']=="low-view"||
+       $_GET['act']=="Low-View") { $_GET['act'] = "lowview"; }
 if($_GET['act']!="lowview") { 
        $checklowview = false; }
 if($Settings['enable_rss']=="on") {
 if(!isset($_GET['feed'])) { $_GET['feed'] = null; }
-if($_GET['feed']=="rss"||$_GET['act']=="Feed"||$_GET['feed']=="atom") {
+if($_GET['feed']=="rss"||$_GET['act']=="feed"||
+       $_GET['feed']=="oldrss"||$_GET['feed']=="atom"||
+       $_GET['feed']=="opml"||$_GET['feed']=="opensearch") {
+       $_GET['feedtype'] = $_GET['feed']; }
+if($_GET['feed']=="rss"||$_GET['act']=="Feed"||
+       $_GET['feed']=="oldrss"||$_GET['feed']=="atom"||
+       $_GET['feed']=="opml"||$_GET['feed']=="opensearch"||
+       $_GET['act']=="feed") {
        require($SettDir['inc'].'rssfeed.php'); } }
 if($Settings['output_type']=="htm") {
        $Settings['output_type'] = "html"; }
@@ -47,24 +63,9 @@ if($Settings['output_type']=="xhtm") {
        $Settings['output_type'] = "xhtml"; }
 if($Settings['output_type']=="xml+htm") {
        $Settings['output_type'] = "xhtml"; }
-if($Settings['html_type']=="html5") {
+if($Settings['html_type']=="html5"||
+       $Settings['html_type']=="xhtml5"||
+       ($Settings['html_type']!="html5"&&
+        $Settings['html_type']!="xhtml5")) {
 require($SettDir['inc'].'html5.php'); }
-if($Settings['html_type']=="xhtml10") {
-require($SettDir['inc'].'xhtml10.php'); }
-if($Settings['html_type']=="xhtml11") {
-if(stristr($_SERVER["HTTP_ACCEPT"],"application/xhtml+xml")) {
-$ccstart = "//<![CDATA["; $ccend = "//]]>";
-require($SettDir['inc'].'xhtml11.php'); } else {
-if (stristr($_SERVER["HTTP_USER_AGENT"],"W3C_Validator")) {
-       $ccstart = "//<![CDATA["; $ccend = "//]]>";
-   require($SettDir['inc'].'xhtml11.php'); } else { 
-          $ccstart = "//<!--"; $ccend = "//-->";
-          $Settings['html_type']="xhtml10";
-          $Settings['html_level']="Strict";
-          require($SettDir['inc'].'xhtml10.php'); } } }
-if($Settings['html_type']!="xhtml10"&&
-       $Settings['html_type']!="xhtml11"&&
-       $Settings['html_type']!="html5") {
-       $ccstart = "//<!--"; $ccend = "//-->";
-       require($SettDir['inc'].'xhtml10.php'); }
 ?>