Darathor
Citation :
But :
Prérequis :
- [Sous-MOD] MOD's list (1.0) (et ses prérequis)
Auteur : Darathor (darathor@free.fr)
Version : 1.0 DEV - C (14/10/2006)
Compatibilité phpBB : 2.0.21
Créer un répertoire "generated_files/flux" dans la racine du forum et lui appliquer un chmod 774 ou 777 suivant la config du serveur.
Créer un répertoire "generated_files/css" dans la racine du forum et lui appliquer un chmod 774 ou 777 suivant la config du serveur.
SQL :
Code :
CREATE TABLE `phpbb_additional_files` (
`file_id` mediumint(8) unsigned NOT NULL auto_increment,
`unique_id` varchar(250) NOT NULL default '',
`file_name` varchar(20) NOT NULL default '',
`file_path` varchar(255) NOT NULL default '',
`file_extension` varchar(10) NOT NULL default '',
`file_all_themes` tinyint(1) NOT NULL default '0',
`file_all_forums` tinyint(1) NOT NULL default '1',
`file_function` varchar(50) NOT NULL default '',
`file_version` mediumint(8) NOT NULL default '0',
`file_modified` tinyint(1) NOT NULL default '1',
`file_mod` int(11) NOT NULL default '0',
PRIMARY KEY (`file_id`),
UNIQUE KEY `unique_id` (`unique_id`)
);
CREATE TABLE `phpbb_additional_files_associations` (
`file_id` mediumint(8) NOT NULL default '0',
`group_id` mediumint(8) NOT NULL default '0',
PRIMARY KEY (`file_id`,`group_id`)
);
CREATE TABLE `phpbb_additional_files_groups` (
`group_id` mediumint(8) NOT NULL auto_increment,
`unique_id` varchar(250) NOT NULL default '',
`group_name` varchar(25) NOT NULL default '',
`group_mod` int(11) NOT NULL default '0',
PRIMARY KEY (`group_id`),
UNIQUE KEY `group_name` (`group_name`),
UNIQUE KEY `unique_id` (`unique_id`)
);
INSERT INTO `phpbb_config` VALUES ('AdFi_cache_file', 'generated_files/cache/admforum_AdFi_cache_generated_files.inc');
Importation :
Code :
$imported_mods_data[] = array('mod_id' => '29', 'unique_id' => '1160840900_7696e4d565e1efcc78d27d9ca5baeaf8ad6cdd20b5430ae2090b16aaa857927bf33ba15effa5c10e873bf3842afb46a6', 'mod_activated' => '1', 'mod_name' => '[Sous-MOD] Additional files', 'mod_description' => 'Gère la génération automatique de fichiers notamment à des fins de caches.', 'mod_version' => '1.0', 'mod_author' => 'Darathor', 'mod_author_email' => 'darathor@free.fr', 'mod_support' => 'http://admforum.edforum.net');
$imported_files_data[] = array('file_id' => '33', 'unique_id' => '1160840923_7696e4d565e1efcc78d27d9ca5baeaf845eb869f8bb592bd169ba5f766c489c0f33ba15effa5c10e873bf3842afb46a6', 'file_name' => '.htaccess', 'file_path' => 'generated_files/cache/', 'file_extension' => '', 'file_all_themes' => '0', 'file_all_forums' => '0', 'file_function' => 'AdFi_generate_htaccess_deny_from_all', 'file_version' => '-1', 'file_modified' => '0', 'file_mod' => '1160840900_7696e4d565e1efcc78d27d9ca5baeaf8ad6cdd20b5430ae2090b16aaa857927bf33ba15effa5c10e873bf3842afb46a6');
Uploader les fichiers de ce zip aux emplacements suivants :
- admin/admin_additional_files_gestion.php
- admin/admin_additional_files_groups.php
- includes/constants/constants_additional_files.php
- includes/functions_all/functions_all_additional_files.php
- language/lang_french/lang_back/functions_back_additional_files.php
- templates/subSilver/admin/additional_files_gestion_edit_body.tpl
- templates/subSilver/admin/additional_files_gestion_list_body.tpl
- templates/subSilver/admin/additional_files_group_edit_body.tpl
- templates/subSilver/admin/additional_files_group_list_body.tpl