Module (Mezinfo)

bonjour j'ai cette erreur quand je veux ajouter le module


Code PHP :
Pour copier le contenu exact du code,
Veuillez citer le message
  1. <?php  
  2. #####!!!#####
  3.  
  4. Problème détecté sur les copyrights: © KwsPHP. Il s&#8217;agit soit:
  5. D&#8217;une erreur dans votre code. En cas de problème pour le résoudre, veuillez nous consulter.
  6. D&#8217;un retrait volontaire de votre part. Dans ce cas merci de prendre note de ce message.
  7.  
  8. #####!!!#####
  9. ?>



voici le code du fichier admin.php


Code PHP :
Pour copier le contenu exact du code,
Veuillez citer le message
  1. <?php
  2.  
  3. if (!(defined('__KWS__'))) {die ('Erreur d\'appel de fichier.');}
  4.  
  5. }
  6. $requete=reqmysql("SELECT * FROM `Kws_users` WHERE `Kws_users`.`pseudo`=\"$pseudo\"");
  7. $ligne = Kws_mysql_fetch_object($requete);
  8. if ($ligne->grade=4) {
  9.  
  10. $infos = "Nom : <a href=index.php?mod=admin&ac=param&id=$result_blocs->id onmouseover=aide(\"C'est&nbsp;le&nbsp;titre&nbsp;de&nbsp;la&nbsp;fenêtre.\"); onmouseout=aide(\"Cliquez&nbsp;sur&nbsp;un&nbsp;parametre&nbsp;pour&nbsp;le&nbsp;modifier\");>$result_blocs->parametre1 [Editer]</A><BR><BR>";
  11.  
  12. $informations = "<B>Nom</B> : MeZinfo<BR>
  13.                  <B>Type</B> : Bloc<BR>
  14.                  <B>Auteur</B> : b0b0</a><BR>
  15.                  <B>Version</B> : 1.0<BR>
  16.                  <BR>
  17.                  <B>Description</B> : Bloc d'informations Systeme" ;
  18.  
  19. $new = "<form action=modules/admin/new3.php>
  20.         Ajouter le bloc MeZinfo :
  21.         <BR><BR>Ce bloc affiches quelques infos sur votre pc (Résolution, Addresse IP, ...) .
  22.         <BR><BR>Nom de la fenetre : <input type=text value=MeZinfo name=parametre1 size=20 maxlength=30>
  23.         <BR><BR><input type=submit value='Ajouter le bloc'>
  24.         <input type=hidden name=emplacement value=$emplacement>
  25.         <input type=hidden name=module value=$module>
  26.         </form>" ;
  27.  
  28. $edit = "<form action=modules/admin/edit.php>
  29.         Bloc 'MeZinfo':
  30.         <BR><BR>Nom de la fenetre : <input type=text value=\"$parametre1\" name=parametre1 size=20 maxlength=30>
  31.         <BR><BR><input type=submit value='Valider'>
  32.         <input type=hidden name=id value=$id>
  33.         </form>" ;
  34. }
  35. ?>



et voici le code du fichier bloc.php



Code PHP :
Pour copier le contenu exact du code,
Veuillez citer le message
  1. <?php
  2.  
  3. if (!(defined('__KWS__'))) {die ('Erreur d\'appel de fichier.');}
  4.  
  5.  
  6. function OS() {
  7.     $ua = $_SERVER['HTTP_USER_AGENT'];
  8.     $os = "Autre/Bot";
  9.     $os_arr = array(
  10.         // -- Windows Phone
  11.         'Windows Phone' => 'Windows Phone',
  12.         // -- Android
  13.         'Android' => 'Android',
  14.         // -- Windows
  15.         'Windows NT 10' => 'Windows 10',
  16.         'Windows NT 6.3' => 'Windows 8.1',
  17.         'Windows NT 6.2' => 'Windows 8',
  18.         'Windows NT 6.1' => 'Windows Seven',
  19.         'Windows NT 6.0' => 'Windows Vista',
  20.         'Windows NT 5.2' => 'Windows Server 2003',
  21.         'Windows NT 5.1' => 'Windows XP',
  22.         'Windows NT 5.0' => 'Windows 2000',
  23.         'Windows 2000' => 'Windows 2000',
  24.         'Windows CE' => 'Windows Mobile',
  25.         'Win 9x 4.90' => 'Windows Me.',
  26.         'Windows 98' => 'Windows 98',
  27.         'Windows 95' => 'Windows 95',
  28.         'Win95' => 'Windows 95',
  29.         'Windows NT' => 'Windows NT',
  30.         // -- Linux
  31.         'Ubuntu' => 'Linux Ubuntu',
  32.         'Fedora' => 'Linux Fedora',
  33.         'Linux' => 'Linux',
  34.         // -- Mac
  35.         'Macintosh' => 'Mac',
  36.         'Mac OS X' => 'Mac OS X',
  37.         'Mac_PowerPC' => 'Mac PowerPC',
  38.         'Mac' => 'Mac',
  39.         // -- Autres ...
  40.         'FreeBSD' => 'FreeBSD',
  41.         'Unix' => 'Unix',
  42.         'Playstation portable' => 'Playstation portable',
  43.         'Playstation 1' => 'Playstation 1',
  44.         'Playstation 2' => 'Playstation 2',
  45.         'Playstation 3' => 'Playstation 3',
  46.         'OpenSolaris' => 'SunOS',
  47.         'SunOS' => 'SunOS',
  48.         'Nintendo Wii' => 'Nintendo Wii',
  49.         'Googlebot' => 'Google Bot',
  50.         'Haiku' => 'Haiku',
  51.     );
  52.     $ua = strtolower($ua);
  53.     foreach($os_arr as $k => $v) {
  54.         if(preg_match("#".$k."#i", $ua)) {
  55.             $os = $v;
  56.             break;
  57.         }
  58.     }
  59.     return $os;
  60. }
  61.  
  62. function Navigateur() {
  63.     $u_agent = $_SERVER['HTTP_USER_AGENT'];
  64.     $bname = 'Autre/Bot';
  65.     $version = "";
  66.     if(preg_match('/MSIE/i', $u_agent) && !preg_match('/Opera/i', $u_agent)) {
  67.         $bname = 'Internet Explorer';
  68.         $ub = "MSIE";
  69.     } else if(preg_match('/Edge/i', $u_agent)) {
  70.         $bname = 'Edge';
  71.         $ub = "Edge";    
  72.     } else if(preg_match('/Android/i', $u_agent)) {
  73.         $bname = 'Android';
  74.         $ub = "Android";
  75.     } else if(preg_match('/Firefox/i', $u_agent)) {
  76.         $bname = 'Mozilla Firefox';
  77.         $ub = "Firefox";
  78.     } else if(preg_match('/Chrome/i', $u_agent)) {
  79.         $bname = 'Google Chrome';
  80.         $ub = "Chrome";
  81.     } else if(preg_match('/Safari/i', $u_agent)) {
  82.         $bname = 'Apple Safari';
  83.         $ub = "Safari";
  84.     } else if(preg_match('/Opera/i', $u_agent)) {
  85.         $bname = 'Opera';
  86.         $ub = "Opera";
  87.     } else if(preg_match('/Netscape/i', $u_agent)) {
  88.         $bname = 'Netscape';
  89.         $ub = "Netscape";
  90.     } else if(preg_match('/Googlebot/i', $u_agent)) {
  91.         $bname = 'Googlebot';
  92.         $ub = "Googlebot";
  93.     } else if(preg_match('/Edge/i', $u_agent)) {
  94.         $bname = 'Edge';
  95.         $ub = "Edge";    
  96.     }
  97.     $known = array('Version', $ub, 'other');
  98.     $pattern = '#(?<browser>'.join('|', $known).')[/ ]+(?<version>[0-9.|a-zA-Z.]*)#';
  99.     //if(!preg_match_all($pattern, $u_agent, $matches)) { }
  100.     $i = count($matches['browser']);
  101.     if($i !== 1) {
  102.         //if(strripos($u_agent, "Version") < strripos($u_agent, $ub)) {
  103.             $version = $matches['version'][0];
  104.         } else {
  105.             $version = $matches['version'][1];
  106.         }
  107.     //} else {
  108.         //$version = $matches['version'][0];
  109.     //}
  110.     if($version == null) {
  111.         $version = "";
  112.     }
  113.     return $bname." ".$version;
  114. }
  115.  
  116. $bloc = "
  117. <!-- Debut du Bloc -->
  118. <center>
  119. <script language='javascript'>
  120. document.write('<b>Addresse IP</b><br>".$_SERVER['REMOTE_ADDR']."');
  121. document.write('<hr><b>Résolution</b><br>' + screen.width + 'x' + screen.height + 'x' + window.screen.colorDepth);
  122. document.write('<hr><b>Navigateur</b><br>".Navigateur()."');
  123. document.write('<hr><b>Plateforme</b><br>".OS()."');
  124. </script>
  125. </center>
  126. <!-- Fin du Bloc -->";
  127. Bloc ($result_blocs->parametre1,$bloc) ;
  128. ?>
  129.  
  130.  



merci par avance de votre aide ;)


Sujet écrit par Musicgroove le lundi 27 avril 2020 à 15:21

[ Imprimer ] - [ Fermer la fenêtre ]