Files
Testing/html5-chat/classes/Background.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

27 lines
448 B
PHP

<?php
@require_once('DB.php');
//ini_set('display_errors', 1);
//error_reporting(E_ALL);
class Background {
public static function getAll() {
$dir = __DIR__.'/../backgrounds/*.jpg';
foreach (glob($dir) as $image) {
$image = basename($image);
$res[] = array('image'=>"backgrounds/$image", 'thumb'=>"backgrounds/thumbs/$image");
}
return $res;
}
}