www/dev/index.php

69 lines
2.7 KiB
PHP
Raw Normal View History

2023-05-11 15:36:22 +03:00
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<!--!Copyright © 2023 Aliberk Sandıı-->
<meta charset="UTF-8">
<!-- CSS Files -->
2023-05-11 15:42:38 +03:00
<?php
$dir = new DirectoryIterator("assets/css");
foreach ($dir as $file) {
if ((!$file->isDot()) && str_ends_with($file, ".css")) {
echo '<link rel="stylesheet" href="/assets/css/' . $file . '">' . PHP_EOL . ' ';
}
} ?>
2023-05-11 15:36:22 +03:00
2023-05-11 16:23:14 +03:00
<title>DEVELOPMENT PAGE</title>
2023-05-11 15:36:22 +03:00
</head>
<body>
2023-05-11 16:23:14 +03:00
<h1>DEVELOPMENT PAGE</h1>
<hr>
2023-05-11 15:36:22 +03:00
<?php
2023-05-11 16:00:40 +03:00
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;
2023-05-11 15:36:22 +03:00
?>
2023-05-11 15:42:38 +03:00
<?php
$dir = new DirectoryIterator("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 . ' ';
}
} ?>
2023-05-11 15:36:22 +03:00
</body>
</html>