diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..25c8fdb --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +node_modules +package-lock.json \ No newline at end of file diff --git a/README.md b/README.md index 654a6a1..8028497 100644 --- a/README.md +++ b/README.md @@ -1,46 +1,20 @@ -`#php` `#server` `#master-in-software-development` +# PHP Environment - MSD OCT22 -# PHP Server Environment +Project created by [David Pizarro](https://dtpf.es) -

- Version -

+## Requriments -> In this project you will learn how to explore the content of the variable $_SERVER which is injected to the running script, in it we can find information about the server environment and the client. +- [PHP] 7 or higher. -## Index +## Installing -- [Requirements](#requirements) -- [Repository](#repository) -- [Technologies used](#technologies-used) -- [Project delivery](#project-delivery) -- [Resources](#resources) +``` +npm intall +``` -## Requirements +## Built With -- Learn how to use the $_SERVER -- Understand what a server-side language is and what it is used for +* [PHP](https://www.php.net/) +* [VSCode](https://code.visualstudio.com/) -## Repository - -First of all you must fork this project into your GitHub account. - -To create a fork on GitHub is as easy as clicking the “fork” button on the repository page. - -Fork on GitHub - -## Technologies used - -\* PHP - -## Project delivery - -To deliver this project you must send a Pull Request as explained in the Students Handbook. Remember that the PR title must be with the format -- Solution: + NAME AND SURNAME or TEAM NAMES AND SURNAMES. -- For example: "Solution: Josep Riera", "Solution: Josep Riera, Toni Suárez, Marta Vázquez" - -## Resources - -- [$_SERVER](https://www.php.net/manual/en/reserved.variables.server.php) -- [PHP.ini](https://www.php.net/manual/es/configuration.file.php) -- [PHP Superglobals](https://code.tutsplus.com/es/tutorials/php-superglobals-explained-with-cheatsheet--cms-36598) +[PHP]: \ No newline at end of file diff --git a/assets/css/index.css b/assets/css/index.css new file mode 100644 index 0000000..c0698c2 --- /dev/null +++ b/assets/css/index.css @@ -0,0 +1,89 @@ +body { + background-color: antiquewhite; +} + +/*************** index.php ****************/ + +.form { + display: grid; + place-content: center; + height: 100vh; + justify-content: center; +} + +.form-div { + padding: 15px; + border-radius: 5px; + background: rgb(2, 0, 36); + background: radial-gradient(circle, rgb(170, 0, 222) 0%, rgba(82, 9, 121, 0.858061974789916) 35%, rgba(187, 0, 255, 1) 100%); +} + +.form .login-info { + margin: 0 auto; + text-align: center; + border: 1px solid black; + height: auto; + max-width: 180px; + margin-top: 15px; + margin-bottom: 20px; + background-color: #fff; + border-radius: 5px; +} + +.form .login-info p { + padding: 5px 10px; + margin: 0; +} + +/*************** panel.php ****************/ + +.bd-placeholder-img { + font-size: 1.125rem; + text-anchor: middle; + -webkit-user-select: none; + -moz-user-select: none; + user-select: none; +} + +@media (min-width: 768px) { + .bd-placeholder-img-lg { + font-size: 3.5rem; + } +} + +.b-example-divider { + height: 3rem; + background-color: rgba(0, 0, 0, .1); + border: solid rgba(0, 0, 0, .15); + border-width: 1px 0; + box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15); +} + +.b-example-vr { + flex-shrink: 0; + width: 1.5rem; + height: 100vh; +} + +.bi { + vertical-align: -.125em; + fill: currentColor; +} + +.nav-scroller { + position: relative; + z-index: 2; + height: 2.75rem; + overflow-y: hidden; +} + +.nav-scroller .nav { + display: flex; + flex-wrap: nowrap; + padding-bottom: 1rem; + margin-top: -1px; + overflow-x: auto; + text-align: center; + white-space: nowrap; + -webkit-overflow-scrolling: touch; +} \ No newline at end of file diff --git a/close_session.php b/close_session.php new file mode 100644 index 0000000..4794918 --- /dev/null +++ b/close_session.php @@ -0,0 +1,3 @@ +'; +print_r($_SERVER); +echo ''; + +echo '
'; + +// php.ini search +$inipath = php_ini_loaded_file(); +if ($inipath) { + echo 'Loaded php.ini: ' . $inipath; +} else { + echo 'A php.ini file is not loaded'; +} diff --git a/environment/session_variables.php b/environment/session_variables.php new file mode 100644 index 0000000..38178e1 --- /dev/null +++ b/environment/session_variables.php @@ -0,0 +1,10 @@ +'; +print_r($_SESSION); +echo ''; diff --git a/index.php b/index.php new file mode 100644 index 0000000..34a0a80 --- /dev/null +++ b/index.php @@ -0,0 +1,44 @@ + + + + + + + + + + Server Environment + + + + + +
+
+ + + +
+ + +
+
+ + + + User or password not valid
" : "" ?> + This is a private section
" : "" ?> + + + + + + + + \ No newline at end of file diff --git a/methods.php b/methods.php new file mode 100644 index 0000000..46c2537 --- /dev/null +++ b/methods.php @@ -0,0 +1,72 @@ + + + + + + + + + + + + Pricing example · Bootstrap v5.2 + + + + + + + + + + Check + + + + +
+
+
+ + Bootstrap + + + + + +
+ +
+

Pricing

+

Quickly build an effective pricing table for your potential customers with this Bootstrap example. It’s built with default Bootstrap components and utilities with little customization.

+
+
+ +
+
+
+
+
+

Free

+
+
+

$0/mo

+
    +
  • 10 users included
  • +
  • 2 GB of storage
  • +
  • Email support
  • +
  • Help center access
  • +
+ +
+
+
+
+
+
+

Pro

+
+
+

$15/mo

+
    +
  • 20 users included
  • +
  • 10 GB of storage
  • +
  • Priority email support
  • +
  • Help center access
  • +
+ +
+
+
+
+
+
+

Enterprise

+
+
+

$29/mo

+
    +
  • 30 users included
  • +
  • 15 GB of storage
  • +
  • Phone and email support
  • +
  • Help center access
  • +
+ +
+
+
+
+ +

Compare plans

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FreeProEnterprise
Public + + + + + +
Private + + + +
Permissions + + + + + +
Sharing + + + +
Unlimited members + + + +
Extra security + +
+
+
+ + +
+ + + + + + \ No newline at end of file diff --git a/validate.php b/validate.php new file mode 100644 index 0000000..99370cb --- /dev/null +++ b/validate.php @@ -0,0 +1,3 @@ +