Skip to content

Commit

Permalink
LDP removed and small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
hasirciogli committed Oct 5, 2023
1 parent 62411e3 commit c3a1af3
Show file tree
Hide file tree
Showing 18 changed files with 3 additions and 1,646 deletions.
4 changes: 0 additions & 4 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
RewriteEngine on

# Redirect HTTPS requests to HTTP
RewriteCond %{HTTPS} ON
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteBase /
RewriteRule ^(.*)$ public/index.php [L,QSA]
23 changes: 0 additions & 23 deletions .htaccess_old

This file was deleted.

22 changes: 0 additions & 22 deletions .htaccess_old_old

This file was deleted.

1 change: 0 additions & 1 deletion app/assignments/view/PAGETYPES.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
enum PAGETYPES
{
case PAGE_TYPE_NORMAL;
case PAGE_TYPE_LDP;
case PAGE_TYPE_ERROR;
case PAGE_TYPE_DERROR;
}
1 change: 0 additions & 1 deletion app/configs/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@


define("framework_is_debug_mode", true);
define("framework_is_development_mode", true);


define("configs_site_jquery", '<script src="https://cdn.jsdelivr.net/npm/jquery@3.7.0/dist/jquery.min.js"></script>');
Expand Down
47 changes: 0 additions & 47 deletions app/controllers/LocalDevelopmentPanelController.php

This file was deleted.

10 changes: 0 additions & 10 deletions app/middlewares/AuthMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@

class AuthMiddleware {

/**
* @param mixed ...$pArgs
* @return bool
*/
public function handle(...$pArgs): bool {
echo "LDP ye giremezsiniz.";
Router::Route("/", 3);
return false;
}

/**
* @return bool
*/
Expand Down
14 changes: 0 additions & 14 deletions app/model/LocalDevelopmentPanelModel.php

This file was deleted.

5 changes: 0 additions & 5 deletions app/route/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,11 +282,6 @@ public function handleRequest(): void
Api::cfun()->use($this, $routerGroup);
});


if (framework_is_development_mode) {
$this->group('/ldp', "app\\controllers\\LocalDevelopmentPanelController@use");
}

//die($this->ruri);
foreach ($this->routes[$this->method] ?? [] as $routePath => $handler) {
if ($this->matchRoute($this->ruri, $routePath)) {
Expand Down
9 changes: 0 additions & 9 deletions app/view/View.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,6 @@ public static function Show($load, $type)

break;

case PAGETYPES::PAGE_TYPE_LDP:
if (file_exists(configs_site_rootfolder . "/local-development-panel/" . $load . ".hff.php"))
include(configs_site_rootfolder . "/local-development-panel/" . $load . ".hff.php");
else {
self::Show("404", PAGETYPES::PAGE_TYPE_ERROR);
}

break;

case PAGETYPES::PAGE_TYPE_ERROR:

header("HTTP/1.0 404 Not Found");
Expand Down
Loading

0 comments on commit c3a1af3

Please sign in to comment.