crawler copatibility not only for neopolimatrix, classname is extracted from class now, removed warning in saimod_sys_files.php
This commit is contained in:
parent
5ebb40d49d
commit
001190934d
@ -4,17 +4,21 @@ namespace SYSTEM\API;
|
||||
|
||||
abstract class api_default {
|
||||
//https://developers.google.com/webmasters/ajax-crawling/docs/getting-started
|
||||
//mojotrollz.eu:80/web/flingit/?_escaped_fragment_=start%3Bhash.ce5504f67533ab3d881a32e1dcdd330aaeb27f19
|
||||
public static function static__escaped_fragment_($_escaped_fragment_){
|
||||
$state = \SYSTEM\PAGE\State::get(1, $_escaped_fragment_,false);
|
||||
$result = '';
|
||||
foreach($state as $row){
|
||||
parse_str(\parse_url($row['url'],PHP_URL_QUERY), $params);
|
||||
$result .= \SYSTEM\API\api::run('\SYSTEM\API\verify', 'page_neopolimatrix', $params, 1, true, true)->html();
|
||||
$result .= \SYSTEM\API\api::run('\SYSTEM\API\verify', static::get_class(), $params, 1, true, true)->html();
|
||||
}
|
||||
echo $result;//echo (new \default_page())->html();
|
||||
die();
|
||||
}
|
||||
|
||||
public static function get_class(){
|
||||
return self::class;}
|
||||
|
||||
public static function default_page(){
|
||||
throw new \RuntimeException("Unimplemented");}
|
||||
}
|
||||
@ -17,7 +17,6 @@ class saimod_sys_files extends \SYSTEM\SAI\SaiModule {
|
||||
}
|
||||
|
||||
public static function sai_mod__SYSTEM_SAI_saimod_sys_files_action_upload($cat){
|
||||
new \SYSTEM\LOG\WARNING(print_r($_FILES,true));
|
||||
if(!\SYSTEM\FILES\files::put($cat, basename($_FILES['datei_'.$cat]['name']) , $_FILES['datei_'.$cat]['tmp_name'])){
|
||||
throw new \SYSTEM\LOG\ERROR("upload problem");}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user