Changeset 9970 in spip-zone
- Timestamp:
- Feb 28, 2007, 5:35:32 PM (14 years ago)
- Location:
- _plugins_/_stable_/phpmyvisites
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/_stable_/phpmyvisites/core/include/global.php
r2818 r9970 83 83 84 84 // directories 85 define('DIR_IMG_THEMES', _DIR_PLUGIN_PHPMV . ' /themes/default/images/');86 define('DIR_IMG_BROWSERS', _DIR_PLUGIN_PHPMV . ' /images/browsers');87 define('DIR_IMG_OS', _DIR_PLUGIN_PHPMV . ' /images/os');88 define('DIR_IMG_PLUGINS', _DIR_PLUGIN_PHPMV . ' /images/plugins');89 define('DIR_IMG_LOGOS', _DIR_PLUGIN_PHPMV . ' /images/logos');90 define('DIR_IMG_COUNTRIES_FLAGS', _DIR_PLUGIN_PHPMV . ' /images/countries_flags');91 define('DIR_IMG_SCREENS', _DIR_PLUGIN_PHPMV . ' /images/screens');85 define('DIR_IMG_THEMES', _DIR_PLUGIN_PHPMV . 'themes/default/images/'); 86 define('DIR_IMG_BROWSERS', _DIR_PLUGIN_PHPMV . 'images/browsers'); 87 define('DIR_IMG_OS', _DIR_PLUGIN_PHPMV . 'images/os'); 88 define('DIR_IMG_PLUGINS', _DIR_PLUGIN_PHPMV . 'images/plugins'); 89 define('DIR_IMG_LOGOS', _DIR_PLUGIN_PHPMV . 'images/logos'); 90 define('DIR_IMG_COUNTRIES_FLAGS', _DIR_PLUGIN_PHPMV . 'images/countries_flags'); 91 define('DIR_IMG_SCREENS', _DIR_PLUGIN_PHPMV . 'images/screens'); 92 92 define('LANGS_PATH', INCLUDE_PATH . '/langs'); 93 93 define('DIR_IMG_MAPS', INCLUDE_PATH . '/images/maps'); -
_plugins_/_stable_/phpmyvisites/exec/phpmv.php
r5253 r9970 21 21 */ 22 22 23 $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(dirname(__FILE__))))); 24 define('_DIR_PLUGIN_PHPMV',(_DIR_PLUGINS.end($p))); 23 if (!defined('_DIR_PLUGIN_PHPMV')){ 24 $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(dirname(__FILE__))))); 25 define('_DIR_PLUGIN_PHPMV',(_DIR_PLUGINS.end($p)).'/'); 26 } 25 27 26 28 function verif_install(){ 27 // gestion de l'install 28 if (!is_dir(_DIR_SESSIONS."phpmvconfig")){ 29 sous_repertoire(_DIR_SESSIONS, "phpmvconfig"); 30 } 31 if (!is_dir(_DIR_SESSIONS."phpmvdatas")){ 32 sous_repertoire(_DIR_SESSIONS, "phpmvdatas"); 33 } 34 35 if (@file_exists(_DIR_SESSIONS."phpmvconfig/config.php")) 29 // gestion de l'install et repertoires, selon les versions 30 if (defined('_DIR_TMP')){ 31 define('_PHPMV_DIR_DATA',realpath(_DIR_TMP . "phpmvdatas")); 32 if (!is_dir(_DIR_TMP."phpmvdatas")){ 33 sous_repertoire(_DIR_TMP, "phpmvdatas"); 34 } 35 else { 36 define('_PHPMV_DIR_DATA',realpath(_DIR_SESSIONS . "phpmvdatas")); 37 if (!is_dir(_DIR_SESSIONS."phpmvdatas")){ 38 sous_repertoire(_DIR_SESSIONS, "phpmvdatas"); 39 } 40 if (defined('_DIR_ETC')){ 41 if (!is_dir(_DIR_ETC."phpmvconfig")) 42 sous_repertoire(_DIR_ETC, "phpmvconfig"); 43 if (is_dir(_DIR_ETC."phpmvconfig")) 44 define('_PHPMV_DIR_CONFIG',realpath(_DIR_ETC . "phpmvconfig")); 45 } 46 if (!defined('_PHPMV_DIR_CONFIG')){ 47 define('_PHPMV_DIR_CONFIG',realpath(_DIR_SESSIONS . "phpmvconfig")); 48 if (!is_dir(_DIR_SESSIONS."phpmvconfig")){ 49 sous_repertoire(_DIR_SESSIONS, "phpmvconfig"); 50 } 51 52 if (@file_exists(_PHPMV_DIR_CONFIG."config.php")) 36 53 return; 37 54 38 if (lire_fichier('inc_connect.php',$connect) && preg_match(',spip_connect_db\(([^\)]*)\),i',$connect,$r)){ 55 if (!defined('_FILE_CONNECT')){ 56 define('_FILE_CONNECT', 57 (@is_readable($f = _DIR_RESTREINT . 'inc_connect.php') ? $f 58 : (@is_readable($f = _DIR_RESTREINT . 'inc_connect.php3') ? $f 59 : false))); 60 } 61 if (lire_fichier(_FILE_CONNECT,$connect) && preg_match(',spip_connect_db\(([^\)]*)\),i',$connect,$r)){ 39 62 $pars = explode(',',$r[1]); 40 63 $host = substr($pars[0],1,strlen($pars[0])-2); … … 62 85 ); 63 86 ?".'>'; 64 ecrire_fichier(_ DIR_SESSIONS."phpmvconfig/site_info.php",$conf);87 ecrire_fichier(_PHPMV_DIR_CONFIG."/site_info.php",$conf); 65 88 $conf = '<'.'?php 66 89 $siteUrls = array ('." … … 71 94 ); 72 95 ?".'>'; 73 ecrire_fichier(_ DIR_SESSIONS."phpmvconfig/site_urls.php",$conf);96 ecrire_fichier(_PHPMV_DIR_CONFIG."/site_urls.php",$conf); 74 97 75 98 return; … … 149 172 150 173 verif_install(); 151 define('_PHPMV_DIR_CONFIG',realpath(_DIR_SESSIONS . "phpmvconfig"));152 define('_PHPMV_DIR_DATA',realpath(_DIR_SESSIONS . "phpmvdatas"));153 174 154 175 if (!isset($GLOBALS['meta']['PHPMyVisites_no_admin_stat'])){ -
_plugins_/_stable_/phpmyvisites/phpmv_boutons.php
r5548 r9970 2 2 3 3 4 $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))); 5 define('_DIR_PLUGIN_PHPMV',(_DIR_PLUGINS.end($p))); 4 if (!defined('_DIR_PLUGIN_PHPMV')){ 5 $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))); 6 define('_DIR_PLUGIN_PHPMV',(_DIR_PLUGINS.end($p)).'/'); 7 } 6 8 7 9 function phpmv_ajouterBoutons($boutons_admin) { … … 19 21 else{ 20 22 $boutons_admin['statistiques_visites']->sousmenu["phpmv"]= new Bouton( 21 "../"._DIR_PLUGIN_PHPMV." /img_pack/phpmv-logo.png", // icone23 "../"._DIR_PLUGIN_PHPMV."img_pack/phpmv-logo.png", // icone 22 24 _L("PHPMyVisites") //titre 23 25 ); -
_plugins_/_stable_/phpmyvisites/phpmv_fonctions.php
r6004 r9970 7 7 ecrire_metas(); 8 8 } 9 if (!defined( _DIR_PLUGIN_PHPMV)){9 if (!defined('_DIR_PLUGIN_PHPMV')){ 10 10 $p=explode(basename(_DIR_PLUGINS)."/",str_replace('\\','/',realpath(dirname(__FILE__)))); 11 define('_DIR_PLUGIN_PHPMV', _DIR_PLUGINS.end($p));11 define('_DIR_PLUGIN_PHPMV',(_DIR_PLUGINS.end($p)).'/'); 12 12 } 13 13 if (!isset($GLOBALS['meta']['_DIR_PLUGIN_PHPMV']) OR $GLOBALS['meta']['_DIR_PLUGIN_PHPMV']!=_DIR_PLUGIN_PHPMV){ -
_plugins_/_stable_/phpmyvisites/themes/default/css/styles.php
r2818 r9970 596 596 direction: $direction; 597 597 text-align: $rightouleft; 598 list-style-image: url(\""._DIR_PLUGIN_PHPMV." /themes/default/images/f3$direction.png\");598 list-style-image: url(\""._DIR_PLUGIN_PHPMV."themes/default/images/f3$direction.png\"); 599 599 } 600 600 #menuadmin LI {
Note: See TracChangeset
for help on using the changeset viewer.