Pages vues depuis 25/05/2001 : 108 395 988
Index du forum »» Bugs, Probs ... »» Nouvelle install sous usbwebserver PHP 8.1
Citation : colonelwog
autres erreurs apparues dans mes modules mais provenant de NPDS :
Deprecated: Optional parameter $topicmaxchars declared before required parameter $decoration is implicitly treated as a required parameter in D:\temporaire web site\usbwebserver_v8.6.5\usbwebserver\root\powerpack_f.php on line 306
Deprecated: Optional parameter $hr declared before required parameter $decoration is implicitly treated as a required parameter in D:\temporaire web site\usbwebserver_v8.6.5\usbwebserver\root\powerpack_f.php on line 306
Citation : colonelwog
dans cette version j'ai m^me pas l'admin mdr ...
page blanche
erreur :
[Mon Feb 17 09:41:58.120354 2025] [php:error] [pid 15964:tid 1268] [client ::1:63874] PHP Fatal error: Uncaught mysqli_sql_exception in D:\\temporaire web site\\usbwebserver_v8.6.5\\usbwebserver\\root\\lib\\mysqli.php:105\nStack trace:\n#0 D:\\temporaire web site\\usbwebserver_v8.6.5\\usbwebserver\\root\\lib\\mysqli.php(105): mysqli_query(Object(mysqli), 'INSERT INTO fon...')\n#1 D:\\temporaire web site\\usbwebserver_v8.6.5\\usbwebserver\\root\\admin.php(141): sql_query('INSERT INTO fon...')\n#2 D:\\temporaire web site\\usbwebserver_v8.6.5\\usbwebserver\\root\\admin.php(494): GraphicAdmin('manuels/french/...')\n#3 D:\\temporaire web site\\usbwebserver_v8.6.5\\usbwebserver\\root\\admin.php(1185): adminMain(0)\n#4 {main}\n thrown in D:\\temporaire web site\\usbwebserver_v8.6.5\\usbwebserver\\root\\lib\\mysqli.php on line 105, referer: http://localhost/index.php?op=edito
Citation : jpbCitation : colonelwog
autres erreurs apparues dans mes modules mais provenant de NPDS :
Deprecated: Optional parameter $topicmaxchars declared before required parameter $decoration is implicitly treated as a required parameter in D:\temporaire web site\usbwebserver_v8.6.5\usbwebserver\root\powerpack_f.php on line 306
Deprecated: Optional parameter $hr declared before required parameter $decoration is implicitly treated as a required parameter in D:\temporaire web site\usbwebserver_v8.6.5\usbwebserver\root\powerpack_f.php on line 306
<== oui l'ordre des paramètre n'est pas correct corriger la ligne 306 $decoration doit être placé juste après $maxtopicsMessage édité par : jpb / 17/02/2025 09:56
function RecentForumPosts($title, $maxforums, $maxtopics, $displayposter=false, $topicmaxchars=15,$hr=false, $decoration = '')
TABLE `fonctions` (
`fid` mediumint(8) UNSIGNED NOT NULL COMMENT 'id unique auto incrémenté',
`fnom` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL,
`fdroits1` tinyint(3) UNSIGNED NOT NULL,
`fdroits1_descr` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL,
`finterface` tinyint(3) UNSIGNED NOT NULL COMMENT '1 ou 0 : la fonction dispose ou non d''une interface',
`fetat` tinyint(1) NOT NULL COMMENT '0 ou 1 9 : non active ou installé, installé',
`fretour` text COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'utiliser par les fonctions de categorie Alerte : nombre, ou ',
`fretour_h` text COLLATE utf8mb4_unicode_ci NOT NULL,
`fnom_affich` text COLLATE utf8mb4_unicode_ci NOT NULL,
`ficone` varchar(40) COLLATE utf8mb4_unicode_ci NOT NULL,
`furlscript` varchar(4000) COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'attribut et contenu de balise A : href="xxx", !onclick!="xxx" etc',
`fcategorie` tinyint(3) UNSIGNED NOT NULL,
`fcategorie_nom` varchar(200) COLLATE utf8mb4_unicode_ci NOT NULL,
`fordre` tinyint(3) UNSIGNED NOT NULL
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Dune_proto';
INSERT INTO `fonctions` (`fid`, `fnom`, `fdroits1`, `fdroits1_descr`, `finterface`, `fetat`, `fretour`, `fretour_h`, `fnom_affich`, `ficone`, `furlscript`, `fcategorie`, `fcategorie_nom`, `fordre`) VALUES
(1, 'edito', 1, '', 1, 1, '', '', 'Edito', 'edito', 'href=\"admin.php?op=Edito\"', 1, 'Contenu', 0),
(2, 'adminStory', 2, '', 1, 1, '', '', 'Nouvel Article', 'postnew', 'href=\"admin.php?op=adminStory\"', 1, 'Contenu', 1),
(3, 'sections', 3, '', 1, 1, '', '', 'Rubriques', 'sections', 'href=\"admin.php?op=sections\"', 1, 'Contenu', 2),
(4, 'topicsmanager', 4, '', 1, 1, '', '', 'Gestion des Sujets', 'topicsman', 'href=\"admin.php?op=topicsmanager\"', 1, 'Contenu', 3),
(5, 'links', 5, '', 1, 1, '', '', 'Liens Web', 'links', 'href=\"admin.php?op=links\"', 1, 'Contenu', 5),
(6, 'FaqAdmin', 6, '', 1, 1, '1', '', 'FAQ', 'faq', 'href=\"admin.php?op=FaqAdmin\"', 1, 'Contenu', 6),
(7, 'Ephemerids', 7, '', 1, 1, '1', '', 'Ephémérides', 'ephem', 'href=\"admin.php?op=Ephemerids\"', 1, 'Contenu', 7),
(8, 'HeadlinesAdmin', 8, '', 1, 1, '', '', 'News externes', 'headlines', 'href=\"admin.php?op=HeadlinesAdmin\"', 1, 'Contenu', 8),
(9, 'DownloadAdmin', 9, '', 1, 1, '', '', 'Téléchargements', 'download', 'href=\"admin.php?op=DownloadAdmin\"', 1, 'Contenu', 9),
(10, 'mod_users', 10, '', 1, 1, '', '', 'Utilisateurs', 'users', 'href=\"admin.php?op=mod_users\"', 2, 'Utilisateurs', 1),
(11, 'groupes', 11, '', 1, 1, '', '', 'Groupes', 'groupes', 'href=\"admin.php?op=groupes\"', 2, 'Utilisateurs', 2),
(12, 'mod_authors', 12, '', 1, 1, '', '', 'Administrateurs', 'authors', 'href=\"admin.php?op=mod_authors\"', 2, 'Utilisateurs', 3),
(13, 'MaintForumAdmin', 13, '', 1, 1, '', '', 'Maintenance Forums', 'forum', 'href=\"admin.php?op=MaintForumAdmin\"', 3, 'Communication', 0),
(14, 'ForumConfigAdmin', 14, '', 1, 1, '', '', 'Configuration Forums', 'forum', 'href=\"admin.php?op=ForumConfigAdmin\"', 3, 'Communication', 0),
(15, 'ForumAdmin', 15, '', 1, 1, '', '', 'Edition Forums', 'forum', 'href=\"admin.php?op=ForumAdmin\"', 3, 'Communication', 0),
(16, 'lnl', 16, '', 1, 1, '', '', 'Lettre D\'info', 'lnl', 'href=\"admin.php?op=lnl\"', 3, 'Communication', 0),
(17, 'email_user', 17, '', 1, 1, '', '', 'Message Interne', 'email_user', 'href=\"admin.php?op=email_user\"', 3, 'Communication', 0),
(18, 'BannersAdmin', 18, '', 1, 1, '', '', 'Bannières', 'banner', 'href=\"admin.php?op=BannersAdmin\"', 3, 'Communication', 0),
(19, 'create', 19, '', 1, 1, '', '', 'Sondages', 'newpoll', 'href=\"admin.php?op=create\"', 3, 'Communication', 0),
(20, 'reviews', 20, '', 1, 1, '', '', 'Critiques', 'reviews', 'href=\"admin.php?op=reviews\"', 3, 'Communication', 0),
(21, 'hreferer', 21, '', 1, 1, '', '', 'Sites Référents', 'referer', 'href=\"admin.php?op=hreferer\"', 3, 'Communication', 0),
(22, 'blocks', 22, '', 1, 1, '', '', 'Blocs', 'block', 'href=\"admin.php?op=blocks\"', 4, 'Interface', 0),
(23, 'mblock', 23, '', 1, 1, '', '', 'Bloc Principal', 'blockmain', 'href=\"admin.php?op=mblock\"', 4, 'Interface', 0),
(24, 'ablock', 24, '', 1, 1, '', '', 'Bloc Administration', 'blockadm', 'href=\"admin.php?op=ablock\"', 4, 'Interface', 0),
(25, 'Configure', 25, '', 1, 1, '', '', 'Préférences', 'preferences', 'href=\"admin.php?op=Configure\"', 5, 'Système', 0),
(26, 'ConfigFiles', 26, '', 1, 1, '', '', 'Fichiers configurations', 'preferences', 'href=\"admin.php?op=ConfigFiles\"', 5, 'Système', 0),
(27, 'FileManager', 27, '', 1, 1, '', '', 'Gestionnaire Fichiers', 'filemanager', 'href=\"admin.php?op=FileManager\"', 5, 'Système', 0),
(28, 'supercache', 28, '', 1, 1, '', '', 'SuperCache', 'overload', 'href=\"admin.php?op=supercache\"', 5, 'Système', 0),
(29, 'OptimySQL', 29, '', 1, 1, '', '', 'OptimySQL', 'optimysql', 'href=\"admin.php?op=OptimySQL\"', 5, 'Système', 0),
(30, 'SavemySQL', 30, '', 1, 1, '', '', 'SavemySQL', 'savemysql', 'href=\"admin.php?op=SavemySQL\"', 5, 'Système', 0),
(31, 'MetaTagAdmin', 31, '', 1, 1, '', '', 'MétaTAGs', 'metatags', 'href=\"admin.php?op=MetaTagAdmin\"', 5, 'Système', 0),
(32, 'MetaLangAdmin', 32, '', 1, 1, '', '', 'META-LANG', 'metalang', 'href=\"admin.php?op=Meta-LangAdmin\"', 5, 'Système', 0),
(33, 'setban', 33, '', 1, 1, '', '', 'IP', 'ipban', 'href=\"admin.php?op=Extend-Admin-SubModule&ModPath=ipban&ModStart=setban\"', 5, 'Système', 0),
(34, 'session_log', 34, '', 1, 1, '', '', 'Logs', 'logs', 'href=\"admin.php?op=Extend-Admin-SubModule&ModPath=session-log&ModStart=session-log\"', 5, 'Système', 0),
(35, 'reviews', 20, '', 1, 0, '0', 'Critique en atttente de validation.', 'Critiques', 'reviews', 'href=\"admin.php?op=reviews\"', 9, 'Alerte', 0),
(36, 'mes_npds_versus', 36, '', 1, 1, 'N', 'Une nouvelle version NPDS est disponible !<br />REvolution v.16.8 (master)<br />Cliquez pour télécharger.', '', 'message_npds', 'data-bs-toggle=\"modal\" data-bs-target=\"#versusModal\"', 9, 'Alerte', 0),
(37, 'autoStory', 2, '', 1, 0, '0', '', 'Auto-Articles', 'autonews', 'href=\"admin.php?op=autoStory\"', 9, 'Alerte', 0),
(76, 'mes_npds_0', 0, '', 1, 1, '', 'Patch de sécurité 2022 !', '<span class=\"text-danger\">Niveau critique appliquez ce patch !!!!</span><br /> Ce patch de sécurité répond aux problèmes décrits sommairement ci-dessous. Il est disponible ici <a href=\"http://www.npds.org/download.php?op=mydown&did=201\">patch2022.txt</a>.<br /><span class=\"text-danger\">Au vu de la nature des problèmes nous vous conseillons fortement d\'appliquer ce patch sur tous vos sites.</span><br /><b>Problème :</b> sécurité<br /><b>Description :</b> faiblesse XSS dans chat, renforcement du contrôle des urls <br /><b>Versions concernées :</b> de 13 à 16.3<br /><b>Niveau :</b> sérieux<br /><b>Fichiers concernés :</b> chatrafraich.php, chatinput.php, grab_globals.php, modules/!include!/url_protect.php<br /><b>NB :</b> les versions antérieures à 13 sont aussi très probablement affectées mais nous n\'avons pas écrit de correction. ! (Merci dans ce cas là de mettre à jour avec une version plus récente de npds).<br />@Nosp merci pour l\'audit.<br />[@Dev, @jpb]<br />', 'message_a', 'data-toggle=\"modal\" data-target=\"#messageModal\"', 9, 'Alerte', 0),
(38, 'submissions', 2, '', 1, 0, '0', 'Articles en attente de validation !', 'Articles', 'submissions', 'href=\"admin.php?op=submissions\"', 9, 'Alerte', 0),
(39, 'hreferer_al', 21, '', 1, 0, '!!!', 'Limite des référants atteinte : pensez à archiver vos référants.', 'Sites Référents', 'referer', 'href=\"admin.php?op=hreferer\"', 9, 'Alerte', 0),
(40, 'abla', 40, '', 1, 1, '', '', 'Blackboard', 'abla', 'href=\"admin.php?op=abla\"', 5, 'Système', 0),
(41, 'newlink', 5, '', 1, 0, '0', 'Lien à valider', 'Lien', 'links', 'href=\"admin.php?op=links\"', 9, 'Alerte', 0),
(42, 'brokenlink', 5, '', 1, 0, '0', 'Lien rompu à valider', 'Lien rompu', 'links', 'href=\"admin.php?op=LinksListBrokenLinks\"', 9, 'Alerte', 0),
(43, 'archive-stories', 43, '', 1, 1, '', '', 'Archives articles', 'archive-stories', 'href=\"admin.php?op=Extend-Admin-SubModule&ModPath=archive-stories&ModStart=admin/archive-stories_set\"', 1, 'Contenu', 4),
(44, 'mod_users', 10, '', 1, 0, '0', 'Utilisateur en attente de validation !', 'Utilisateurs', 'users', 'href=\"admin.php?op=nonallowed_users\"', 9, 'Alerte', 0),
(45, 'upConfigure', 45, '', 1, 1, '', '', 'Upload', 'upload', 'href=\"admin.php?op=Extend-Admin-SubModule&ModPath=upload&ModStart=admin/upload\"', 5, 'Système', 0),
(49, 'npds_twi', 49, '', 1, 1, '', '', 'Npds_Twitter', 'npds_twi', 'href=\"admin.php?op=Extend-Admin-SubModule&ModPath=npds_twi&ModStart=admin/npds_twi_set\"', 6, 'Modules', 0),
(50, 'publications', 3, '', 1, 0, '0', 'Publication(s) en attente de validation', 'Rubriques', 'sections', 'href=\"admin.php?op=sections#publications en attente\"', 9, 'Alerte', 0),
(51, 'modules', 51, '', 1, 1, '', '', 'Gestion modules', 'modules', 'href=\"admin.php?op=modules\"', 5, 'Système', 0),
(74, 'reseaux-sociaux', 74, '', 1, 1, '', '', 'Réseaux sociaux', 'reseaux-sociaux', 'href=\"admin.php?op=Extend-Admin-SubModule&ModPath=reseaux-sociaux&ModStart=admin/reseaux-sociaux_set\"', 2, 'Utilisateurs', 4),
(75, 'geoloc', 75, '', 1, 1, '', '', 'geoloc', 'geoloc', 'href=\"admin.php?op=Extend-Admin-SubModule&ModPath=geoloc&ModStart=admin/geoloc_set\"', 6, 'Modules', 0),
(77, 'mes_npds_1', 0, '', 1, 1, '', 'Les messages de npds', '<br /> Ce système nous permet d\'envoyer des messages concernant l\'actualité de npds et de son développement à tous les webmaster directement dans leur portail.<br /> Il monitore également la version utilisée et emet une alerte quand une nouvelle version de npds est disponible. Du côté de l\'interface admin ces messages peuvent être marqués comme lus par chaque admin et donc ne sont plus affichés jusqu\'à leur modification ou leur suppression par npds.org.<br /> [@nico2 @jpb].', 'message_i', 'data-toggle=\"modal\" data-target=\"#messageModal\"', 9, 'Alerte', 0)
`fordre` tinyint(2) UNSIGNED NOT NULL DEFAULT '0'
CREATE TABLE `fonctions` (
`fid` mediumint UNSIGNED NOT NULL COMMENT 'id unique auto incrémenté',
`fnom` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`fdroits1` tinyint UNSIGNED DEFAULT NULL,
`fdroits1_descr` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`finterface` tinyint UNSIGNED NOT NULL COMMENT '1 ou 0 : la fonction dispose ou non d''une interface',
`fetat` tinyint(1) NOT NULL COMMENT '0 ou 1 9 : non active ou installé, installé',
`fretour` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci COMMENT 'utiliser par les fonctions de categorie Alerte : nombre, ou ',
`fretour_h` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`fnom_affich` text CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`ficone` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`furlscript` varchar(4000) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'attribut et contenu de balise A : href="xxx", !onclick!="xxx" etc',
`fcategorie` tinyint UNSIGNED NOT NULL,
`fcategorie_nom` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL,
`fordre` tinyint UNSIGNED NOT NULL DEFAULT '0'
) ENGINE=MyISAM DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci COMMENT='Dune_proto';