Location: PHPKode > projects > QuickTalk Forum > quicktalk/qtf_adm_prefix.php
<?php

/**
* PHP versions 4 and 5
*
* LICENSE: This source file is subject to version 3.0 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license. If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to hide@address.com so we can mail you a copy immediately.
*
* @category   Forum
* @package    QuickTalk
* @author     Philippe Vandenberghe <hide@address.com>
* @copyright  2008-2012 The PHP Group
* @version    2.5 build:20100924
* @since      File available since Release 1.0.0
* @deprecated File deprecated in Release 3.0.0
*/

session_start();
require_once('bin/qtf_init.php');
include(Translate('qtf_adm.php'));

if ( $oVIP->role!='A' ) die($L['E_admin']);

// INITIALISE

$oVIP->selfurl = 'qtf_adm_prefix.php';
$oVIP->exiturl = 'qtf_adm_sections.php';
$oVIP->selfname = $L['Topic_prefix'];
$oVIP->exitname = $L['Sections'];

// --------
// HTML START
// --------

include('qtf_adm_p_header.php');

echo '
<table cellspacing="0" class="hidden">
<tr class="hidden">
<td class="hidden" style="width:200px"><h1>',$oVIP->selfname,'</h1></td>
<td class="hidden">
';

// Browse image file

foreach($L['Prefix_serie'] as $strKey=>$strName)
{
echo '<table cellspacing="0" class="hidden">
<tr class="hidden">
<td class="hidden" style="width:200px; border-bottom:solid 1px #aaaaaa"><h2>',$strName,'</h2>
<td class="hidden" style=" border-bottom:solid 1px #aaaaaa">';

echo '<table cellspacing="0" class="hidden">
<colgroup span="3"><col style="width:50px;"></col><col style="width:50px;"></col><col></col></colgroup>
<tr class="hidden"><th>#</th><th>Icon</th><th>Name</th></tr>
';
for ($i=1;$i<10;$i++)
{
  if ( file_exists($_SESSION[QT]['skin_dir'].'/ico_prefix_'.$strKey.'_0'.$i.'.gif') )
  {
  echo '<tr class="hidden"><td>',$strKey,' 0',$i,'</td><td><img src="',$_SESSION[QT]['skin_dir'],'/ico_prefix_',$strKey,'_0',$i,'.gif"/></td><td>',$L['Ico_prefix'][$strKey.'_0'.$i],'</td></tr>',N;
  }
}
echo '
</table>
</td>
</tr>
</table>
';
}

echo '</td>
</tr>
</table>';

// HTML END

include('qtf_adm_p_footer.php');

?>
Return current item: QuickTalk Forum