www/dev/index.php
2023-05-11 16:29:20 +03:00

69 lines
No EOL
2.7 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<!--!Copyright © 2023 Aliberk Sandıı-->
<meta charset="UTF-8">
<!-- CSS Files -->
<?php
$dir = new DirectoryIterator($_SERVER['DOCUMENT_ROOT']."/assets/css");
foreach ($dir as $file) {
if ((!$file->isDot()) && str_ends_with($file, ".css")) {
echo '<link rel="stylesheet" href="/assets/css/' . $file . '">' . PHP_EOL . ' ';
}
} ?>
<title>DEVELOPMENT PAGE</title>
</head>
<body>
<h1>DEVELOPMENT PAGE</h1>
<hr>
<?php
echo 'DOCUMENTS_ROOT:' . $_SERVER['DOCUMENT_ROOT'] . PHP_EOL;
echo 'PHP_SELF:' . $_SERVER['PHP_SELF'] . PHP_EOL;
echo 'GATEWAY_INTERFACE:' . $_SERVER['GATEWAY_INTERFACE'] . PHP_EOL;
echo 'SERVER_ADDR:' . $_SERVER['SERVER_ADDR'] . PHP_EOL;
echo 'SERVER_NAME:' . $_SERVER['SERVER_NAME'] . PHP_EOL;
echo 'SERVER_SOFTWARE:' . $_SERVER['SERVER_SOFTWARE'] . PHP_EOL;
echo 'SERVER_PROTOCOL:' . $_SERVER['SERVER_PROTOCOL'] . PHP_EOL;
echo 'REQUEST_METHOD:' . $_SERVER['REQUEST_METHOD'] . PHP_EOL;
echo 'REQUEST_TIME:' . $_SERVER['REQUEST_TIME'] . PHP_EOL;
echo 'REQUEST_TIME_FLOAT:' . $_SERVER['REQUEST_TIME_FLOAT'] . PHP_EOL;
echo 'QUERY_STRING:' . $_SERVER['QUERY_STRING'] . PHP_EOL;
echo 'DOCUMENT_ROOT:' . $_SERVER['DOCUMENT_ROOT'] . PHP_EOL;
echo 'HTTPS:' . $_SERVER['HTTPS'] . PHP_EOL;
echo 'REMOTE_ADDR:' . $_SERVER['REMOTE_ADDR'] . PHP_EOL;
echo 'REMOTE_HOST:' . $_SERVER['REMOTE_HOST'] . PHP_EOL;
echo 'REMOTE_PORT:' . $_SERVER['REMOTE_PORT'] . PHP_EOL;
echo 'REMOTE_USER:' . $_SERVER['REMOTE_USER'] . PHP_EOL;
echo 'REDIRECT_REMOTE_USER:' . $_SERVER['REDIRECT_REMOTE_USER'] . PHP_EOL;
echo 'SCRIPT_FILENAME:' . $_SERVER['SCRIPT_FILENAME'] . PHP_EOL;
echo 'SERVER_ADMIN:' . $_SERVER['SERVER_ADMIN'] . PHP_EOL;
echo 'SERVER_PORT:' . $_SERVER['SERVER_PORT'] . PHP_EOL;
echo 'SERVER_SIGNATURE:' . $_SERVER['SERVER_SIGNATURE'] . PHP_EOL;
echo 'PATH_TRANSLATED:' . $_SERVER['PATH_TRANSLATED'] . PHP_EOL;
echo 'SCRIPT_NAME:' . $_SERVER['SCRIPT_NAME'] . PHP_EOL;
echo 'REQUEST_URI:' . $_SERVER['REQUEST_URI'] . PHP_EOL;
echo 'PHP_AUTH_DIGEST:' . $_SERVER['PHP_AUTH_DIGEST'] . PHP_EOL;
echo 'PHP_AUTH_USER:' . $_SERVER['PHP_AUTH_USER'] . PHP_EOL;
echo 'PHP_AUTH_PW:' . $_SERVER['PHP_AUTH_PW'] . PHP_EOL;
echo 'AUTH_TYPE:' . $_SERVER['AUTH_TYPE'] . PHP_EOL;
echo 'PATH_INFO:' . $_SERVER['PATH_INFO'] . PHP_EOL;
echo 'ORIG_PATH_INFO:' . $_SERVER['ORIG_PATH_INFO'] . PHP_EOL;
?>
<?php
$dir = new DirectoryIterator($_SERVER['DOCUMENT_ROOT']."/assets/js");
foreach ($dir as $file) {
if ((!$file->isDot()) && str_ends_with($file, ".js") && $file != "jquery.js") {
echo '<script src="/assets/js/' . $file . '"></script>' . PHP_EOL . ' ';
}
} ?>
</body>
</html>