1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
| $go = @$_GET['go'];
if (isset($go) && file_exists("pages/".$go.".php")){
$go = str_replace("/",'',$go);
$go = str_replace("\\",'',$go);
}
else {
$go = "index";
}
require 'DB.php';
$dsn = 'mysql://dbo116:ms3Nvbkz@d11.utun.com/db2116';
$dbh = DB::connect($dsn);
if (DB::isError($dbh)) { die ($dbh->getMessage());}
$assoc = $dbh->getAssoc("SELECT * FROM meta WHERE page = '$go'");
DB::isError($assoc) and print 'erreur base de donnée'.$assoc->getMessage();
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\"\n"
."\"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n"
."<html xml:lang=\"fr\" xmlns=\"http://www.w3.org/1999/xhtml\">\n"
."\t<head>\n"
."\t\t<title>\n"
."\t\t\t".$assoc[$go][0]
."\n\t\t</title>\n"
."\t\t<meta http-equiv=\"content-type\" content=\"application/xhtml+xml; charset=iso-8859-1\" />\n"
."\t\t<meta http-equiv=\"expires\" content=\"0\" />\n"
."\t\t<meta http-equiv=\"content-language\" content=\"fr\" />\n"
."\t\t<meta http-equiv=\"pragma\" content=\"no-cache\" />\n"
."\t\t<meta name=\"author\" content=\"yoyo\" />\n"
."\t\t<meta name=\"keywords\" content=\"accueil, blog, potes, gnu, linux, hardware, site, contacte, liens, forum".$assoc[$go][2]."\" />\n"
."\t\t<meta name=\"description\" content=\"".$assoc[$go][1]."\" />\n"
."\t\t<meta name=\"revisit-after\" content=\"2 days\" />\n"
."\t\t<meta name=\"date\" content=\"".$assoc[$go][3]."T20:49:37+00:00\" />\n"
."\t\t<meta name=\"generator\" content=\"PSPad editor, www.pspad.com\" />\n"
."\t\t<meta name=\"expires\" content=\"never\" />\n"
."\t\t<meta name=\"robots\" content=\"index,follow,noarchive\" />\n"
."\t\t<meta name=\"rating\" content=\"general\" />\n"
."\t\t<meta name=\"Date-Creation-yyyymmdd\" content=\"20041105\" />\n"
."\t\t<meta name=\"DC.Title\" content=\"".$assoc[$go][0]."\" />\n"
."\t\t<meta name=\"DC.Creator\" content=\"yoyo\" />\n"
."\t\t<meta name=\"DC.Subject\" content=\"".$assoc[$go][1]."\" />\n"
."\t\t<meta name=\"DC.Publisher\" content=\"yoyo\" />\n"
."\t\t<meta name=\"DC.Contributor\" content=\"yoyo\" />\n"
."\t\t<meta name=\"DC.Date\" content=\"".$assoc[$go][3]."\" />\n"
."\t\t<meta name=\"DC.Type\" content=\"texte\" />\n"
."\t\t<meta name=\"DC.Format\" content=\"text/html\" />\n"
."\t\t<meta name=\"DC.Identifier\" content=\"http://mysite.com\" />\n"
."\t\t<meta name=\"DC.Source\" content=\"all\" />\n"
."\t\t<meta name=\"DC.Language\" content=\"fr\" />\n"
."\t\t<meta name=\"DC.Relation\" content=\"index\" />\n"
."\t\t<meta name=\"DC.Coverage\" content=\"France\" />\n"
."\t\t<meta name=\"DC.Rights\" content=\"GNU sauf mentions contraires\" />\n"
#."\t\t<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"./style/lightblack.css\" />\n"
."\t\t<link rel=\"stylesheet\" type=\"text/css\" media=\"all\" href=\"./style/".$fstyle.".css\" />\n"
."\t</head>\n" |
Partager