Blame Artworks/Webenv/Puntal/themes/punbb/__prepend.php

Alain Reguera Delgado 46de3c
Alain Reguera Delgado 46de3c
/***********************************************************************
Alain Reguera Delgado 46de3c

Alain Reguera Delgado 46de3c
  Copyright (C) 2005-2007 Vincent Garnier and contributors. All rights
Alain Reguera Delgado 46de3c
  reserved.
Alain Reguera Delgado 46de3c
  
Alain Reguera Delgado 46de3c
  This file is part of Puntal 2.
Alain Reguera Delgado 46de3c

Alain Reguera Delgado 46de3c
  Puntal 2 is free software; you can redistribute it and/or modify it
Alain Reguera Delgado 46de3c
  under the terms of the GNU General Public License as published
Alain Reguera Delgado 46de3c
  by the Free Software Foundation; either version 2 of the License,
Alain Reguera Delgado 46de3c
  or (at your option) any later version.
Alain Reguera Delgado 46de3c

Alain Reguera Delgado 46de3c
  Puntal 2 is distributed in the hope that it will be useful, but
Alain Reguera Delgado 46de3c
  WITHOUT ANY WARRANTY; without even the implied warranty of
Alain Reguera Delgado 46de3c
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Alain Reguera Delgado 46de3c
  GNU General Public License for more details.
Alain Reguera Delgado 46de3c

Alain Reguera Delgado 46de3c
  You should have received a copy of the GNU General Public License
Alain Reguera Delgado 46de3c
  along with this program; if not, write to the Free Software
Alain Reguera Delgado 46de3c
  Foundation, Inc., 59 Temple Place, Suite 330, Boston,
Alain Reguera Delgado 46de3c
  MA  02111-1307  USA
Alain Reguera Delgado 46de3c

Alain Reguera Delgado 46de3c
************************************************************************/
Alain Reguera Delgado 46de3c

Alain Reguera Delgado 46de3c
/**
Alain Reguera Delgado 46de3c
@function startBloc
Alain Reguera Delgado 46de3c

Alain Reguera Delgado 46de3c
Affiche le HTML du début d'un bloc.
Alain Reguera Delgado 46de3c

Alain Reguera Delgado 46de3c
@param	string	title		Le titre du bloc ('')
Alain Reguera Delgado 46de3c
@param	string	id			L'identifiant du bloc ('')
Alain Reguera Delgado 46de3c
*/
Alain Reguera Delgado 46de3c
function startBloc($title='',$id='')
Alain Reguera Delgado 46de3c
{
Alain Reguera Delgado 46de3c
	// un compteur si jamais il y a pas d'identifiant de spécifié	
Alain Reguera Delgado 46de3c
	static $i;
Alain Reguera Delgado 46de3c
	
Alain Reguera Delgado 46de3c
	$id = $id != '' ? $id : $i;
Alain Reguera Delgado 46de3c
	
Alain Reguera Delgado 46de3c
	$res = '';
Alain Reguera Delgado 46de3c
	$res .= "\t".'
'."\n";
Alain Reguera Delgado 46de3c
	
Alain Reguera Delgado 46de3c
	if ($title!='')
Alain Reguera Delgado 46de3c
		$res .= "\t".'

'.$title.'

'."\n";
Alain Reguera Delgado 46de3c
	
Alain Reguera Delgado 46de3c
	$res .= 
Alain Reguera Delgado 46de3c
	"\t\t".'
'."\n".
Alain Reguera Delgado 46de3c
	"\t\t\t".'
'."\n";
Alain Reguera Delgado 46de3c
	
Alain Reguera Delgado 46de3c
	echo $res;
Alain Reguera Delgado 46de3c
	$i++;
Alain Reguera Delgado 46de3c
}
Alain Reguera Delgado 46de3c

Alain Reguera Delgado 46de3c

Alain Reguera Delgado 46de3c
/**
Alain Reguera Delgado 46de3c
@function endBloc
Alain Reguera Delgado 46de3c

Alain Reguera Delgado 46de3c
Affiche le HTML de la fin d'un bloc.
Alain Reguera Delgado 46de3c
*/
Alain Reguera Delgado 46de3c
function endBloc()
Alain Reguera Delgado 46de3c
{
Alain Reguera Delgado 46de3c
	echo 
Alain Reguera Delgado 46de3c
	"\t\t\t".''."\n".
Alain Reguera Delgado 46de3c
	"\t\t".''."\n".
Alain Reguera Delgado 46de3c
	"\t".'';
Alain Reguera Delgado 46de3c
}
Alain Reguera Delgado 46de3c

Alain Reguera Delgado 46de3c

Alain Reguera Delgado 46de3c
/**
Alain Reguera Delgado 46de3c
@function headJsIe
Alain Reguera Delgado 46de3c

Alain Reguera Delgado 46de3c
Affiche le javascript pour IE.
Alain Reguera Delgado 46de3c
*/
Alain Reguera Delgado 46de3c
function headJsIe()
Alain Reguera Delgado 46de3c
{
Alain Reguera Delgado 46de3c
	$user_agent = isset($_SERVER['HTTP_USER_AGENT']) ? strtolower($_SERVER['HTTP_USER_AGENT']) : '';
Alain Reguera Delgado 46de3c
	if (strpos($user_agent, 'msie') !== false && strpos($user_agent, 'windows') !== false && strpos($user_agent, 'opera') === false)
Alain Reguera Delgado 46de3c
		echo '<script type="text/javascript" src="'.pt_forum_url.'style/imports/minmax.js"></script>';
Alain Reguera Delgado 46de3c
}
Alain Reguera Delgado 46de3c

Alain Reguera Delgado 46de3c
/**
Alain Reguera Delgado 46de3c
@function startBlocStatic
Alain Reguera Delgado 46de3c

Alain Reguera Delgado 46de3c
Affiche le HTML du début d'un bloc.
Alain Reguera Delgado 46de3c

Alain Reguera Delgado 46de3c
@param	string	title		Le titre du bloc ('')
Alain Reguera Delgado 46de3c
@param	string	id			L'identifiant du bloc ('')
Alain Reguera Delgado 46de3c
*/
Alain Reguera Delgado 46de3c
function startBlocStatic($title='',$id='')
Alain Reguera Delgado 46de3c
{
Alain Reguera Delgado 46de3c
	// un compteur si jamais il y a pas d'identifiant de spécifié	
Alain Reguera Delgado 46de3c
	static $i;
Alain Reguera Delgado 46de3c
	
Alain Reguera Delgado 46de3c
	$id = $id != '' ? $id : $i;
Alain Reguera Delgado 46de3c
	
Alain Reguera Delgado 46de3c
	$res = '';
Alain Reguera Delgado 46de3c
	$res .= "\t".'
'."\n";
Alain Reguera Delgado 46de3c
	
Alain Reguera Delgado 46de3c
	if ($title!='')
Alain Reguera Delgado 46de3c
		$res .= "\t".'

'.$title.'

'."\n";
Alain Reguera Delgado 46de3c
	
Alain Reguera Delgado 46de3c
	$res .= 
Alain Reguera Delgado 46de3c
	"\t\t".'
'."\n".
Alain Reguera Delgado 46de3c
	"\t\t\t".'
'."\n";
Alain Reguera Delgado 46de3c
	
Alain Reguera Delgado 46de3c
	return $res;
Alain Reguera Delgado 46de3c
	$i++;
Alain Reguera Delgado 46de3c
}
Alain Reguera Delgado 46de3c
/**
Alain Reguera Delgado 46de3c
@function endBlocStatic
Alain Reguera Delgado 46de3c

Alain Reguera Delgado 46de3c
Affiche le HTML de la fin d'un bloc.
Alain Reguera Delgado 46de3c
*/
Alain Reguera Delgado 46de3c
function endBlocStatic()
Alain Reguera Delgado 46de3c
{
Alain Reguera Delgado 46de3c
	return
Alain Reguera Delgado 46de3c
	"\t\t\t".''."\n".
Alain Reguera Delgado 46de3c
	"\t\t".''."\n".
Alain Reguera Delgado 46de3c
	"\t".'';
Alain Reguera Delgado 46de3c
}
Alain Reguera Delgado 46de3c

Alain Reguera Delgado 46de3c
?>