Files
BW/html5-chat/classes/Background.php
sean 343b4a3f3f
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-19 18:32:17 -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;
}
}