-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from KIUT-Projects/main
Merge
- Loading branch information
Showing
75 changed files
with
4,230 additions
and
104 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,13 @@ | ||
APP_URL="http://127.0.0.1" | ||
APP_URL="http://127.0.0.1:8000" | ||
APP_LANGUAGE="ru" | ||
APP_DEBUG="false" | ||
|
||
APP_SERVE="127.0.0.1" | ||
APP_SERVE_PORT="8000" | ||
|
||
DB_CONN="mysql" | ||
DB_HOST="127.0.0.1" | ||
DB_PORT="3306" | ||
DB_NAME="crud_database" | ||
DB_USER="root" | ||
DB_PASS="" | ||
DB_PASS="" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
# RewriteEngine On | ||
# RewriteCond %{REQUEST_FILENAME} !-f | ||
# AddDefaultCharset UTF-8 | ||
# RewriteRule ^(.+)$ index.php?q=$1 [L,QSA] | ||
|
||
## RewriteCond %{REQUEST_URI} !(\.png|\.jpg|\.webp|\.gif|\.jpeg|\.zip|\.css|\.svg|\.js|\.pdf)$ | ||
## RewriteRule (.*) index.php [QSA,L] | ||
|
||
RewriteEngine On | ||
RewriteCond %{REQUEST_URI} !(\.png|\.jpg|\.webp|\.gif|\.jpeg|\.zip|\.css|\.svg|\.js|\.pdf)$ | ||
RewriteRule (.*) index.php [QSA,L] | ||
RewriteBase /public | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule ^.*$ index.php [L] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<?php | ||
|
||
namespace App\Controllers; | ||
|
||
class DebugController | ||
{ | ||
public function error_400(){ | ||
return view('error.400'); | ||
} | ||
public function error_401(){ | ||
return view('error.401'); | ||
} | ||
public function error_403(){ | ||
return view('error.403'); | ||
} | ||
public function error_404(){ | ||
return view('error.404'); | ||
} | ||
public function error_500(){ | ||
return view('error.500'); | ||
} | ||
public function error_503(){ | ||
return view('error.503'); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<?php | ||
|
||
namespace App\Services; | ||
|
||
class Database | ||
{ | ||
public function query($query){ | ||
// | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
namespace App\Services; | ||
|
||
class Session | ||
{ | ||
|
||
public function get($name){ | ||
return $_SESSION[$name] ?? null; | ||
} | ||
|
||
public function set($name){ | ||
return $_SESSION[$name] ?? null; | ||
} | ||
|
||
public function put($name, $text){ | ||
return $_SESSION[$name] = $text; | ||
} | ||
|
||
public function remove($name){ | ||
return $_SESSION[$name] = null; | ||
} | ||
|
||
public function clear(){ | ||
session_destroy(); | ||
return 1; | ||
} | ||
|
||
} |
Oops, something went wrong.