diff --git a/api.php b/api.php index 527a7e1..6d19308 100644 --- a/api.php +++ b/api.php @@ -1,7 +1,7 @@ invalid folder");} - - $filelist = array(); - $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path)); - while($it->valid()) { - if (!$it->isDot()) { - $filelist[] = $it->key();} - $it->next(); - } - - //random - if($id == -1 || $id < 0 || $id >= count($filelist)){ - $id = rand(0, count($filelist)-1);} - - \SYSTEM\HEADER::PNG(); - return file_get_contents($filelist[$id]); - } -} \ No newline at end of file diff --git a/danube/autoload.inc.php b/danube/autoload.inc.php index c974a96..1c80beb 100644 --- a/danube/autoload.inc.php +++ b/danube/autoload.inc.php @@ -5,4 +5,6 @@ require_once dirname(__FILE__).'/path/register_path_classes.php'; require_once dirname(__FILE__).'/page/register_page_classes.php'; require_once dirname(__FILE__).'/dbd/autoload.inc.php'; -require_once dirname(__FILE__).'/api/autoload.inc.php'; \ No newline at end of file +require_once dirname(__FILE__).'/api/autoload.inc.php'; + +require_once dirname(__FILE__).'/img/autoload.inc.php'; \ No newline at end of file diff --git a/danube/img/autoload.inc.php b/danube/img/autoload.inc.php new file mode 100644 index 0000000..e137e6a --- /dev/null +++ b/danube/img/autoload.inc.php @@ -0,0 +1,3 @@ + -
-${danube_page_certificates} -
+
+
+ ${gallery_certifictes} +
+
+