fix argv assignments to REQUEST and GET

This commit is contained in:
lutranf
2014-08-07 16:48:46 +02:00
parent 4e3247f82b
commit 7399950574
3 changed files with 5 additions and 1 deletions

View File

@@ -518,6 +518,7 @@ class Databap extends PhpObject
'/community/bw-hana/blog'); '/community/bw-hana/blog');
//TODO add http://www.biportal.org/sap_bi_blog //TODO add http://www.biportal.org/sap_bi_blog
//TODO add http://sapbwbw.com/
foreach($asBlogPaths as $sSAPBlogPath) foreach($asBlogPaths as $sSAPBlogPath)
{ {
$sSAPBlogUrl = $sSAPDomain.$sSAPBlogPath; $sSAPBlogUrl = $sSAPDomain.$sSAPBlogPath;
@@ -542,7 +543,7 @@ class Databap extends PhpObject
$asArticleInfo['link'] = $oLink->getAttribute('href'); $asArticleInfo['link'] = $oLink->getAttribute('href');
$asArticleInfo['date'] = mb_substr(str_replace(array($sSAPBlogUrl.'/', '/'), array('', '-'), $asArticleInfo['link']), 0, 10); $asArticleInfo['date'] = mb_substr(str_replace(array($sSAPBlogUrl.'/', '/'), array('', '-'), $asArticleInfo['link']), 0, 10);
break; break;
//Author //Author
case 'jiveTT-hover-user jive-username-link': case 'jiveTT-hover-user jive-username-link':
$asNames = array_filter(explode(' ', ToolBox::mb_ucwords(trim($oLink->nodeValue)))); $asNames = array_filter(explode(' ', ToolBox::mb_ucwords(trim($oLink->nodeValue))));
$asArticleInfo['first_name'] = array_shift($asNames); $asArticleInfo['first_name'] = array_shift($asNames);

View File

@@ -37,6 +37,7 @@ class ToolBox
{ {
//Add CLI arguments //Add CLI arguments
if(defined('STDIN')) mb_parse_str(implode('&', array_slice($argv, 1)), $_GET); if(defined('STDIN')) mb_parse_str(implode('&', array_slice($argv, 1)), $_GET);
$_REQUEST = array_merge($_GET, $_REQUEST);
//Add Server Name //Add Server Name
$sServerName = array_key_exists('SERVER_NAME', $_SERVER)?$_SERVER['SERVER_NAME']:$_SERVER['PWD']; $sServerName = array_key_exists('SERVER_NAME', $_SERVER)?$_SERVER['SERVER_NAME']:$_SERVER['PWD'];

2
todo
View File

@@ -13,6 +13,8 @@ Bug fix:
- Fix les "xxx se déconnecte" intempestives - Fix les "xxx se déconnecte" intempestives
Améliorations Améliorations
- [1.0.0] Importer la liste des tables de Christophe
- Ajouter les blogs sap (see databap.php)
- Son pour les nouveaux messages - Son pour les nouveaux messages
- liste complète : ajouter des tabs pour sélectionner soit code, soit article, soit table... - liste complète : ajouter des tabs pour sélectionner soit code, soit article, soit table...
- [1.1.0] Chat : compatibilité mobile (utiliser la fonctionnalité ff) - [1.1.0] Chat : compatibilité mobile (utiliser la fonctionnalité ff)