├── .github
└── workflows
│ └── php.yml
├── Address-Book
├── README.md
├── add_contact.php
├── address_book.sql
├── config
│ └── config.php
├── contacts.php
├── core
│ └── init.php
├── css
│ ├── bootstrap.css
│ └── custom.css
├── delete_contact.php
├── edit_contact.php
├── fonts
│ ├── glyphicons-halflings-regular.eot
│ ├── glyphicons-halflings-regular.svg
│ ├── glyphicons-halflings-regular.ttf
│ ├── glyphicons-halflings-regular.woff
│ └── glyphicons-halflings-regular.woff2
├── footer.php
├── header.php
├── helpers
│ └── system_helper.php
├── images
│ ├── avatars
│ │ ├── avatar1.jpg
│ │ ├── avatar2.jpg
│ │ └── noimage.png
│ ├── icon.ico
│ └── loader.gif
├── index.php
├── js
│ ├── bootstrap.js
│ ├── jquery.min.js
│ └── script.js
└── libraries
│ └── Database.php
├── Homino-Elnaz
├── README.md
├── admin_edit_footer.php
├── admin_employee.php
├── admin_employee_reserved_times.php
├── admin_groups.php
├── admin_login.php
├── admin_messages.php
├── admin_panel.php
├── admin_report1.php
├── admin_report2.php
├── admin_report3.php
├── admin_report4.php
├── admin_report5.php
├── admin_times.php
├── admin_user_reserve_history.php
├── admin_users.php
├── css
│ ├── bootstrap-theme.css
│ ├── bootstrap-theme.min.css
│ ├── bootstrap.css
│ ├── bootstrap.min.css
│ ├── custom.css
│ ├── font-awesome.css
│ ├── font-awesome.min.css
│ ├── fontiran.css
│ └── jquery.Bootstrap-PersianDateTimePicker.css
├── database.php
├── employee_add_time.php
├── employee_information.php
├── employee_panel.php
├── employee_reserved_time_details.php
├── employee_reserved_times.php
├── employee_send_mail.php
├── fonts
│ ├── FontAwesome.otf
│ ├── eot
│ │ ├── IRANSansWeb.eot
│ │ ├── IRANSansWeb_Bold.eot
│ │ ├── IRANSansWeb_Light.eot
│ │ ├── IRANSansWeb_Medium.eot
│ │ └── IRANSansWeb_UltraLight.eot
│ ├── fontawesome-webfont.eot
│ ├── fontawesome-webfont.svg
│ ├── fontawesome-webfont.ttf
│ ├── fontawesome-webfont.woff
│ ├── fontawesome-webfont.woff2
│ ├── ttf
│ │ ├── IRANSansWeb.ttf
│ │ ├── IRANSansWeb_Bold.ttf
│ │ ├── IRANSansWeb_Light.ttf
│ │ ├── IRANSansWeb_Medium.ttf
│ │ └── IRANSansWeb_UltraLight.ttf
│ ├── woff
│ │ ├── IRANSansWeb.woff
│ │ ├── IRANSansWeb_Bold.woff
│ │ ├── IRANSansWeb_Light.woff
│ │ ├── IRANSansWeb_Medium.woff
│ │ └── IRANSansWeb_UltraLight.woff
│ └── woff2
│ │ ├── IRANSansWeb.woff2
│ │ ├── IRANSansWeb_Bold.woff2
│ │ ├── IRANSansWeb_Light.woff2
│ │ ├── IRANSansWeb_Medium.woff2
│ │ └── IRANSansWeb_UltraLight.woff2
├── header.php
├── homino.sql
├── images
│ ├── 1.png
│ ├── 2.png
│ ├── 3.png
│ ├── 4.png
│ ├── icon.ico
│ └── slider
│ │ ├── slider1.jpg
│ │ ├── slider2.jpg
│ │ └── slider3.jpg
├── index.php
├── jdf.php
├── js
│ ├── bootstrap.js
│ ├── bootstrap.min.js
│ ├── chart.min.js
│ ├── jalaali.js
│ ├── jquery-3.3.1.min.js
│ ├── jquery.Bootstrap-PersianDateTimePicker.js
│ ├── just persian.js
│ ├── loader.js
│ ├── npm.js
│ ├── persianumber.js
│ ├── persianumber.min.js
│ ├── topbutton.js
│ └── with english.js
├── login.php
├── logout.php
├── phpmailer
│ ├── Exception.php
│ ├── OAuth.php
│ ├── PHPMailer.php
│ ├── POP3.php
│ └── SMTP.php
├── register.php
├── times.php
├── user_information.php
├── user_panel.php
├── user_reserved_times.php
├── user_send_mail.php
└── user_send_message.php
├── Mashhad-Taxi
├── README.md
├── about_us.php
├── add_car_admin.php
├── admin_panel.php
├── cars_admin.php
├── css
│ ├── bootstrap-theme.css
│ ├── bootstrap-theme.css.map
│ ├── bootstrap-theme.min.css
│ ├── bootstrap-theme.min.css.map
│ ├── bootstrap.css
│ ├── bootstrap.css.map
│ ├── custom.css
│ ├── font-awesome.css
│ └── font-awesome.min.css
├── database.php
├── edit_information_taxi.php
├── edit_information_user.php
├── fonts
│ ├── FontAwesome.otf
│ ├── fontawesome-webfont.eot
│ ├── fontawesome-webfont.svg
│ ├── fontawesome-webfont.ttf
│ ├── fontawesome-webfont.woff
│ ├── fontawesome-webfont.woff2
│ ├── glyphicons-halflings-regular.eot
│ ├── glyphicons-halflings-regular.svg
│ ├── glyphicons-halflings-regular.ttf
│ ├── glyphicons-halflings-regular.woff
│ └── glyphicons-halflings-regular.woff2
├── footer.php
├── functions.php
├── get_new_service.php
├── get_taxies_location.php
├── header.php
├── images
│ ├── ScreenShot.jpg
│ ├── cars.png
│ ├── icon.ico
│ ├── taxi.jpg
│ ├── taxi.png
│ ├── taxi1.png
│ ├── taxi2.png
│ ├── taxies.png
│ ├── taxies
│ │ └── noimage.png
│ ├── users.png
│ └── users
│ │ ├── besco.jpg
│ │ ├── noimage.png
│ │ └── sajjad.jpg
├── index.php
├── js
│ ├── bootstrap.js
│ ├── bootstrap.min.js
│ ├── jquery.min.js
│ ├── npm.js
│ └── typed.js
├── login.php
├── logout.php
├── mashhad_taxi.sql
├── register.php
├── service_is_done.php
├── service_request.php
├── service_submit.php
├── taxi_location_admin.php
├── taxi_panel.php
├── taxies_admin.php
├── update_taxi_location_in_database.php
├── update_user_location_in_database.php
├── user_panel.php
└── users_admin.php
├── Mgh-Social-Network
├── README.md
├── add_category_admin.php
├── categories_admin.php
├── core
│ ├── functions.php
│ └── init.php
├── create.php
├── css
│ ├── bootstrap.css
│ └── custom.css
├── dashboard.php
├── fonts
│ ├── glyphicons-halflings-regular.eot
│ ├── glyphicons-halflings-regular.svg
│ ├── glyphicons-halflings-regular.ttf
│ ├── glyphicons-halflings-regular.woff
│ └── glyphicons-halflings-regular.woff2
├── footer.php
├── header.php
├── images
│ ├── avatars
│ │ ├── avatar2.jpg
│ │ └── noimage.png
│ ├── category.jpg
│ ├── icon.ico
│ ├── links
│ │ ├── facebook.png
│ │ ├── google-plus.png
│ │ ├── html5.png
│ │ ├── instagram.png
│ │ ├── rss.png
│ │ ├── skype.png
│ │ ├── twitter.png
│ │ └── viber.png
│ ├── topic.jpg
│ ├── unregistered_user.png
│ ├── user.png
│ └── yas.png
├── index.php
├── js
│ ├── bootstrap.js
│ ├── bootstrap.min.js
│ └── npm.js
├── libraries
│ ├── Category.php
│ ├── Database.php
│ ├── Topic.php
│ └── User.php
├── login.php
├── logout.php
├── mgh.sql
├── profile.php
├── profile_unregistered.php
├── register.php
├── topic.php
├── topics_admin.php
├── unregisteredusers_admin.php
└── users_admin.php
├── Momeni-Storage
├── README.md
├── add_category_admin.php
├── add_kala.php
├── add_unit_admin.php
├── categories_admin.php
├── contact_us.php
├── css
│ ├── bootstrap-theme.css
│ ├── bootstrap-theme.css.map
│ ├── bootstrap-theme.min.css
│ ├── bootstrap-theme.min.css.map
│ ├── bootstrap.css
│ ├── bootstrap.css.map
│ ├── custom.css
│ ├── font-awesome.css
│ └── font-awesome.min.css
├── database.php
├── factor_add.php
├── factor_remove.php
├── fonts
│ ├── FontAwesome.otf
│ ├── IRAN
│ │ ├── IRANSansWeb.woff
│ │ ├── IRANSansWeb_Bold.woff
│ │ ├── IRANSansWeb_Light.woff
│ │ ├── IRANSansWeb_Medium.woff
│ │ └── IRANSansWeb_UltraLight.woff
│ ├── fontawesome-webfont.eot
│ ├── fontawesome-webfont.svg
│ ├── fontawesome-webfont.ttf
│ ├── fontawesome-webfont.woff
│ ├── fontawesome-webfont.woff2
│ ├── glyphicons-halflings-regular.eot
│ ├── glyphicons-halflings-regular.svg
│ ├── glyphicons-halflings-regular.ttf
│ ├── glyphicons-halflings-regular.woff
│ └── glyphicons-halflings-regular.woff2
├── functions.php
├── header.php
├── images
│ ├── background.jpg
│ ├── category.png
│ ├── kala.ico
│ ├── kala.png
│ ├── kalas
│ │ ├── 1.jpg
│ │ ├── 10.jpg
│ │ ├── 11.jpg
│ │ ├── 12.jpg
│ │ ├── 13.jpg
│ │ ├── 14.jpg
│ │ ├── 15.jpg
│ │ ├── 2.jpg
│ │ ├── 3.jpg
│ │ ├── 4.jpg
│ │ ├── 5.jpg
│ │ ├── 6.jpg
│ │ ├── 7.jpg
│ │ ├── 8.jpg
│ │ └── 9.jpg
│ ├── report.png
│ ├── storage keeper.png
│ ├── storage_keppers
│ │ ├── ahmad.jpg
│ │ ├── ali.jpg
│ │ └── noimage.png
│ ├── top.png
│ └── unit.png
├── increase_credit.php
├── index.php
├── js
│ ├── bootstrap.js
│ ├── bootstrap.min.js
│ ├── jquery.min.js
│ └── topbutton.js
├── kala.php
├── login.php
├── logout.php
├── main.php
├── panel_admin.php
├── register.php
├── remove_kala.php
├── reports_admin.php
├── statistics.php
├── storage.sql
├── storage_keepers_admin.php
└── units_admin.php
└── README.md
/.github/workflows/php.yml:
--------------------------------------------------------------------------------
1 | name: PHP Composer
2 |
3 | on:
4 | push:
5 | branches: [ "main" ]
6 | pull_request:
7 | branches: [ "main" ]
8 |
9 | permissions:
10 | contents: read
11 |
12 | jobs:
13 | build:
14 |
15 | runs-on: ubuntu-latest
16 |
17 | steps:
18 | - uses: actions/checkout@v3
19 |
20 | - name: Validate composer.json and composer.lock
21 | run: composer validate --strict
22 |
23 | - name: Cache Composer packages
24 | id: composer-cache
25 | uses: actions/cache@v3
26 | with:
27 | path: vendor
28 | key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
29 | restore-keys: |
30 | ${{ runner.os }}-php-
31 |
32 | - name: Install dependencies
33 | run: composer install --prefer-dist --no-progress
34 |
35 | # Add a test script to composer.json, for instance: "test": "vendor/bin/phpunit"
36 | # Docs: https://getcomposer.org/doc/articles/scripts.md
37 |
38 | # - name: Run test suite
39 | # run: composer run-script test
40 |
--------------------------------------------------------------------------------
/Address-Book/README.md:
--------------------------------------------------------------------------------
1 | # Address-Book
2 | Address Book website for add, edit and delete contacts with PHP
3 |
--------------------------------------------------------------------------------
/Address-Book/add_contact.php:
--------------------------------------------------------------------------------
1 |
2 | numOfRows() + 1;
18 |
19 | if($_FILES["avatar"]["size"] > 1)
20 | {
21 | move_uploaded_file($_FILES["avatar"]["tmp_name"],"images/avatars/"."avatar".$id.".jpg");
22 | $avatar = "avatar".$id.".jpg";
23 | }
24 | else
25 | {
26 | $avatar = "noimage.png";
27 | }
28 | $query = "INSERT INTO contacts (first_name, last_name, email, phone_number, address, contact_group, state, avatar, note)
29 | VALUES('$first_name', '$last_name', '$email', '$phone_number', '$address', '$contact_group', '$state', '$avatar', '$note')";
30 |
31 | $insert_row = $db->insert($query);
32 |
33 | header("Location: index.php");
34 | exit();
35 | }
36 | ?>
--------------------------------------------------------------------------------
/Address-Book/address_book.sql:
--------------------------------------------------------------------------------
1 | -- phpMyAdmin SQL Dump
2 | -- version 4.6.4
3 | -- https://www.phpmyadmin.net/
4 | --
5 | -- Host: 127.0.0.1
6 | -- Generation Time: Sep 02, 2018 at 11:18 AM
7 | -- Server version: 5.7.14
8 | -- PHP Version: 5.6.25
9 |
10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
11 | SET time_zone = "+00:00";
12 |
13 |
14 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
15 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
16 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
17 | /*!40101 SET NAMES utf8mb4 */;
18 |
19 | --
20 | -- Database: `address_book`
21 | --
22 |
23 | -- --------------------------------------------------------
24 |
25 | --
26 | -- Table structure for table `contacts`
27 | --
28 |
29 | CREATE TABLE `contacts` (
30 | `id` int(11) NOT NULL,
31 | `first_name` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
32 | `last_name` varchar(100) CHARACTER SET latin1 NOT NULL,
33 | `email` varchar(100) CHARACTER SET latin1 NOT NULL,
34 | `phone_number` varchar(50) CHARACTER SET latin1 NOT NULL,
35 | `address` varchar(100) CHARACTER SET latin1 NOT NULL,
36 | `contact_group` varchar(100) CHARACTER SET latin1 NOT NULL,
37 | `state` varchar(100) CHARACTER SET latin1 NOT NULL,
38 | `note` text COLLATE utf8mb4_unicode_ci NOT NULL,
39 | `avatar` varchar(100) CHARACTER SET latin1 NOT NULL,
40 | `date_added` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
41 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci ROW_FORMAT=COMPACT;
42 |
43 | --
44 | -- Dumping data for table `contacts`
45 | --
46 |
47 | INSERT INTO `contacts` (`id`, `first_name`, `last_name`, `email`, `phone_number`, `address`, `contact_group`, `state`, `note`, `avatar`, `date_added`) VALUES
48 | (4, 'Sajjad', 'Aemmi', 'sajjadaemmi@gmail.com', '09150471487', '', 'Family', 'Khorasan', '', 'avatar1.jpg', '2015-07-12 22:10:57'),
49 | (5, 'Maryam', 'Nazeran', 'maryamnazeran73@gmail.com', '09151245974', 'Torghabe', 'Family', 'Khorasan', 'i love you ;)', 'avatar2.jpg', '2018-09-02 11:09:57');
50 |
51 | --
52 | -- Indexes for dumped tables
53 | --
54 |
55 | --
56 | -- Indexes for table `contacts`
57 | --
58 | ALTER TABLE `contacts`
59 | ADD PRIMARY KEY (`id`);
60 |
61 | --
62 | -- AUTO_INCREMENT for dumped tables
63 | --
64 |
65 | --
66 | -- AUTO_INCREMENT for table `contacts`
67 | --
68 | ALTER TABLE `contacts`
69 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6;
70 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
71 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
72 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
73 |
--------------------------------------------------------------------------------
/Address-Book/config/config.php:
--------------------------------------------------------------------------------
1 | sem malesuada magna mollis euismod. Cras mattis consectetur purus sit amet fermentum. Aenean lacinia bibendum nulla sed consectetur.';
9 | ?>
--------------------------------------------------------------------------------
/Address-Book/core/init.php:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Address-Book/css/custom.css:
--------------------------------------------------------------------------------
1 | html
2 | {
3 | position: relative;
4 | min-height: 100%;
5 | }
6 | body
7 | {
8 | background-color: white;
9 | font-size: 15px;
10 | font-family: arial;
11 | font-weight: bold;
12 | //direction: rtl;
13 | margin-bottom: 50px;
14 | }
15 | .navbar {
16 | border-radius: 0px;
17 | }
18 | a
19 | {
20 | color: #5c5b69;
21 | }
22 | ul
23 | {
24 | padding: 0px;
25 | margin: 0px;
26 | list-style: none;
27 | }
28 | hr
29 | {
30 | margin: 10px 0px 15px 0px;
31 | }
32 | h3
33 | {
34 | margin-bottom: 5px;
35 | }
36 | .block
37 | {
38 | background-color: #ffffff;
39 | border-radius: 5px;
40 | padding: 15px 20px;
41 | margin-bottom: 10px;
42 | }
43 | #loader img
44 | {
45 | position: absolute;
46 | top: 80px;
47 | left: 48%;
48 | width: 5%;
49 | margin: 50px auto 50px auto;
50 | }
51 | #editbutton
52 | {
53 | margin-bottom: 7px;
54 | }
55 | .thumbnail
56 | {
57 | width: 100px;
58 | }
59 | /*
60 | * Footer
61 | */
62 |
63 | .blog-footer
64 | {
65 | font-family: arial;
66 | padding: 15px 0;
67 | color: rgb(119, 119, 119);
68 | text-align: center;
69 | border-top: 1px solid #e5e5e5;
70 | bottom: 0px;
71 | position: absolute;
72 | overflow: hidden;
73 | white-space: nowrap;
74 | width: 100%;
75 | background-color: rgb(248, 248, 248);
76 | border-top-color: rgb(231, 231, 231);
77 | }
78 | .blog-footer p:last-child
79 | {
80 | margin-bottom: 0;
81 | }
82 | .blog-footer a:hover
83 | {
84 | color: #ffffff;
85 | text-decoration: none;
86 | }
--------------------------------------------------------------------------------
/Address-Book/delete_contact.php:
--------------------------------------------------------------------------------
1 |
2 | delete($query);
15 |
16 | header("Location: index.php");
17 | exit();
18 | }
19 | ?>
--------------------------------------------------------------------------------
/Address-Book/edit_contact.php:
--------------------------------------------------------------------------------
1 |
2 | 1)
19 | {
20 | unlink("images/avatars/"."avatar".$id.".jpg");
21 | move_uploaded_file($_FILES["avatar"]["tmp_name"],"images/avatars/"."avatar".$id.".jpg");
22 | $avatar = "avatar".$id.".jpg";
23 |
24 | $query = "UPDATE contacts SET first_name='$first_name', last_name='$last_name', email='$email', phone_number='$phone_number', address='$address', contact_group='$contact_group', state='$state', note='$note', avatar='$avatar'
25 | WHERE id='$id'";
26 | }
27 | else
28 | {
29 | $query = "UPDATE contacts SET first_name='$first_name', last_name='$last_name', email='$email', phone_number='$phone_number', address='$address', contact_group='$contact_group', state='$state', note='$note'
30 | WHERE id='$id'";
31 | }
32 |
33 | $insert_row = $db->update($query);
34 |
35 | header("Location: index.php");
36 | exit();
37 | }
38 | ?>
--------------------------------------------------------------------------------
/Address-Book/fonts/glyphicons-halflings-regular.eot:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Address-Book/fonts/glyphicons-halflings-regular.eot
--------------------------------------------------------------------------------
/Address-Book/fonts/glyphicons-halflings-regular.ttf:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Address-Book/fonts/glyphicons-halflings-regular.ttf
--------------------------------------------------------------------------------
/Address-Book/fonts/glyphicons-halflings-regular.woff:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Address-Book/fonts/glyphicons-halflings-regular.woff
--------------------------------------------------------------------------------
/Address-Book/fonts/glyphicons-halflings-regular.woff2:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/SajjadAemmi/PHP-Mini-Websites/f3ea3974631fa1b529693d45344d7c0a8a0d5739/Address-Book/fonts/glyphicons-halflings-regular.woff2
--------------------------------------------------------------------------------
/Address-Book/footer.php:
--------------------------------------------------------------------------------
1 |
6 |
7 |
8 |
9 |
10 |