<?php
/**
* Project: Powerful Content Management System (twain)
* Author: Onur Yerlikaya <onur [DOT] yerlikaya [AT] linux [DOT] org [DOT] tr>
* Author: Türker SEZER <turkersezer [AT] tsdesign [DOT] info>
* Date: 30 July 2006
* File: index.php
* Version: 0.1
**/
# Copyright (C) 2006 by Onur Yerlikaya <onur [DOT] yerlikaya [AT] linux [DOT] org [DOT] tr>, Türker SEZER <turkersezer[AT] tsdesign [DOT] info>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the
# Free Software Foundation, Inc.,
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
$getCode = empty($_GET['getCode']) ? "" : $_GET['getCode'];
if( $getCode == 1 ) {
echo <<<html_content_header
<html>
<head>
<head>
<title> Twain </title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
html_content_header;
show_source("index.php");
exit();
echo <<<html_content_footer
</body>
</html>
html_content_footer;
}
echo <<<html_content
<html>
<head>
<head>
<title> Twain </title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<center><img src="index.gif" width="800" height="600"></center>
<center><a href="?getCode=1">PHP kaynak kodunu göster/ Show Source as PHP</a></center>
</body>
</html>
html_content;
?>