} @imagecopyresized($im, $src, 0, 0, 0, 0, $w_i, $h_i, $size['largeur'][1], $size['hauteur'][1]); @imageinterlace($im, 1); if ($ext == "gif") { @imagegif($im, $Destination . $Image); } else { @imagejpeg($im, $Destination . $Image, 75); } @chmod($Dest . $Image, 0766); $size['gene-img'][0] = true; } return $size; } // Lancement sur un Repertoire en fonction d'un fichier de conf particulier if ($FmaRep) { if (filtre_module($FmaRep)) { if (file_exists("modules/{$ModPath}/users/" . strtolower($FmaRep) . ".conf.php")) { include "modules/{$ModPath}/users/" . strtolower($FmaRep) . ".conf.php"; if (fma_autorise("a", "")) { $theme_fma = $themeG_fma; $fic_minuscptr = 0; $dir_minuscptr = 0; } else { Access_Error(); } } else { Access_Error(); } } else { Access_Error(); }
/* */ /* Based on PhpNuke 4.x source code */ /* Based on Parts of phpBB */ /* */ /* NPDS Copyright (c) 2002-2015 by Philippe Brunier */ /* */ /* 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. */ /************************************************************************/ if (!function_exists("Mysql_Connexion")) { die; } include 'functions.php'; include 'auth.php'; filtre_module($file_name); if (file_exists("modules/comments/{$file_name}.conf.php")) { include "modules/comments/{$file_name}.conf.php"; } else { die; } settype($forum, "integer"); if ($forum >= 0) { die; } // gestion des params du 'forum' : type, accès, modérateur ... $forum_name = 'comments'; $forum_type = 0; $allow_to_post = false; if ($anonpost) { $forum_access = 0;
if ($strtmp != "") { return true; } else { return false; } } } if (filtre_module($ModPath) and filtre_module($ModStart)) { if (!function_exists("Mysql_Connexion")) { include "mainfile.php"; } if (file_exists("modules/{$ModPath}/{$ModStart}.php")) { include "modules/{$ModPath}/{$ModStart}.php"; die; } else { Access_Error(); } } elseif (filtre_module($name) and filtre_module($file)) { // phpnuke compatibility if (!function_exists("Mysql_Connexion")) { include "mainfile.php"; } if (file_exists("modules/{$name}/{$file}.php")) { include "modules/{$name}/{$file}.php"; die; } else { Access_Error(); } } else { Access_Error(); }