En poursuivant votre navigation sur notre site, vous acceptez l’utilisation de cookies afin d’améliorer votre navigation. En savoir plus Réduire
Plan du site  ·  Mentions Légales  ·  Statistiques  ·  Contact PatMax Web ·  PatMax Annuaire · 
FAQ
Connexion · M’enregistrer
Afin de bénéficier de l'intégralité des fonctions de ce forum il est conseillé de vous connecter
PatMax Scripts va fermer définitivement au mois d'avril 2024

Index du forum » ENTRAIDE » PHPBB (2 et 3)

 
Poster un nouveau sujet Répondre au sujet
Message Auteur
 Sujet du message: Installer SDK (ma config)
Message Posté: Jeu 20 Sep 2012 17:05 

Bonjour Patmax,

Etant actuellement chez free j'ai décidé d'installer un forum sur mes pages perso.
De ce fait j'ai essayé d'installer le Sdk du site Maconfig.com, j'ai bien hébergé le dossier root à la racine de mon forum comme il le disait.

?Le problème est que quand je lance l’url pointant vers mcmod_install.php, (http://sos.informatiques.free.fr/root/mcmod_install.php )cela m'affiche l'erreur suivante:

Warning: main(commonphp) [function.main]: failed to open stream: No such file or directory in /mnt/129/sda/6/4/sos.informatiques/root/mcmod_install.php on line 20
Warning: main() [function.include]: Failed opening 'commonphp' for inclusion (include_path='/mnt/129/sda/6/4/sos.informatiques/include:.:/usr/php4/lib/php') in /mnt/129/sda/6/4/sos.informatiques/root/mcmod_install.php on line 20
Fatal error: Call to a member function on a non-object in /mnt/129/sda/6/4/sos.informatiques/root/mcmod_install.php on line 21


D’après ce que je comprend il y aurais une erreur dans les fichiers mcmod_install.php et le common.php.
Voici le mcmod_install.php ==>

<?php
/**
*
* @author Charon (Jérôme BOSCH) charon@ma-config.com
* @version $Id$
* @copyright (c) 2010 Cybelsoft
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
/**
* @ignore
*/
define('UMIL_AUTO', true);
define('IN_PHPBB', true);
define('IN_INSTALL', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : '';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common' . $phpEx);
$user->sos_informatiques();
$auth->acl($user->data);
$user->setup();
if (!file_exists($phpbb_root_path . 'umil/umil_auto.' . $phpEx))
{
trigger_error('Please download the latest UMIL (Unified MOD Install Library) from: <a href="http://www.phpbb.com/mods/umil/">phpBB.com/mods/umil</a>', E_USER_ERROR);
}
// The name of the mod to be displayed during installation.
$mod_name = 'Ma-Config.com';
/*
* The name of the config variable which will hold the currently installed version
* UMIL will handle checking, setting, and updating the version itself.
*/
$version_config_name = 'ma_config.com_version';

// The language file which will be included when installing
$language_file = 'mods/info_ucp_maconfig';

/*
* Optionally we may specify our own logo image to show in the upper corner instead of the default logo.
* $phpbb_root_path will get prepended to the path specified
* Image height should be 50px to prevent cut-off or stretching.
*/
//$logo_img = 'styles/prosilver/imageset/site_logo.gif';
/*
* The array of versions and actions within each.
* You do not need to order it a specific way (it will be sorted automatically), however, you must enter every version, even if no actions are done for it.
*
* You must use correct version numbering. Unless you know exactly what you can use, only use X.X.X (replacing X with an integer).
* The version numbering must otherwise be compatible with the version_compare function - http://php.net/manual/en/function.version-compare.php
*/
$versions = array(
'2.0.0.0' => array(
'table_add' => array(
array('profile_maconfig', array(
'COLUMNS' => array(
     'id' => array('INT:11', NULL, 'auto_increment'),
     'member_id' => array('INT:11', NULL),
     'confhtml' => array('TEXT', ''),
     'confxml' => array('MTEXT', NULL),
     'confxmlid' => array('VCHAR:13', ''),
),
'PRIMARY_KEY' => 'id'
),
)),

'config_add' => array(
array('maconfig_theme', 'mcplug.css', 0),
array('maconfig_mcurlversion', 'http://www.ma-config.com/versionmc.xml', 0),
),

'module_add' => array(
array('ucp', '', "Ma-Config.com"),
array('ucp', 'Ma-Config.com', array(
     'module_basename' => 'maconfig',
     'module_langname' => 'UCP_MC_VIEW',
     'module_mode' => 'view',
     'module_display' => 1,
     'module_enabled' => 1,
)),
array('ucp', 'Ma-Config.com', array(
     'module_basename' => 'maconfig',
     'module_langname' => 'UCP_MC_SAVE',
     'module_mode' => 'save',
     'module_display' => 0,
     'module_enabled' => 1,
)),
array('ucp', 'Ma-Config.com', array(
     'module_basename' => 'maconfig',
     'module_langname' => 'UCP_MC_REDIRECT',
     'module_mode' => 'redirect',
     'module_display' => 0,
     'module_enabled' => 1,
)),
array('ucp', 'Ma-Config.com', array(
     'module_basename' => 'maconfig',
     'module_langname' => 'UCP_MC_PRINT',
     'module_mode' => 'print',
     'module_display' => 0,
     'module_enabled' => 1,
)),
array('ucp', 'Ma-Config.com', array(
     'module_basename' => 'maconfig',
     'module_langname' => 'UCP_MC_DELETE',
     'module_mode' => 'delete',
     'module_display' => 1,
     'module_enabled' => 1,
)),
array('acp', '', "ACP_CAT_MACONFIG"),
array('acp', 'ACP_CAT_MACONFIG', "ACP_CAT_MACONFIG2"),
),
),
'2.0.0.4' => array(),
'2.0.0.5' => array(),
'2.0.0.6' => array(),
'2.0.0.7' => array(),
'2.0.0.8' => array(),
'2.0.0.9' => array(),
'2.0.0.10'=> array(),
'2.0.1.0' => array(),
'2.0.1.1' => array(
'custom' => array('mc_updater'),
'module_add' => array(
     array('acp', 'ACP_CAT_MACONFIG2', array(
     'module_basename' => 'maconfig',
     'module_langname' => 'MC_UPDATECAT',
     'module_mode' => 'update',
     'module_display' => 1,
     'module_enabled' => 1,
)),
array('acp', 'ACP_CAT_MACONFIG2', array(
     'module_basename' => 'maconfig',
     'module_langname' => 'MC_SETTINGSCAT',
     'module_mode' => 'settings',
     'module_display' => 1,
     'module_enabled' => 1,
)),
array('acp', 'ACP_CAT_MACONFIG2', array(
     'module_basename' => 'maconfig',
     'module_langname' => 'MC_UPDATEDO',
     'module_mode' => 'updatedo',
     'module_display' => 0,
     'module_enabled' => 1,
)),
),
),
'2.0.1.3' => array(
'config_add' => array(
array('maconfig_licence', '', 0)
)
),
);
// Include the UMIL Auto file, it handles the rest
include($phpbb_root_path . 'umil/umil_auto.' . $phpEx);
function mc_updater($action, $version)
{
global $umil;
if ($umil->module_exists('acp','ACP_CAT_MACONFIG2','maconfig_updatecat'))
$umil->module_remove(array(
     array('acp', 'ACP_CAT_MACONFIG2', array(
     'module_basename' => 'maconfig',
     'module_langname' => 'maconfig_updatecat',
     'module_mode' => 'update',
     'module_display' => 1,
     'module_enabled' => 1,
))));
if ($umil->module_exists('acp','ACP_CAT_MACONFIG2','maconfig_settingscat'))
$umil->module_remove(array(
array('acp', 'ACP_CAT_MACONFIG2', array(
     'module_basename' => 'maconfig',
     'module_langname' => 'maconfig_settingscat',
     'module_mode' => 'settings',
     'module_display' => 1,
     'module_enabled' => 1,
))));
if ($umil->module_exists('acp','ACP_CAT_MACONFIG2','maconfig_updatedo'))
$umil->module_remove(array(
array('acp', 'ACP_CAT_MACONFIG2', array(
     'module_basename' => 'maconfig',
     'module_langname' => 'maconfig_updatedo',
     'module_mode' => 'updatedo',
     'module_display' => 0,
     'module_enabled' => 1,
))));
switch($action)
{
case 'install':
case 'update':
return array(
     'command' => 'APPLY_INSTALL_MOD',
     'result' => 'SUCCESS');
case 'uninstall':
return array(
     'command' => 'APPLY_UNINSTALL_MOD',
     'result' => 'SUCCESS');
}
}


Voici le common.php ==>

<?php
/**
*
* @package phpBB3
* @version $Id$
* @copyright (c) 2005 phpBB Group
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
* Minimum Requirement: PHP 4.3.3
*/
/**
*/
if (!defined('IN_PHPBB'))
{
exit;
}
require($phpbb_root_path . 'includes/startup.' . $phpEx);
if (file_exists($phpbb_root_path . 'config.' . $phpEx))
{
require($phpbb_root_path . 'config.' . $phpEx);
}
if (!defined('PHPBB_INSTALLED'))
{
// Redirect the user to the installer
// We have to generate a full HTTP/1.1 header here since we can't guarantee to have any of the information
// available as used by the redirect function
$server_name = (!empty($_SERVER['HTTP_HOST'])) ? strtolower($_SERVER['HTTP_HOST']) : ((!empty($_SERVER['sos.informatiques'])) ? $_SERVER['sos.informatiques'] : getenv('sos.informatiques'));
$server_port = (!empty($_SERVER['SERVER_PORT'])) ? (int) $_SERVER['SERVER_PORT'] : (int) getenv('SERVER_PORT');
$secure = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') ? 1 : 0;
$script_name = (!empty($_SERVER['PHP_SELF'])) ? $_SERVER['PHP_SELF'] : getenv('PHP_SELF');
if (!$script_name)
{
$script_name = (!empty($_SERVER['REQUEST_URL'])) ? $_SERVER['REQUEST_URL'] : getenv('REQUEST_URL');
}
// Replace any number of consecutive backslashes and/or slashes with a single slash
// (could happen on some proxy setups and/or Windows servers)
$script_path = trim(dirname($script_name)) . '/install/index.' . $phpEx;
$script_path = preg_replace('#[\\\\/]{2,}#', '/', $script_path);
$url = (($secure) ? 'https://' : 'http://') . $server_name;
if ($server_port && (($secure && $server_port <> 443) || (!$secure && $server_port <> 80)))
{
// HTTP HOST can carry a port number...
if (strpos($server_name, ':') === false)
{
$url .= ':' . $server_port;
}
}
$url .= $script_path;
header('Location: ' . $url);
exit;
}
if (defined('DEBUG_EXTRA'))
{
$base_memory_usage = 0;
if (function_exists('memory_get_usage'))
{
$base_memory_usage = memory_get_usage();
}
}
// Load Extensions
// dl() is deprecated and disabled by default as of PHP 5.3.
if (!empty($load_extensions) && function_exists('dl'))
{
$load_extensions = explode(',', $load_extensions);
foreach ($load_extensions as $extension)
{
@dl(trim($extension));
}
}
// Include files
require($phpbb_root_path . 'includes/acm/acm_' . $acm_type . '.' . $phpEx);
require($phpbb_root_path . 'includes/cache.' . $phpEx);
require($phpbb_root_path . 'includes/template.' . $phpEx);
require($phpbb_root_path . 'includes/session.' . $phpEx);
require($phpbb_root_path . 'includes/auth.' . $phpEx);
require($phpbb_root_path . 'includes/functions.' . $phpEx);
require($phpbb_root_path . 'includes/functions_content.' . $phpEx);
require($phpbb_root_path . 'includes/constants.' . $phpEx);
require($phpbb_root_path . 'includes/db/' . $dbms . '.' . $phpEx);
require($phpbb_root_path . 'includes/utf/utf_tools.' . $phpEx);
// Set PHP error handler to ours
set_error_handler(defined('PHPBB_MSG_HANDLER') ? PHPBB_MSG_HANDLER : 'msg_handler');
// Instantiate some basic classes
$user = new user();
$auth = new auth();
$template = new template();
$cache = new cache();
$db = new $sql_db();
// Connect to DB
$db->sql_connect($dbhost, $dbuser, $dbpasswd, $dbname, $dbport, false, defined('PHPBB_DB_NEW_LINK') ? PHPBB_DB_NEW_LINK : false);
// We do not need this any longer, unset for safety purposes
unset($dbpasswd);
// Grab global variables, re-cache if necessary
$config = $cache->obtain_config();
// Add own hook handler
require($phpbb_root_path . 'includes/hooks/index.' . $phpEx);
$phpbb_hook = new phpbb_hook(array('exit_handler', 'phpbb_user_session_handler', 'append_sid', array('template', 'display')));
foreach ($cache->obtain_hooks() as $hook)
{
@include($phpbb_root_path . 'includes/hooks/' . $hook . '.' . $phpEx);
}
?>


Voila j’espère que tu pourra m'aider .
Merci d'avance

_________________
Si vous avez Windows et qu'il n'a jamais eu de bug, c'est que vous venez de l'avoir ! ;)

Un souci d'informatique ? :arrow: http://sos-ordi.org/


Cordialement OptimaluS


Avatar de l’utilisateur
Hors ligne

Enregistré le:
Lun 21 Nov 2011 00:07
Messages: 48
Localisation: Champagne Ardenne

Profil  Site InternetPas de position géographique communiquée
Répondre en citant le message  
Haut  
 Sujet du message: Re: Installer SDK (ma config)
Message Posté: Jeu 20 Sep 2012 18:32 

C'est par ce que tu as mal placer tes fichiers sur ton FTP.

Tu as un répertoire root qui contient des fichiers et des répertoires.
==>Root/
-- common.php_5
-- config.php_5
-- Etc
==> adm/
==> includes/
==> language/


Je te conseille de créer sur ton FTP un répertoire Forum dans lequel tu vas transférer tes fichiers. Ce qui devrait donner
==>Forum/
-- common.php_5
-- config.php_5
-- Etc
==> adm/
==> includes/
==> language/

_________________
Ma satisfaction, que vous soyez satisfait.


Avatar de l’utilisateur
<font color=#AA0000><b>Fondateur</b></font>
Fondateur
Hors ligne

Enregistré le:
Mar 1 Nov 2005 19:45
Messages: 5117
Localisation: Centre France

Profil  Site Internet Voir la position géographique du membre
Répondre en citant le message  
Haut  
 Sujet du message: Re: Installer SDK (ma config)
Message Posté: Jeu 20 Sep 2012 18:38 

Re,

Je vais essayer ceci, je te tiens informer.
Merci.

-- Ven 21 Sep 12 00:52 --

Bonsoir,

Sujet résolu,
Merci Patmax tu est toujours d'une grande utilité.

_________________
Si vous avez Windows et qu'il n'a jamais eu de bug, c'est que vous venez de l'avoir ! ;)

Un souci d'informatique ? :arrow: http://sos-ordi.org/


Cordialement OptimaluS


Avatar de l’utilisateur
Hors ligne

Enregistré le:
Lun 21 Nov 2011 00:07
Messages: 48
Localisation: Champagne Ardenne

Profil  Site InternetPas de position géographique communiquée
Répondre en citant le message  
Haut  
 
Poster un nouveau sujet Répondre au sujet



Qui est en ligne

Utilisateurs parcourant ce forum : Aucun utilisateur enregistré et 10 invités


Afficher les messages postés depuis:   Trier par  
Aller à:  

Vous ne pouvez pas poster de nouveaux sujets
Vous ne pouvez pas répondre aux sujets
Vous ne pouvez pas modifier vos messages
Vous ne pouvez pas supprimer vos messages
Vous ne pouvez pas joindre des fichiers

Index du forum » ENTRAIDE » PHPBB (2 et 3)

cron

Votre site ici

Inscrire votre site        Voir plus de boutons
 

Reproduction strictement interdite sans l'autorisation de l'administrateur.

PatMax © 2006 - 2008
Développé par phpBB® Forum Software © phpBB Group    
Traduit par phpBB-fr.com
Thème graphique par PatMax ©