Jump to content

titibaloche

Membres plus
  • Content Count

    10
  • Joined

  • Last visited

Posts posted by titibaloche


  1. Bonsoir,

    Ayant installer avec succès le Sdk sur mon forum phpbb3 (Version 3.0.11), je m’aperçois que l’image dans l'acp de l'utilisateur ne s'affiche pas.

    -Et en regardant le lien de celle ci je voit que çà à rajouter un www en trop. après le .org

    Voici un Screenshots de l'acp :

    http://img11.hosting...5Sanstitre1.jpg

    Voici le lien de l'image :

    http://www.sos-ordi....config-logo.png

    -Il y'a un autre lien aussi qui n'est pas bon, c'est lorsque la détection se fait et que çà enregistre la configuration , on ne peux pas la visualiser.

    Voici le lien : http://www.sos-ordi....ion=print&idm=2

    Donc c'est pareille pour celui-ci le www après le .org est en trop.

    Alors ma question est comment modifier ces erreurs de liens ?

    Merci d'avance en espérant avoir était assez clair sur mon soucis.


  2. Bonjour,

    J'ai actuellement installer le mod Sdk sur mon forum phpbb3 ( http://sos.informatiques.free.fr/assistance/index )

    Le mod c'est bien installer mets le souci est que la mise a jour du plugin ne veux pas se faire.(License obtenue et mise)

    Cela m'indique un message d'erreur suivant::


    Erreur Curl couldn't connect to host http://www.ma-config.com/versionmc.xml

    Quelle est le soucis, quelle manipulation doit-je faire s.v.p ?

    Merci d'avance


  3. Bonjour,

    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, j'ai bien hébergé le dossier root à la racine de mon forum.

    ​Le problème est que quand je lance l’url pointant vers mcmod_install.php, (http://sos.informati...mod_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 vous pourrez m'aider s.v.p .

    Merci d'avance

×
×
  • Create New...