guismo
Enregistré le 06/02/2005
Messages: 116
Non connecté
|
Ajouté le : 11/02/2005 22:06
Message :
pardonnez moi c'est encore moi : le boulet de service :(
voila ma page de codes et ca marche pas, si quelqu'un saurait m'expliquer pourquoi je lui en serait fort reconnaissant :
<?
//*********************************************************************************
//* *
//* CoolForum v.0.7 Beta : Forum de discussion *
//* Copyright ©2001-2002 SORIANO Denis alias Cool Coyote *
//* *
//* *
//* 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. *
//* *
//* *
//* Forum Créé par SORIANO Denis (Cool Coyote) *
//* contact : coyote@coolcoyote.net *
//* site web et téléchargement : http://www.coolforum.net *
//* *
//*********************************************************************************
$nocache=true;
require("secret/connect.php");
require("admin/functions.php");
require("entete.php");
getlangage("popup");
$maxuploadsize = "100"; // taille maximale en Ko
if($_REQUEST['action']=="uploadform")
{
if($_USER['userstatus']>1)
$tpl->box['contents']=$tpl->gettemplate("popup","formupload");
else
$tpl->box['contents']=$tpl->gettemplate("popup","cantupload");
$cache.=$tpl->gettemplate("popup","uploadbox");
}
if($_REQUEST['action']=="upload")
{
if($_USER['userstatus']>1)
{
if($_FILES['logo']['tmp_name']<>"none" && !empty($_FILES['logo']['tmp_name']))
{
$ext = "";
echo $_FILES['logo']['type'];
switch($_FILES['logo']['type'])
{
case "image/pjpeg": $ext = ".jpg"; break;
case "image/gif": $ext = ".gif"; break;
case "image/jpeg": $ext = ".jpeg"; break;
}
if($_FILES['logo']['size']<($maxuploadsize*1024) && strlen($ext)>0)
{
$filename = time();
$copy = @move_uploaded_file($_FILES['logo']['tmp_name'],"upload/".$filename.$ext);
@chmod("upload/".$filename.$ext, 0777);
if($copy)
$tpl->box['contents']=$tpl->gettemplate("popup","uploadok");
else
$tpl->box['contents']=$tpl->gettemplate("popup","uploadnok");
}
else
$tpl->box['contents']=$tpl->gettemplate("popup","uploadnotallowed");
}
else
$tpl->box['contents']=$tpl
merci d'avance et pardonnez moi pour le dérangement mais j'aimerai vraiment installer ce hack et j'en suis vraiment incapable :(
olivier, webmaster de www.i-parrot.net
perroquets, perruches : blogs animaliers, fiches infos, goodies ... et biensur forum !
|