52,10 → 52,6 |
$url_morceaux = $this->parserUrl(); |
if (isset($url_morceaux[0])) { |
$this->widget = $url_morceaux[0]; |
// hack car chez moi (mathias) je me retrouve avec $url_morceaux[0] = "delnomduwidget", pourtant j'ai le même .htaccess... |
if (strpos($this->widget, ":") !== false) { |
$this->widget = substr($this->widget, strpos($this->widget, ":") + 1); |
} |
self::$config['chemins']['widgetCourantDossier'] = self::$config['chemins']['widgetsDossier'].strtolower($this->widget).DIRECTORY_SEPARATOR; |
$this->chargerWidgetConfig(); |
} |
93,7 → 89,7 |
|
private function nettoyerGet() { |
foreach ($_GET as $cle => $valeur) { |
$verifier = array('NULL', "\n", "\r", "\\", "'", '"', "\x00", "\x1a", ';'); |
$verifier = array('NULL', "\n", "\r", "\\", '"', "\x00", "\x1a", ';'); |
$_GET[$cle] = strip_tags(str_replace($verifier, '', $valeur)); |
} |
} |
133,6 → 129,7 |
} |
} |
|
|
/** |
* Execute le widget. |
*/ |
147,8 → 144,6 |
$widget->executer(); |
} |
} |
} else { |
echo "pas de module précisé"; |
} |
} |
|
162,5 → 157,4 |
self::$config = array_merge(self::$config, $widget_config); |
} |
} |
} |
?> |
} |