diff options
author | Yaco <franco@reevo.org> | 2022-03-08 13:08:34 +0000 |
---|---|---|
committer | Yaco <franco@reevo.org> | 2022-03-08 13:08:34 +0000 |
commit | c985c40d3f3fc6a2be3be3186df3bf2f32189475 (patch) | |
tree | cee11f5e5a7e351ee0fec36d58d72cbee4f7e49b /platform/www/lib/images/smileys/index.php |
first commit after acervus codebase
Diffstat (limited to 'platform/www/lib/images/smileys/index.php')
-rw-r--r-- | platform/www/lib/images/smileys/index.php | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/platform/www/lib/images/smileys/index.php b/platform/www/lib/images/smileys/index.php new file mode 100644 index 0000000..5749666 --- /dev/null +++ b/platform/www/lib/images/smileys/index.php @@ -0,0 +1,53 @@ +<!DOCTYPE html> +<html lang="en" dir="ltr"> +<head> + <title>Smileys</title> + + <style> + body { + background-color: #ccc; + font-family: Arial; + } + + .box { + width: 200px; + float: left; + padding: 0.5em; + margin: 0; + } + + .white { + background-color: #fff; + } + + .black { + background-color: #000; + } + </style> + +</head> +<body> + +<?php +$smi_list = ''; +foreach (glob('*.gif') as $img) { + $smi_list .= '<img src="'.$img.'" alt="'.$img.'" title="'.$img.'" /> '; +} +if(is_dir('local')) { + $smi_list .= '<hr />'; + foreach (glob('local/*.gif') as $img) { + $smi_list .= '<img src="'.$img.'" alt="'.$img.'" title="'.$img.'" /> '; + } +} + +echo '<div class="white box"> +'.$smi_list.' +</div> + +<div class="black box"> +'.$smi_list; +?> +</div> + +</body> +</html> |