Location: PHPKode > projects > Quick Guestbook > quicktalk/install/qtg_setup.php
<?php

// QuickTalk Guestbook 2.5 build:20100731

session_start();
$strV = '2.5';

if ( !isset($_SESSION['boardmail']) ) $_SESSION['boardmail']='';
if ( !isset($_SESSION['qtg_setup_lang']) ) $_SESSION['qtg_setup_lang']='en';

$arrLangs = array();
$arrLangs['en'] = 'English';
if ( file_exists('qtg_lang_fr.php') ) $arrLangs['fr'] = 'Fran&ccedil;ais';
if ( file_exists('qtg_lang_nl.php') ) $arrLangs['nl'] = 'Nederlands';
if ( file_exists('qtg_lang_it.php') ) $arrLangs['it'] = 'Italiano';
if ( file_exists('qtg_lang_es.php') ) $arrLangs['es'] = 'Espa&ntilde;ol';
if ( file_exists('qtg_lang_de.php') ) $arrLangs['de'] = 'Deutsche';
if ( file_exists('qtg_lang_pt.php') ) $arrLangs['pt'] = 'Portuguese';

// --------
// Html start
// --------

echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" xml:lang="en" lang="en">

<head>
<title>QuickTalk Guestbook</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1"/>
<link rel="stylesheet" type="text/css" href="qtg_setup.css"/>
</head>
';
echo '
<body>

<!-- PAGE CONTROL -->
<div class="qtg_page">
<table class="qtg_page" width="450" cellspacing="0" style="margin:5px">
<tr class="qtg_page">
<td class="qtg_page">
<!-- PAGE CONTROL -->
';
echo '
<!-- HEADER BANNER -->
<div class="banner">
<div class="banner_in">
<img src="qtg_logo.gif" width="175" height="50" style="border-width:0" alt="QuickTalk" title="QuickTalk"/>
</div>
</div>
<!-- END HEADER BANNER -->
';
echo '
<!-- BODY MAIN -->
<table class="body" width="100%" cellspacing="0" style="border:1px solid #AAAAAA">
<tr class="body">
<td class="body" style="padding:5px">
<!-- BODY MAIN -->
';
echo '<h1>QuickTalk guestbook ',$strV,'</h1>';
echo '<h2>Language ?</h2>';
echo '
<form method="get" action="qtg_setup_1.php">
<select name="language" size="1">';
foreach($arrLangs as $strKey=>$strLang)
{
echo '<option value="',$strKey,'"',($_SESSION['qtg_setup_lang']==$strKey ? ' selected="selected"' : ''),'>',$strLang,'</option>';
}
echo '</select>
<input type="submit" name="ok" value="Ok"/>
</form>
';

// --------
// HTML END
// --------

echo '
<!-- END BODY MAIN -->
</td>
</tr>
</table>
<!-- END BODY MAIN -->

<div class="div_footer_copy">
<span class="p_footer_copy">powered by <a href="http://www.qt-cute.org" class="a_footer_copy">QT-cute</a></span>
</div>

<!-- END PAGE CONTROL -->
</td>
</tr>
</table>
</div>
<!-- END PAGE CONTROL -->

</body>
</html>';

?>
Return current item: Quick Guestbook