-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit cc551ce
Showing
944 changed files
with
114,143 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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,25 @@ | ||
<IfModule mod_rewrite.c> | ||
<IfModule mod_negotiation.c> | ||
Options -MultiViews | ||
</IfModule> | ||
|
||
DirectoryIndex index.php | ||
|
||
RewriteEngine On | ||
|
||
# Hide directories | ||
IndexIgnore * | ||
|
||
# Redirect Trailing Slashes If Not A Folder... | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule ^(.*)/$ /$1 [L,R=301] | ||
|
||
# Redirect to index.php | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteRule ^ index.php [L] | ||
|
||
# Handle Authorization Header | ||
RewriteCond %{HTTP:Authorization} . | ||
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] | ||
</IfModule> |
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,20 @@ | ||
**Project Name:** PHPluse | ||
|
||
### Overview | ||
**PHPluse** is a multi-purpose application designed as a centralized dashboard for managing applications and data efficiently. It provides a unified platform to monitor and analyze performance, manage users, control settings, and organize various types of data. | ||
|
||
|
||
### **Key Features** | ||
**Application Management** – Easily add, update, and remove applications through an intuitive interface. | ||
**Data Management** – Store and organize data flexibly with support for multiple database types. | ||
**Analytics & Reports** – Generate comprehensive statistics on performance, users, and data. | ||
**User & Role Management** – Advanced access control system with role-based permissions. | ||
**API Integration** – Seamless integration with external systems and applications via RESTful APIs. | ||
**Real-Time Alerts & Notifications** – Get instant updates on important changes within the system. | ||
**Responsive Design** – Fully optimized for both desktop and mobile devices. | ||
**High Security** – Implements best security practices, including encryption and two-factor authentication. | ||
|
||
### **Potential Use Cases** | ||
**SaaS Management Dashboard** – Perfect for overseeing web applications and cloud services. | ||
**Enterprise Data Management** – Organize and control business-critical data efficiently. | ||
**Admin Panel for Web & Mobile Apps** – Manage content, users, and analytics from a single interface. |
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\Controller; | ||
|
||
use Core\Modules\Template\Render; | ||
use App\Model\Admins; | ||
use App\Model\AccountStatus; | ||
use App\Model\AccountPrivacy; | ||
use App\Model\Genders; | ||
|
||
class AdminsController | ||
{ | ||
public function create () | ||
{ | ||
$admins = new Admins(); | ||
$all_admins = $admins->all()->fetch(); | ||
|
||
$genders = new Genders(); | ||
$all_genders = $genders->all()->fetch(); | ||
|
||
$privacy = new AccountPrivacy(); | ||
$all_privacy = $privacy->all()->fetch(); | ||
|
||
Render::view('admins/create', compact('all_admins', 'all_genders', 'all_privacy')); | ||
} | ||
} | ||
?> |
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,22 @@ | ||
<?php | ||
namespace App\Controller; | ||
|
||
use Core\Modules\Template\Render; | ||
use App\Model\Admins; | ||
|
||
class HomeController | ||
{ | ||
public function index () | ||
{ | ||
// $admins = new Admins(); | ||
// $all = $admins->select(['*'])->fetch(); | ||
|
||
Render::view('home'); | ||
} | ||
|
||
public static function admin () | ||
{ | ||
return 'ahmed hassan'; | ||
} | ||
} | ||
?> |
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,14 @@ | ||
<?php | ||
namespace App\Middleware; | ||
|
||
use Core\Modules\Sessions\Session; | ||
|
||
class App | ||
{ | ||
public function __construct () | ||
{ | ||
$session = new Session(); | ||
$session->start(); | ||
} | ||
} | ||
?> |
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,11 @@ | ||
<?php | ||
namespace App\Middleware; | ||
|
||
class Auth | ||
{ | ||
public function __construct () | ||
{ | ||
echo 'Auth Middleware'; | ||
} | ||
} | ||
?> |
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,22 @@ | ||
<?php | ||
namespace App\Model; | ||
|
||
use Core\Modules\Database\Sql\Db; | ||
|
||
class AccountPrivacy extends Db | ||
{ | ||
protected $table = 'account_privacy'; | ||
|
||
/** Configure new connection | ||
---------------------------- | ||
protected $connection = [ | ||
'driver' => 'pgsql', | ||
'host' => 'localhost', | ||
'user' => 'ahmed', | ||
'password' => '24882533', | ||
'database' => 'sys', | ||
'port' => '5432' | ||
]; | ||
**/ | ||
} | ||
?> |
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,22 @@ | ||
<?php | ||
namespace App\Model; | ||
|
||
use Core\Modules\Database\Sql\Db; | ||
|
||
class AccountStatus extends Db | ||
{ | ||
protected $table = 'account_status'; | ||
|
||
/** Configure new connection | ||
---------------------------- | ||
protected $connection = [ | ||
'driver' => 'pgsql', | ||
'host' => 'localhost', | ||
'user' => 'ahmed', | ||
'password' => '24882533', | ||
'database' => 'sys', | ||
'port' => '5432' | ||
]; | ||
**/ | ||
} | ||
?> |
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,22 @@ | ||
<?php | ||
namespace App\Model; | ||
|
||
use Core\Modules\Database\Sql\Db; | ||
|
||
class Admins extends Db | ||
{ | ||
protected $table = 'admins'; | ||
|
||
/** Configure new connection | ||
---------------------------- | ||
protected $connection = [ | ||
'driver' => 'pgsql', | ||
'host' => 'localhost', | ||
'user' => 'ahmed', | ||
'password' => '24882533', | ||
'database' => 'sys', | ||
'port' => '5432' | ||
]; | ||
**/ | ||
} | ||
?> |
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,22 @@ | ||
<?php | ||
namespace App\Model; | ||
|
||
use Core\Modules\Database\Sql\Db; | ||
|
||
class Genders extends Db | ||
{ | ||
protected $table = 'genders'; | ||
|
||
/** Configure new connection | ||
---------------------------- | ||
protected $connection = [ | ||
'driver' => 'pgsql', | ||
'host' => 'localhost', | ||
'user' => 'ahmed', | ||
'password' => '24882533', | ||
'database' => 'sys', | ||
'port' => '5432' | ||
]; | ||
**/ | ||
} | ||
?> |
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,41 @@ | ||
<?php | ||
|
||
$route = new \Core\Modules\Routes\Route(); | ||
|
||
// Remove specific words from the URL | ||
$route->remove([DIR]); | ||
|
||
$route->middleware(['app'])->get('/dashboard', 'HomeController@index'); | ||
|
||
// Admins | ||
$route->middleware(['app'])->get('/dashboard/admin/create', 'AdminsController@create'); | ||
|
||
// $route->get('{lang}/home', function () { | ||
// echo 'Lang'; | ||
// }); | ||
|
||
// Start Group Middlewares | ||
// $route->middlewareGroup(['app']); | ||
|
||
// $route->middleware(['auth']) | ||
// ->regex(['id' => '^[a-z0-9{}?\/]+$']) | ||
// ->get('/home/en/{id}/{email}', 'HomeController@index'); | ||
|
||
// $route->get('/home/ar/{username}', function ($username) { | ||
// var_dump(ROUTE_URL_PARAMS); | ||
// echo 'username = '.$username; | ||
// }); | ||
|
||
// End Group Middlewares | ||
// $route->middlewareEnd(); | ||
|
||
|
||
// $route->get('/hello/world', function () { | ||
// echo 'Hello World'; | ||
// }); | ||
|
||
// 404 Not Found Error | ||
// $route->error404(function () { | ||
// exit('404 - Page Not Found.'); | ||
// }); | ||
?> |
Oops, something went wrong.