├── phpproject ├── images │ ├── pp.jpg │ ├── pp.png │ ├── logo.png │ ├── banner.jpg │ ├── products │ │ ├── preproimg.jpg │ │ ├── product1.jpg │ │ ├── preproimg.webp │ │ ├── 638877fedc67c5522721KEbda10463812012022ThufThursdayam.jpg │ │ ├── 63887877a5dbd277863qbhOiP10483912012022ThufThursdayam.jpg │ │ ├── 638878f01a061200352NP5tFf10504012012022ThufThursdayam.jpg │ │ ├── 63887a9386534539901k8AW6B10573912012022ThufThursdayam.jpg │ │ ├── 63887acc5256a822393fKnrgX10583612012022ThufThursdayam.jpg │ │ ├── 63887ae26a740284439HbBZuq10585812012022ThufThursdayam.jpg │ │ ├── 63887b03e47e8639623um957L10593112012022ThufThursdayam.jpg │ │ ├── 63887b4b7887a828004xQgjZL11004312012022ThufThursdayam.jpg │ │ ├── 63887b76d3ea7111041WwrQnC11012612012022ThufThursdayam.jpg │ │ ├── 63887b9aa598a511171vzfEKU11020212012022ThufThursdayam.jpg │ │ ├── 63887bc2a814b760268Kcs3uM11024212012022ThufThursdayam.jpeg │ │ ├── 63887beb4c4ee901795R0eGco11032312012022ThufThursdayam.jpg │ │ ├── 63887c15c4f5c315542Qanocy11040512012022ThufThursdayam.jpg │ │ ├── 63887c4cc97de275800YkxrAs11050012012022ThufThursdayam.jpg │ │ ├── 63887c82ea5f79001909wkzgq11055412012022ThufThursdayam.jpg │ │ ├── 63887cf7670fc116530mxwanM11075112012022ThufThursdayam.jpg │ │ ├── 63887d191fa485149056gQE3u11082512012022ThufThursdayam.jpg │ │ ├── 63887d4f9002d192976RI6mkh11091912012022ThufThursdayam.jpg │ │ ├── 63887d735f58c936887eX5Hqt11095512012022ThufThursdayam.png │ │ ├── 63887daf1c400285242kw2ob011105512012022ThufThursdayam.jpg │ │ ├── 63887df771b3c2779835swUod11120712012022ThufThursdayam.jpg │ │ ├── 63887e681d715989775AnDN0T11140012012022ThufThursdayam.jpg │ │ ├── 63887ea8d7ebd571719dFuJ1R11150412012022ThufThursdayam.jpg │ │ ├── 63887f799590e713890lnpAWY11183312012022ThufThursdayam.jpg │ │ ├── 6388806fb3770544389fF8MNI11223912012022ThufThursdayam.jpg │ │ └── 63888076069f3243900NYTctv11224612012022ThufThursdayam.jpg │ └── users │ │ ├── 1 │ │ └── 638d9803e42ab391276yQa45h08043512052022MonfMondayam.jpg │ │ ├── 2 │ │ └── 636f53ff651c3224091JiX6vg09062311122022SatfSaturdayam.jpg │ │ └── 9 │ │ └── 63721a4d9d26a462465ElMSj811370111142022MonfMondayam.jpg ├── logout.php ├── commonPageCode.php ├── admin │ ├── footer.php │ ├── index.php │ ├── header.php │ ├── sidebar.php │ ├── navbar.php │ ├── allproducts.php │ └── addnewproduct.php ├── classes │ ├── db.php │ └── userAccount.php ├── index.php ├── header.php ├── changePassword.php ├── homeContact.php ├── profileSettings.php ├── navbar.php ├── Contact Form #8_files │ ├── s.js.download │ ├── css │ ├── vaafb692b2aea4879b33c060e79fe94621666317369993 │ └── jquery.validate.min.js+main.js.pagespeed.jc.r3sznQIvAr.js.download ├── account.php ├── footer.php └── homeProducts.php ├── crud ├── footer.php ├── navbar.php ├── header.php ├── form.php ├── delete.php ├── read.php ├── index.php ├── test.php └── update.php ├── hw ├── abdullahcrudapp-main │ ├── css │ │ ├── style.scss │ │ ├── style.css.map │ │ └── style.css │ ├── footer.php │ ├── header.php │ ├── js │ │ └── main.js │ ├── delete.php │ ├── students.sql │ ├── index.php │ ├── add.php │ └── update.php └── Form-Validation-with-PHP-main │ ├── footer.php │ ├── header.php │ ├── delete.php │ ├── dlt.php │ ├── data_base.sql │ ├── read.php │ ├── form validation.php │ └── edit.php ├── l4.datetime.php ├── l1-php-syntext.php ├── oop ├── class.php └── class2.php ├── form.php ├── l3.array.php ├── l2-php-const-reference.php ├── l5tcsg.php └── b77practice.sql /phpproject/images/pp.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/pp.jpg -------------------------------------------------------------------------------- /phpproject/images/pp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/pp.png -------------------------------------------------------------------------------- /phpproject/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/logo.png -------------------------------------------------------------------------------- /phpproject/images/banner.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/banner.jpg -------------------------------------------------------------------------------- /phpproject/logout.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /hw/abdullahcrudapp-main/css/style.scss: -------------------------------------------------------------------------------- 1 | *, 2 | *::before, 3 | *::after{ 4 | box-sizing: border-box; 5 | } 6 | 7 | a{ 8 | text-decoration: none; 9 | } -------------------------------------------------------------------------------- /phpproject/commonPageCode.php: -------------------------------------------------------------------------------- 1 | 4 |
5 | 6 |
7 | -------------------------------------------------------------------------------- /hw/abdullahcrudapp-main/css/style.css.map: -------------------------------------------------------------------------------- 1 | {"version":3,"sources":["style.scss","style.css"],"names":[],"mappings":"AAAA;;;EAGI,sBAAA;ACCJ;;ADEA;EACI,qBAAA;ACCJ","file":"style.css"} -------------------------------------------------------------------------------- /hw/Form-Validation-with-PHP-main/footer.php: -------------------------------------------------------------------------------- 1 | 3 | 4 | -------------------------------------------------------------------------------- /hw/abdullahcrudapp-main/css/style.css: -------------------------------------------------------------------------------- 1 | *, 2 | *::before, 3 | *::after { 4 | box-sizing: border-box; 5 | } 6 | 7 | a { 8 | text-decoration: none; 9 | }/*# sourceMappingURL=style.css.map */ -------------------------------------------------------------------------------- /hw/abdullahcrudapp-main/footer.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /phpproject/images/users/1/638d9803e42ab391276yQa45h08043512052022MonfMondayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/users/1/638d9803e42ab391276yQa45h08043512052022MonfMondayam.jpg -------------------------------------------------------------------------------- /phpproject/images/users/9/63721a4d9d26a462465ElMSj811370111142022MonfMondayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/users/9/63721a4d9d26a462465ElMSj811370111142022MonfMondayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/638877fedc67c5522721KEbda10463812012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/638877fedc67c5522721KEbda10463812012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/63887877a5dbd277863qbhOiP10483912012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/63887877a5dbd277863qbhOiP10483912012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/638878f01a061200352NP5tFf10504012012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/638878f01a061200352NP5tFf10504012012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/63887a9386534539901k8AW6B10573912012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/63887a9386534539901k8AW6B10573912012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/63887acc5256a822393fKnrgX10583612012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/63887acc5256a822393fKnrgX10583612012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/63887ae26a740284439HbBZuq10585812012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/63887ae26a740284439HbBZuq10585812012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/63887b03e47e8639623um957L10593112012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/63887b03e47e8639623um957L10593112012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/63887b4b7887a828004xQgjZL11004312012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/63887b4b7887a828004xQgjZL11004312012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/63887b76d3ea7111041WwrQnC11012612012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/63887b76d3ea7111041WwrQnC11012612012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/63887b9aa598a511171vzfEKU11020212012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/63887b9aa598a511171vzfEKU11020212012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/63887bc2a814b760268Kcs3uM11024212012022ThufThursdayam.jpeg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/63887bc2a814b760268Kcs3uM11024212012022ThufThursdayam.jpeg -------------------------------------------------------------------------------- /phpproject/images/products/63887beb4c4ee901795R0eGco11032312012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/63887beb4c4ee901795R0eGco11032312012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/63887c15c4f5c315542Qanocy11040512012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/63887c15c4f5c315542Qanocy11040512012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/63887c4cc97de275800YkxrAs11050012012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/63887c4cc97de275800YkxrAs11050012012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/63887c82ea5f79001909wkzgq11055412012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/63887c82ea5f79001909wkzgq11055412012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/63887cf7670fc116530mxwanM11075112012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/63887cf7670fc116530mxwanM11075112012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/63887d191fa485149056gQE3u11082512012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/63887d191fa485149056gQE3u11082512012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/63887d4f9002d192976RI6mkh11091912012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/63887d4f9002d192976RI6mkh11091912012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/63887d735f58c936887eX5Hqt11095512012022ThufThursdayam.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/63887d735f58c936887eX5Hqt11095512012022ThufThursdayam.png -------------------------------------------------------------------------------- /phpproject/images/products/63887daf1c400285242kw2ob011105512012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/63887daf1c400285242kw2ob011105512012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/63887df771b3c2779835swUod11120712012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/63887df771b3c2779835swUod11120712012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/63887e681d715989775AnDN0T11140012012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/63887e681d715989775AnDN0T11140012012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/63887ea8d7ebd571719dFuJ1R11150412012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/63887ea8d7ebd571719dFuJ1R11150412012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/63887f799590e713890lnpAWY11183312012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/63887f799590e713890lnpAWY11183312012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/6388806fb3770544389fF8MNI11223912012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/6388806fb3770544389fF8MNI11223912012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/products/63888076069f3243900NYTctv11224612012022ThufThursdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/products/63888076069f3243900NYTctv11224612012022ThufThursdayam.jpg -------------------------------------------------------------------------------- /phpproject/images/users/2/636f53ff651c3224091JiX6vg09062311122022SatfSaturdayam.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/asif-daffodil/b-77-php/main/phpproject/images/users/2/636f53ff651c3224091JiX6vg09062311122022SatfSaturdayam.jpg -------------------------------------------------------------------------------- /crud/navbar.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |

-------------------------------------------------------------------------------- /phpproject/admin/footer.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /crud/header.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Bootstrap demo 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /phpproject/classes/db.php: -------------------------------------------------------------------------------- 1 | 4 |
5 |
6 | 9 |
10 | 11 |
12 |
13 |
14 | 15 | -------------------------------------------------------------------------------- /hw/Form-Validation-with-PHP-main/header.php: -------------------------------------------------------------------------------- 1 | 4 | 5 | 6 | 7 | 8 | 9 | Form Validation 10 | 11 | 12 | -------------------------------------------------------------------------------- /hw/Form-Validation-with-PHP-main/delete.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | query($delte_query); 9 | if(!$delete){ 10 | echo "hhahahah"; 11 | }else{ 12 | echo ""; 13 | } 14 | 15 | include_once('./footer.php'); 16 | ?> -------------------------------------------------------------------------------- /phpproject/index.php: -------------------------------------------------------------------------------- 1 | 4 |
5 |
6 | 7 |
8 |
9 | 10 | 13 | 19 | 22 | -------------------------------------------------------------------------------- /l4.datetime.php: -------------------------------------------------------------------------------- 1 | "; 4 | 5 | 6 | //mktime 7 | // hour min sec month day year 8 | $myTime = mktime(0, 0, 0, 9, 10, 2013); 9 | echo date("M/d/y H:i:s a -l", $myTime) . "
"; 10 | 11 | // strtotime 12 | $nextTuesday = strtotime("next tuesday +3 years +4 months -15 days "); 13 | echo date("M/d/Y H:i:s a -l", $nextTuesday) . "
"; 14 | 15 | $startDate = strtotime("next friday"); 16 | $endDate = strtotime("+6 weeks", $startDate); 17 | 18 | while ($startDate <= $endDate) { 19 | echo date("M/d/Y H:i:s a -l", $startDate) . "
"; 20 | $startDate = strtotime("+1 week", $startDate); 21 | } 22 | -------------------------------------------------------------------------------- /hw/abdullahcrudapp-main/header.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Home - Crud Application 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /l1-php-syntext.php: -------------------------------------------------------------------------------- 1 | " . $v . " " . $r . ""; 9 | } 10 | 11 | /* 12 | call the 13 | function... 14 | */ 15 | echo myFunc(r: "...", v: $varName); 16 | 17 | /** 18 | * this is 19 | * a multiline 20 | * comment 21 | */ 22 | 23 | /**php operators 24 | * php datatypes 25 | */ 26 | 27 | // loops 28 | /** 29 | * foreach 30 | * for 31 | * do while 32 | * while 33 | */ 34 | 35 | /**conditions 36 | * if-else 37 | * switch 38 | */ 39 | 40 | /**Array 41 | * Indexed array 42 | * Associative array 43 | * Multi-dimontional array 44 | */ 45 | // $kaka = "Chacha"; 46 | echo $kaka ?? null; 47 | ?> 48 | 49 |

This is html

-------------------------------------------------------------------------------- /oop/class.php: -------------------------------------------------------------------------------- 1 | This is a text from constructtive function
"; 10 | } 11 | 12 | public function __destruct() 13 | { 14 | echo "
This is a text from destructtive function
"; 15 | } 16 | } 17 | 18 | class studentFamilyData extends studentData 19 | { 20 | private int $studnentChielCount = 0; 21 | 22 | public function studentFamilyData(string $name, int $age): string 23 | { 24 | $this->studentName = $name; 25 | $this->studentAge = $age; 26 | return "Styudent Name : $this->studentName
Student Age : $this->studentAge
Studen Chieldren: $this->studnentChielCount"; 27 | } 28 | } 29 | 30 | // $studentDataObj = new studentData; 31 | $studentFamilyDataObj = new studentFamilyData; 32 | 33 | echo $studentFamilyDataObj->studentFamilyData("Ashraf", 20); 34 | -------------------------------------------------------------------------------- /form.php: -------------------------------------------------------------------------------- 1 | Please provide the user name"; 8 | } elseif (!preg_match("/^[A-Za-z. ]*$/", $uname)) { 9 | $errUname = "Invalid user name"; 10 | } 11 | 12 | if (empty($uemail)) { 13 | $errUemail = "please provide the email address"; 14 | } elseif (!filter_var($uemail, FILTER_VALIDATE_EMAIL)) { 15 | $errUemail = "Invalid email address"; 16 | } 17 | } 18 | ?> 19 |
20 | 21 | 22 |

23 | 24 | 25 | 26 |

27 | 28 |
-------------------------------------------------------------------------------- /crud/form.php: -------------------------------------------------------------------------------- 1 | Please provide the user name"; 8 | } elseif (!preg_match("/^[A-Za-z. ]*$/", $uname)) { 9 | $errUname = "Invalid user name"; 10 | } 11 | 12 | if (empty($uemail)) { 13 | $errUemail = "please provide the email address"; 14 | } elseif (!filter_var($uemail, FILTER_VALIDATE_EMAIL)) { 15 | $errUemail = "Invalid email address"; 16 | } 17 | } 18 | ?> 19 |
20 | 21 | 22 |

23 | 24 | 25 | 26 |

27 | 28 |
-------------------------------------------------------------------------------- /phpproject/header.php: -------------------------------------------------------------------------------- 1 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | Bootstrap demo 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | -------------------------------------------------------------------------------- /crud/delete.php: -------------------------------------------------------------------------------- 1 | query($try_to_select_query); 9 | if ($try_to_select->num_rows != 1) { 10 | header("location: read.php"); 11 | } else { 12 | ?> 13 |

Do you realy want to delete the data?

14 | 15 | 16 | 17 |
18 | 19 | 20 |
21 | query($delete_query); 29 | if (!$del) { 30 | echo "ha ha ha"; 31 | } else { 32 | echo ""; 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /l3.array.php: -------------------------------------------------------------------------------- 1 | "; 9 | print_r($cities); 10 | echo ""; 11 | echo $cities[0] . "
"; 12 | for ($i = 0; $i < count($cities); $i++) { 13 | echo $cities[$i] . "
"; 14 | } 15 | 16 | 17 | // associative array 18 | $persons = ["name" => "Asif Abir", "age" => 36, "city" => "Dhaka"]; 19 | echo "
";
20 | print_r($persons);
21 | echo "
"; 22 | echo $persons["name"] . "
"; 23 | foreach ($persons as $key => $val) { 24 | echo ucfirst($key) . " : " . $val . "
"; 25 | } 26 | 27 | //multidimontional array 28 | $students = [ 29 | ["name" => "Kamal", "skill" => "Java", "city" => "Dhaka"], 30 | ["name" => "Jamal", "skill" => "PHP", "city" => "Bogura"], 31 | ["name" => "Tomal", "skill" => "Python", "city" => "Cumilla"] 32 | ]; 33 | 34 | echo "
";
35 | print_r($students);
36 | echo "
"; 37 | echo $students[1]["skill"] . "
"; 38 | 39 | foreach ($students as $student) { 40 | foreach ($student as $key => $val) { 41 | echo ucfirst($key) . " : " . $val . "
"; 42 | } 43 | echo "
"; 44 | } 45 | -------------------------------------------------------------------------------- /crud/read.php: -------------------------------------------------------------------------------- 1 | query($read_query); 5 | 6 | if ($read->num_rows > 0) { 7 | ?> 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | fetch_assoc()) { 19 | ?> 20 | 21 | 22 | 23 | 24 | 25 | 26 | 30 | 31 | 34 |
NameGenderPhoneCitydtlsActions
27 | 28 | 29 |
35 | 36 | 39 |

No Student Data Found

40 | -------------------------------------------------------------------------------- /phpproject/admin/header.php: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | Bootstrap demo 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /oop/class2.php: -------------------------------------------------------------------------------- 1 | Employee Age : " . employeeData::$employeeAge . "
Employee Status : $message"; 32 | } 33 | } 34 | 35 | echo showEmployeeData::employeeData("Asif Abir", 36, true, "Male"); 36 | echo "

"; 37 | echo showEmployeeData::employeeData("Sayma Mis", 37, false, "Female"); 38 | -------------------------------------------------------------------------------- /phpproject/admin/sidebar.php: -------------------------------------------------------------------------------- 1 |
2 |

Admin Pannel

3 | 4 |
5 | 6 | 9 | 16 | 23 |
24 |
25 | -------------------------------------------------------------------------------- /l2-php-const-reference.php: -------------------------------------------------------------------------------- 1 | "; 6 | 7 | $x = 123; 8 | var_dump($x); 9 | echo "
"; 10 | 11 | $x = 123.456; 12 | var_dump($x); 13 | echo "
"; 14 | 15 | $x = true; 16 | var_dump($x); 17 | echo "
"; 18 | 19 | $x = ["Ami", 123, true]; 20 | var_dump($x); 21 | echo "
"; 22 | 23 | class person 24 | { 25 | public $name = "ASif Abir"; 26 | } 27 | 28 | $x = new person; 29 | var_dump($x); 30 | echo "
"; 31 | 32 | $x = null; 33 | var_dump($x); 34 | echo "
"; 35 | 36 | $myname = "Asif Abir"; 37 | $myname = "Kamal Mia"; 38 | echo $myname . "
"; 39 | 40 | define("myName", "Asif Abir"); 41 | // define("myName", "Aslam Mia"); 42 | echo myName . "
"; 43 | // echo saddam; 44 | 45 | $a = "b"; 46 | $b = "c"; 47 | $c = "d"; 48 | $d = "Sakib Khan"; 49 | echo $ $ $$a . "
"; 50 | 51 | 52 | $aa = &$ami; 53 | $ami = "Tumi"; 54 | echo $ami . " " . $aa . "
"; 55 | $aa = "Bangladesh"; 56 | echo $ami . "
"; 57 | 58 | //Math 59 | echo max(3, 1, 7, 8, 15, 565, 221, 2) . "
"; 60 | echo min(3, 1, 7, 8, 15, 565, -221, 2) . "
"; 61 | echo abs(-35) . "
"; 62 | echo round(3.5) . "
"; //output 4 63 | echo floor(3.9) . "
"; // output 3 64 | echo ceil(3.1) . "
"; // output 4 65 | 66 | // string func 67 | echo strlen("Dhaka is the capital of Bangladesh") . "
"; // output 34 68 | echo str_word_count("My name is khan!") . "
"; // output 4 69 | echo substr("My name is khan!", -5) . "
"; // output 4 70 | echo strrev("My name is khan!") . "
"; // output !nahk si eman yM 71 | -------------------------------------------------------------------------------- /hw/abdullahcrudapp-main/js/main.js: -------------------------------------------------------------------------------- 1 | 2 | // function myFunction() { 3 | // // Declare variables 4 | // var input, filter, table, tr, td, i, txtValue; 5 | // input = document.getElementById("myInput"); 6 | // filter = input.value.toUpperCase(); 7 | // table = document.getElementById("myTable"); 8 | // tr = table.getElementsByTagName("tr"); 9 | 10 | // // Loop through all table rows, and hide those who don't match the search query 11 | // for (i = 1; i < tr.length; i++) { 12 | // td = tr[i].getElementsByTagName("td")[0]; 13 | // if (td) { 14 | // txtValue = td.textContent || td.innerText; 15 | // if (txtValue.toUpperCase().indexOf(filter) > -1) { 16 | // tr[i].style.display = ""; 17 | // } else { 18 | // tr[i].style.display = "none"; 19 | // } 20 | // } 21 | // } 22 | // } 23 | 24 | // Example starter JavaScript for disabling form submissions if there are invalid fields 25 | (function () { 26 | 'use strict' 27 | 28 | // Fetch all the forms we want to apply custom Bootstrap validation styles to 29 | var forms = document.querySelectorAll('.needs-validation') 30 | 31 | // Loop over them and prevent submission 32 | Array.prototype.slice.call(forms) 33 | .forEach(function (form) { 34 | form.addEventListener('submit', function (event) { 35 | if (!form.checkValidity()) { 36 | event.preventDefault() 37 | event.stopPropagation() 38 | } 39 | 40 | form.classList.add('was-validated') 41 | }, false) 42 | }) 43 | })() 44 | 45 | -------------------------------------------------------------------------------- /crud/index.php: -------------------------------------------------------------------------------- 1 | query($insert_query); 13 | if (!$insert) { 14 | echo "ha ha ha"; 15 | } else { 16 | echo ""; 17 | } 18 | } 19 | } 20 | 21 | ?> 22 | 23 |
24 |

25 | Gender : 26 | Male 27 | Female 28 |

29 | 30 |

31 | 39 |

40 | 41 |

42 | 43 |
-------------------------------------------------------------------------------- /hw/abdullahcrudapp-main/delete.php: -------------------------------------------------------------------------------- 1 | query($select_query); 10 | 11 | ?> 12 |

php complete crud app

13 | 14 |
15 |
16 |

Are you sure you want to delete this Student's Details?

17 |
18 | No 19 |
20 | 21 | 22 |
23 |
24 |
25 |
26 | num_rows != 1) { 28 | header("location: index.php"); 29 | } else { 30 | if (isset($_POST['sub'])) { 31 | $uid = $_POST['id']; 32 | $delete_query = "DELETE FROM `students` WHERE `id` = $uid"; 33 | $delete = $conn->query($delete_query); 34 | if ($delete) { 35 | echo ""; 36 | } else { 37 | echo ""; 38 | } 39 | } 40 | } 41 | } 42 | 43 | ?> 44 | 45 | -------------------------------------------------------------------------------- /hw/Form-Validation-with-PHP-main/dlt.php: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | query($try_to_select_query); 13 | if($try_to_select->num_rows != 1){ 14 | header('location : ./read.php'); 15 | }else{ 16 | ?> 17 | 18 | 19 |
20 |
21 |
22 |
23 | Do you really want to delete the data of Register ID No. ? 25 |
26 |
27 | 28 |
29 | 30 | 31 |
32 |
33 |
34 | 35 |
36 |
37 | 38 | 39 | query($delete_query); 47 | if(!$delete){ 48 | echo "hahaha"; 49 | }else{ 50 | echo ""; 51 | } 52 | } 53 | 54 | 55 | ?> 56 | 57 | 58 | 59 | -------------------------------------------------------------------------------- /phpproject/changePassword.php: -------------------------------------------------------------------------------- 1 | 5 |
6 |
7 |
8 | 9 |

Change Password

10 |
11 |
12 | 13 |
14 | 15 |
16 |
17 |
18 | 19 |
20 | 21 |
22 |
23 |
24 | 25 |
26 | 27 |
28 |
29 | 30 |
31 |
32 |
33 |
34 | -------------------------------------------------------------------------------- /hw/abdullahcrudapp-main/students.sql: -------------------------------------------------------------------------------- 1 | -- phpMyAdmin SQL Dump 2 | -- version 5.2.0 3 | -- https://www.phpmyadmin.net/ 4 | -- 5 | -- Host: 127.0.0.1 6 | -- Generation Time: Oct 29, 2022 at 06:09 AM 7 | -- Server version: 10.4.24-MariaDB 8 | -- PHP Version: 8.1.6 9 | 10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 11 | START TRANSACTION; 12 | SET time_zone = "+00:00"; 13 | 14 | 15 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 16 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 17 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 18 | /*!40101 SET NAMES utf8mb4 */; 19 | 20 | -- 21 | -- Database: `students` 22 | -- 23 | 24 | -- -------------------------------------------------------- 25 | 26 | -- 27 | -- Table structure for table `students` 28 | -- 29 | 30 | CREATE TABLE `students` ( 31 | `id` int(100) NOT NULL, 32 | `first` varchar(64) NOT NULL, 33 | `last` varchar(32) NOT NULL, 34 | `phone` int(10) NOT NULL, 35 | `gender` varchar(10) NOT NULL, 36 | `time` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp() 37 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 38 | 39 | -- 40 | -- Dumping data for table `students` 41 | -- 42 | 43 | INSERT INTO `students` (`id`, `first`, `last`, `phone`, `gender`, `time`) VALUES 44 | (21, 'Salman', 'Bhaii', 1839426916, 'Male', '2022-10-28 13:27:57'), 45 | (22, 'Ayesha', 'Akter', 1886066999, 'Female', '2022-10-28 09:47:29'), 46 | (25, 'Abdullah Al Ahad', 'Bhuiyan', 1886966333, 'Male', '2022-10-28 17:48:09'), 47 | (27, 'Kaium', 'Hasan', 1876543210, 'Male', '2022-10-28 17:59:56'); 48 | 49 | -- 50 | -- Indexes for dumped tables 51 | -- 52 | 53 | -- 54 | -- Indexes for table `students` 55 | -- 56 | ALTER TABLE `students` 57 | ADD PRIMARY KEY (`id`); 58 | 59 | -- 60 | -- AUTO_INCREMENT for dumped tables 61 | -- 62 | 63 | -- 64 | -- AUTO_INCREMENT for table `students` 65 | -- 66 | ALTER TABLE `students` 67 | MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=28; 68 | COMMIT; 69 | 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 | -------------------------------------------------------------------------------- /phpproject/admin/navbar.php: -------------------------------------------------------------------------------- 1 | 42 | 43 | -------------------------------------------------------------------------------- /phpproject/homeContact.php: -------------------------------------------------------------------------------- 1 | 2 |
3 | 4 |
5 |
Contact Us
6 |
7 |
8 | 9 | 10 |
11 | 12 | 13 |
Name is required.
14 |
15 | 16 | 17 |
18 | 19 | 20 |
Email Address is required.
21 |
Email Address Email is not valid.
22 |
23 | 24 | 25 |
26 | 27 | 28 |
Message is required.
29 |
30 | 31 | 32 |
33 | 34 |
35 | 36 |
37 |
38 | 39 |
40 | 41 |
42 |
43 | 44 | 45 |
-------------------------------------------------------------------------------- /l5tcsg.php: -------------------------------------------------------------------------------- 1 | 10) { 6 | throw new Exception("Value must be 10 or below"); 7 | } 8 | return true; 9 | } 10 | 11 | //trigger exception in a "try" block 12 | 13 | try { 14 | checkNum(9); 15 | echo 'If you see this, the number is 10 or below'; 16 | } catch (Exception $e) { 17 | echo "Message : " . $e->getMessage(); 18 | } */ 19 | 20 | /* class customException extends Exception 21 | { 22 | public function errorMessage() 23 | { 24 | //error message 25 | $errorMsg = 'Error on line ' . $this->getLine() . ' in ' . $this->getFile() 26 | . ': ' . $this->getMessage() . ' is not a valid E-Mail address'; 27 | return $errorMsg; 28 | } 29 | } 30 | 31 | $email = "abir@dipti.com.bd"; 32 | 33 | try { 34 | //check if 35 | if (!filter_var($email, FILTER_VALIDATE_EMAIL)) { 36 | //throw exception if email is not valid 37 | throw new customException($email); 38 | } 39 | } catch (customException $e) { 40 | //display custom message 41 | echo $e->errorMessage(); 42 | } 43 | */ 44 | 45 | /* class customException extends Exception 46 | { 47 | public function errorMessage() 48 | { 49 | //error message 50 | $errorMsg = 'Error on line ' . $this->getLine() . ' in ' . $this->getFile() 51 | . ': ' . $this->getMessage() . ' is not a valid E-Mail address'; 52 | return $errorMsg; 53 | } 54 | } 55 | 56 | $email = "someone@example.com"; 57 | 58 | try { 59 | //check if 60 | if (filter_var($email, FILTER_VALIDATE_EMAIL) === FALSE) { 61 | //throw exception if email is not valid 62 | throw new customException($email); 63 | } 64 | //check for "example" in mail address 65 | if (strpos($email, "example") !== FALSE) { 66 | throw new Exception("$email is an example e-mail"); 67 | } 68 | } catch (customException $e) { 69 | echo $e->errorMessage(); 70 | } catch (Exception $e) { 71 | echo $e->getMessage(); 72 | } */ 73 | 74 | /* echo "
";
75 | print_r($_SERVER);
76 | echo "
"; */ 77 | 78 | echo pathinfo(basename($_SERVER["PHP_SELF"]))["extension"]; 79 | // $_SERVER["REQUEST_METHOD"]; 80 | echo "
"; 81 | $name = $_GET['name'] ?? null; 82 | $age = $_GET['age'] ?? null; 83 | echo "Name : " . $name . "
Age :" . $age; 84 | 85 | session_start(); 86 | $_SESSION['person_name'] = "Asif Abir"; 87 | $_SESSION['person_age'] = 36; 88 | $_SESSION['role'] = "admin"; 89 | 90 | echo "
";
91 | print_r($_SESSION);
92 | echo "
"; 93 | 94 | session_unset(); 95 | -------------------------------------------------------------------------------- /hw/Form-Validation-with-PHP-main/data_base.sql: -------------------------------------------------------------------------------- 1 | -- phpMyAdmin SQL Dump 2 | -- version 5.2.0 3 | -- https://www.phpmyadmin.net/ 4 | -- 5 | -- Host: 127.0.0.1 6 | -- Generation Time: Oct 28, 2022 at 01:22 PM 7 | -- Server version: 10.4.24-MariaDB 8 | -- PHP Version: 8.1.6 9 | 10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 11 | START TRANSACTION; 12 | SET time_zone = "+00:00"; 13 | 14 | 15 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 16 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 17 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 18 | /*!40101 SET NAMES utf8mb4 */; 19 | 20 | -- 21 | -- Database: `data_base` 22 | -- 23 | 24 | -- -------------------------------------------------------- 25 | 26 | -- 27 | -- Table structure for table `user_data` 28 | -- 29 | 30 | CREATE TABLE `user_data` ( 31 | `id` int(100) NOT NULL, 32 | `name` char(150) DEFAULT NULL, 33 | `email` char(200) DEFAULT NULL, 34 | `password` char(255) DEFAULT NULL, 35 | `reg_time` timestamp NOT NULL DEFAULT current_timestamp(), 36 | `date_of_birth` date DEFAULT NULL, 37 | `city` char(100) DEFAULT NULL, 38 | `gender` char(20) DEFAULT NULL 39 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 40 | 41 | -- 42 | -- Dumping data for table `user_data` 43 | -- 44 | 45 | INSERT INTO `user_data` (`id`, `name`, `email`, `password`, `reg_time`, `date_of_birth`, `city`, `gender`) VALUES 46 | (38, 'Kamrul Islam', 'kamrul.islam@gmail.com', 'Kamrul123///', '2022-10-27 20:55:14', '1995-08-06', 'Cumilla', 'Male'), 47 | (39, 'Abdullah Al Ahad Bhuiya', 'abdullah@gamil.com', 'Abdullah123///456', '2022-10-27 20:56:32', '2002-07-05', 'Dhaka', 'Male'), 48 | (40, 'Ashraf Uz Mahim', 'ashraf.uzzaman@gmail.com', 'Ashraf123???ashraf', '2022-10-28 07:58:27', '2004-08-04', ' Dhaka', 'Male'), 49 | (41, 'Hujur', 'hujur@gmail.com', 'Hujur7894561323', '2022-10-28 09:52:53', '1955-05-05', 'Narayanganj', 'Male'), 50 | (42, 'Jannat', 'jannat@gmail.com', 'Jannat25896314', '2022-10-28 09:58:01', '2005-08-08', 'Khulna', 'Female'); 51 | 52 | -- 53 | -- Indexes for dumped tables 54 | -- 55 | 56 | -- 57 | -- Indexes for table `user_data` 58 | -- 59 | ALTER TABLE `user_data` 60 | ADD PRIMARY KEY (`id`); 61 | 62 | -- 63 | -- AUTO_INCREMENT for dumped tables 64 | -- 65 | 66 | -- 67 | -- AUTO_INCREMENT for table `user_data` 68 | -- 69 | ALTER TABLE `user_data` 70 | MODIFY `id` int(100) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=44; 71 | COMMIT; 72 | 73 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 74 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 75 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 76 | -------------------------------------------------------------------------------- /crud/test.php: -------------------------------------------------------------------------------- 1 | 13 |
14 |
15 |
16 |

Add Student

17 |
18 |
19 | 20 |
21 |
22 |
23 |
24 | Gender : 25 |
26 | 27 |
28 |
29 | 30 |
31 |
32 |
33 | 34 |
35 |
36 | 44 |
45 |
46 | 47 |
48 |
49 | 50 |
51 |
52 |
53 |
54 |
55 | -------------------------------------------------------------------------------- /crud/update.php: -------------------------------------------------------------------------------- 1 | query($get_pre_data_query); 8 | if ($get_pre_data->num_rows != 1) { 9 | echo "

No Data Found

"; 10 | } else { 11 | $pre_data = $get_pre_data->fetch_assoc(); 12 | ?> 13 |
14 |

15 | Gender : 16 | >Male 17 | >Female 18 |

19 | 20 |

21 | 29 |

30 | 31 |

32 | 33 |
34 | query($update_query); 48 | if (!$update) { 49 | echo "ha ha ha"; 50 | } else { 51 | echo ""; 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /hw/Form-Validation-with-PHP-main/read.php: -------------------------------------------------------------------------------- 1 | query($read_query); 5 | 6 | if ($read->num_rows >= 0 || $read) { 7 | ?> 8 |
9 |
10 |
11 |

Registered account

12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | fetch_assoc()) { 28 | ?> 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 55 | 56 | 57 | 58 | 61 |
Register IDNameEmailPasswordGenderCityDate Of BirthAction
39 | 40 | 45 | 50 | 51 | 52 | 53 | 54 |
62 |
63 | 66 |
67 |
68 | 69 |
70 | 73 | 74 | 75 | 76 | 77 | -------------------------------------------------------------------------------- /phpproject/admin/allproducts.php: -------------------------------------------------------------------------------- 1 | 4 |
5 |
6 | query("SELECT * FROM `products`"); 9 | 10 | $pageNo = isset($_GET['pageNo']) ? $_GET['pageNo']:header("location: $pageName?pageNo=1"); 11 | $totalResult = $selectProducts->num_rows; 12 | $productPerPage = 5; 13 | $totalPage = ceil($totalResult / $productPerPage); 14 | $startPont = ($pageNo - 1) * $productPerPage; 15 | 16 | $showPro = $conn->query("SELECT * FROM `products` ORDER BY `id` DESC LIMIT $startPont, $productPerPage"); 17 | ?> 18 |
19 | 20 |

All Products

21 | num_rows > 0) { 23 | ?> 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | fetch_object()) { ?> 35 | 36 | 37 | 38 | 39 | 40 | 41 | 49 | 50 | 52 |
S.N.Product ImgProduct NameRegular PriceDescount PriceAction
name ?>rprice ?>dprice ?> 42 | 43 | 44 | 45 | 46 | 47 | 48 |
53 | 62 | 63 |
64 |
65 |
66 | 67 | -------------------------------------------------------------------------------- /hw/abdullahcrudapp-main/index.php: -------------------------------------------------------------------------------- 1 | query($read_query); 5 | 6 | 7 | ?> 8 |

php complete crud app

9 |
10 |

Crud Application

11 |

Made By Abdullah Al Ahad Bhuiyan

12 | 13 |
14 | 15 | 16 |
17 |
18 | 19 |
20 |

Total Students

21 |

num_rows ?>

22 |
23 |
24 |
25 |
26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | fetch_assoc()) { 39 | ?> 40 | 41 | 42 | 43 | 44 | 58 | 59 | 62 | 63 |
Student NameGenderPhoneAction
45 | 46 | 50 | 51 | 52 | 56 | 57 |
64 |
65 | -------------------------------------------------------------------------------- /phpproject/admin/addnewproduct.php: -------------------------------------------------------------------------------- 1 | toastr.error('Image upload fail')"; 22 | } else { 23 | if(!empty($name) && !empty($rprice) && !empty($dprice) && !empty($description)){ 24 | $insert = $conn->query("INSERT INTO `products` ( `name`, `rprice`, `dprice`, `img`, `description`) VALUES ('$name', '$rprice', '$dprice', '$destination', '$description')"); 25 | if (!$insert) { 26 | echo ""; 27 | } else { 28 | echo ""; 29 | $name = $rprice = $dprice = $description = null; 30 | } 31 | } 32 | } 33 | } 34 | ?> 35 |
36 |
37 | 40 |
41 | 42 |

Add Product

43 |
44 |
45 |
46 |
47 | 48 |
49 |
50 | 51 |
52 |
53 | 54 |
55 |
56 | 57 |
58 |
59 | 60 |
61 | 62 |
63 |
64 |
65 |
66 |
67 |
68 | 69 | -------------------------------------------------------------------------------- /b77practice.sql: -------------------------------------------------------------------------------- 1 | -- phpMyAdmin SQL Dump 2 | -- version 5.1.0 3 | -- https://www.phpmyadmin.net/ 4 | -- 5 | -- Host: 127.0.0.1 6 | -- Generation Time: Oct 22, 2022 at 09:50 AM 7 | -- Server version: 10.4.18-MariaDB 8 | -- PHP Version: 8.0.3 9 | 10 | SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; 11 | START TRANSACTION; 12 | SET time_zone = "+00:00"; 13 | 14 | 15 | /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; 16 | /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; 17 | /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; 18 | /*!40101 SET NAMES utf8mb4 */; 19 | 20 | -- 21 | -- Database: `b77practice` 22 | -- 23 | 24 | -- -------------------------------------------------------- 25 | 26 | -- 27 | -- Table structure for table `admins` 28 | -- 29 | 30 | CREATE TABLE `admins` ( 31 | `id` int(11) NOT NULL, 32 | `name` char(100) DEFAULT NULL, 33 | `email` char(100) DEFAULT NULL, 34 | `phone` int(20) DEFAULT NULL, 35 | `password` varchar(255) DEFAULT NULL, 36 | `created_at` timestamp NOT NULL DEFAULT current_timestamp() 37 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 38 | 39 | -- -------------------------------------------------------- 40 | 41 | -- 42 | -- Table structure for table `students` 43 | -- 44 | 45 | CREATE TABLE `students` ( 46 | `id` int(11) NOT NULL, 47 | `name` char(255) NOT NULL, 48 | `gender` char(10) NOT NULL DEFAULT 'Male', 49 | `phone` int(20) NOT NULL, 50 | `city` char(100) NOT NULL DEFAULT 'Dhaka', 51 | `dtls` longtext NOT NULL, 52 | `created_at` timestamp NOT NULL DEFAULT current_timestamp() 53 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 54 | 55 | -- 56 | -- Dumping data for table `students` 57 | -- 58 | 59 | INSERT INTO `students` (`id`, `name`, `gender`, `phone`, `city`, `dtls`, `created_at`) VALUES 60 | (1, 'Md Kamal Mia', 'Male', 1712121212, 'Dhaka', 'This is a demo details', '2022-10-20 06:48:41'), 61 | (2, 'Rumi Vai', 'Male', 1712121212, 'Dhaka', '', '2022-10-20 06:51:27'), 62 | (3, 'Shewly Begum', 'Female', 1712121212, 'Dhaka', 'Student ta moteo valo chilona. Nije partona, teacher er dosh dito :(', '2022-10-20 06:50:51'), 63 | (5, 'Salman Khan', 'Male', 1845165994, 'Joypurhat', 'Indian Valo', '2022-10-22 07:28:39'); 64 | 65 | -- -------------------------------------------------------- 66 | 67 | -- 68 | -- Table structure for table `teachers` 69 | -- 70 | 71 | CREATE TABLE `teachers` ( 72 | `id` int(11) NOT NULL, 73 | `name` char(100) NOT NULL, 74 | `gender` char(10) NOT NULL, 75 | `phone` int(20) NOT NULL, 76 | `img` varchar(255) NOT NULL, 77 | `city` char(100) NOT NULL, 78 | `created_at` timestamp NOT NULL DEFAULT current_timestamp() 79 | ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; 80 | 81 | -- 82 | -- Dumping data for table `teachers` 83 | -- 84 | 85 | INSERT INTO `teachers` (`id`, `name`, `gender`, `phone`, `img`, `city`, `created_at`) VALUES 86 | (1, 'Asif Abir', 'Male', 1955517560, '', 'Dhaka', '2022-10-20 06:46:38'), 87 | (2, 'Emran Sir', 'Male', 1625252525, '', 'Dhaka', '2022-10-20 06:46:38'); 88 | 89 | -- 90 | -- Indexes for dumped tables 91 | -- 92 | 93 | -- 94 | -- Indexes for table `admins` 95 | -- 96 | ALTER TABLE `admins` 97 | ADD PRIMARY KEY (`id`); 98 | 99 | -- 100 | -- Indexes for table `students` 101 | -- 102 | ALTER TABLE `students` 103 | ADD PRIMARY KEY (`id`); 104 | 105 | -- 106 | -- Indexes for table `teachers` 107 | -- 108 | ALTER TABLE `teachers` 109 | ADD PRIMARY KEY (`id`); 110 | 111 | -- 112 | -- AUTO_INCREMENT for dumped tables 113 | -- 114 | 115 | -- 116 | -- AUTO_INCREMENT for table `admins` 117 | -- 118 | ALTER TABLE `admins` 119 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2; 120 | 121 | -- 122 | -- AUTO_INCREMENT for table `students` 123 | -- 124 | ALTER TABLE `students` 125 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=6; 126 | 127 | -- 128 | -- AUTO_INCREMENT for table `teachers` 129 | -- 130 | ALTER TABLE `teachers` 131 | MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3; 132 | COMMIT; 133 | 134 | /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; 135 | /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; 136 | /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; 137 | -------------------------------------------------------------------------------- /phpproject/profileSettings.php: -------------------------------------------------------------------------------- 1 | 6 |
7 |
8 |
9 |
10 | 11 | 21 | 22 |
23 |
24 |
25 | 26 |

Update Previous Data

27 |
28 |
29 | 30 |
31 | 32 |
33 |
34 |
35 | 36 |
37 | 38 |
39 |
40 |
41 |
42 |
43 | 44 |
45 |
46 | 47 |
48 |
49 | 50 |
51 |
52 |
53 | 54 |
55 |
56 |
57 | 58 |
59 |
60 |
61 |
62 |
63 | 70 | -------------------------------------------------------------------------------- /phpproject/navbar.php: -------------------------------------------------------------------------------- 1 | 27 | -------------------------------------------------------------------------------- /phpproject/Contact Form #8_files/s.js.download: -------------------------------------------------------------------------------- 1 | (function(w,d){zaraz.debug=(l="")=>{document.cookie=`zarazDebug=${l}; path=/`;location.reload()};window.zaraz._al=function(e,f,g){w.zaraz.listeners.push({item:e,type:f,callback:g});e.addEventListener(f,g)};zaraz.preview=(h="")=>{document.cookie=`zarazPreview=${h}; path=/`;location.reload()};zaraz.i=function(Q){const R=d.createElement("div");R.innerHTML=unescape(Q);const S=R.querySelectorAll("script");for(let T=0;T{if(a){a.e&&a.e.forEach((b=>{try{new Function(b)()}catch(c){console.error(`Error executing script: ${b}\n`,c)}}));if(a.f)for(const d of a.f)fetch(d[0],d[1])}};zaraz.pageVariables={};zaraz.track=function(ch,ci,cj){const ck={name:ch,data:{}};for(const cl of[localStorage,sessionStorage])Object.keys(cl||{}).filter((cn=>cn.startsWith("_zaraz_"))).forEach((cm=>{try{ck.data[cm.slice(7)]=JSON.parse(cl.getItem(cm))}catch{ck.data[cm.slice(7)]=cl.getItem(cm)}}));Object.keys(zaraz.pageVariables).forEach((co=>ck.data[co]=JSON.parse(zaraz.pageVariables[co]))); 2 | // 3 | ck.data={...ck.data,...ci};ck.zarazData=zarazData;fetch("/cdn-cgi/zaraz/t",{credentials:"include",keepalive:!0,method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(ck)}).catch((()=>{console.warn("Large event payload sent to Cloudflare Zaraz, cannot assure deliverability.");return fetch("/cdn-cgi/zaraz/t",{credentials:"include",method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(ck)})})).then((function(cq){zarazData._let=(new Date).getTime();return 200===cq.status&&cq.json()})).then((function(cp){zaraz._p(cp);"function"==typeof cj&&cj()}))};zaraz.set=function(cr,cs,ct){cs=JSON.stringify(cs);prefixedKey="_zaraz_"+cr;sessionStorage.removeItem(prefixedKey);localStorage.removeItem(prefixedKey);delete zaraz.pageVariables[cr];ct&&"session"==ct.scope?sessionStorage.setItem(prefixedKey,cs):ct&&"page"==ct.scope?zaraz.pageVariables[cr]=cs:localStorage.setItem(prefixedKey,cs);zaraz.__watchVar={key:cr,value:cs}};for(const{m:cu,a:cv}of zarazData.q.filter((({m:cw})=>["debug","set"].includes(cw))))zaraz[cu](...cv);for(const{m:cx,a:cy}of zaraz.q)zaraz[cx](...cy);delete zaraz.q;delete zarazData.q;zaraz.fulfilTrigger=function(eu,ev,ew,ex){zaraz.__zarazTriggerMap||(zaraz.__zarazTriggerMap={});zaraz.__zarazTriggerMap[eu]||(zaraz.__zarazTriggerMap[eu]="");zaraz.__zarazTriggerMap[eu]+="*"+ev+"*";zaraz.track("__zarazEmpty",{...ew,__zarazClientTriggers:zaraz.__zarazTriggerMap[eu]},ex)};window.dataLayer=w.dataLayer||[];zaraz._processDataLayer=m=>{if(m.event){if(zarazData.dataLayerIgnore&&zarazData.dataLayerIgnore.includes(m.event))return;let n={};for(let o of dataLayer.slice(0,dataLayer.indexOf(m)+1))n={...n,...o};delete n.event;m.event.startsWith("gtm.")||zaraz.track(m.event,n)}};Object.defineProperty(w.dataLayer,"push",{configurable:!0,enumerable:!1,writable:!0,value:function(...p){let q=Array.prototype.push.apply(this,p);zaraz._processDataLayer(p[0]);return q}});dataLayer.forEach((r=>zaraz._processDataLayer(r)));zaraz._cts=()=>{zaraz._timeouts?.forEach((O=>clearTimeout(O)));zaraz._timeouts=[]};zaraz._rl=function(){w.zaraz.listeners?.forEach((P=>P.item.removeEventListener(P.type,P.callback)));window.zaraz.listeners=[]};history.pushState=function(){try{zaraz._rl();zaraz._cts&&zaraz._cts()}finally{History.prototype.pushState.apply(history,arguments);setTimeout((()=>{zarazData.l=d.location.href;zarazData.t=d.title;zaraz.pageVariables={};zaraz.track("__zarazSPA")}),100)}};history.replaceState=function(){try{zaraz._rl();zaraz._cts&&zaraz._cts()}finally{History.prototype.replaceState.apply(history,arguments);setTimeout((()=>{zarazData.l=d.location.href;zarazData.t=d.title;zaraz.pageVariables={};zaraz.track("__zarazSPA")}),100)}};zaraz._p({"e":["(function(w,d){w.zarazData.executed.push(\"Pageview\");})(window,document)"]})})(window,document); -------------------------------------------------------------------------------- /phpproject/account.php: -------------------------------------------------------------------------------- 1 | location.href='./?success=true'" : null; 5 | ?> 6 |
7 |
8 |
9 | 10 |

Sign-in

11 |
12 |
13 | 14 |
15 | 16 |
17 |
18 |
19 | 20 |
21 | 22 |
23 |
24 | 25 |
26 |
27 |
28 | 29 |

Sign-up

30 |
31 |
32 | 33 |
34 | 35 |
36 |
37 |
38 | 39 |
40 | 41 |
42 |
43 |
44 |
45 |
46 | 47 |
48 |
49 | 50 |
51 |
52 | 53 |
54 |
55 |
56 | 57 |
58 |
59 |
60 | 61 |
62 | 63 |
64 |
65 |
66 | 67 |
68 | 69 |
70 |
71 | 72 |
73 |
74 |
75 |
76 | -------------------------------------------------------------------------------- /hw/abdullahcrudapp-main/add.php: -------------------------------------------------------------------------------- 1 | query($insert_query); 21 | if ($insert) { 22 | echo ""; 23 | } 24 | } 25 | } 26 | } 27 | ?> 28 |

php complete crud app

29 |
30 |

Add New Student

31 | Complete the form below to add a new student 32 | 33 |
34 |
35 |
36 |
37 | 38 | 39 |
40 | Please choose a first name. 41 |
42 |
43 |
44 |
45 |
46 | 47 | 48 |
49 | Please choose a last name 50 |
51 |
52 |
53 |
54 |
55 |
56 |
57 | 58 |
59 | 62 | 63 |
64 |
65 |
66 | Please choose a phone number 67 |
68 | 69 |
70 |
71 |
72 | 73 |
74 |
75 | 76 | 79 |
80 |
81 | 82 | 85 |
86 |
87 |
88 |
89 |
90 |
91 | 92 |
93 |
94 |
95 | 96 | 97 | 98 | -------------------------------------------------------------------------------- /phpproject/footer.php: -------------------------------------------------------------------------------- 1 | 2 | 122 | 123 | 124 | 125 | 126 | -------------------------------------------------------------------------------- /hw/abdullahcrudapp-main/update.php: -------------------------------------------------------------------------------- 1 | query($select_query); 11 | $data = $select->fetch_assoc(); 12 | } 13 | } 14 | ?> 15 |

php complete crud app

16 |
17 |

Update Student Details

18 | Complete the form below to update student details 19 | 20 |
21 | 22 |
23 |
24 |
25 | 26 | 27 |
28 | Please choose a first name. 29 |
30 |
31 |
32 |
33 |
34 | 35 | 36 |
37 | Please choose a last name 38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 | 46 |
47 | 50 | 51 |
52 |
53 | Please choose a phone number 54 |
55 |
56 | 57 |
58 |
59 |
60 | 61 |
62 |
63 | > 64 | 67 |
68 |
69 | > 70 | 73 |
74 |
75 |
76 |
77 |
78 | 79 |
80 |
81 | 82 | 83 | 84 | 85 | query($update_query); 95 | if ($update) { 96 | echo ""; 97 | } 98 | } 99 | } 100 | 101 | include_once("footer.php") ?> -------------------------------------------------------------------------------- /phpproject/homeProducts.php: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 | All Products 5 |
6 |
7 |
8 |
9 | 10 |
11 |
12 | 13 | 14 |
15 |
16 |
17 |
18 | Asus A12420 19 | (Asus) 20 |
21 |
    22 |
  • Core i-5
  • 23 |
  • 8GB Ram
  • 24 |
  • 250GB SSD
  • 25 |
26 |
27 |
28 |
29 |
30 |
31 | 32 |
33 |
34 | 35 | 36 |
37 |
38 |
39 |
40 | Asus A12420 41 | (Asus) 42 |
43 |
    44 |
  • Core i-5
  • 45 |
  • 8GB Ram
  • 46 |
  • 250GB SSD
  • 47 |
48 |
49 |
50 |
51 |
52 |
53 | 54 |
55 |
56 | 57 | 58 |
59 |
60 |
61 |
62 | Asus A12420 63 | (Asus) 64 |
65 |
    66 |
  • Core i-5
  • 67 |
  • 8GB Ram
  • 68 |
  • 250GB SSD
  • 69 |
70 |
71 |
72 |
73 |
74 |
75 | 76 |
77 |
78 | 79 | 80 |
81 |
82 |
83 |
84 | Asus A12420 85 | (Asus) 86 |
87 |
    88 |
  • Core i-5
  • 89 |
  • 8GB Ram
  • 90 |
  • 250GB SSD
  • 91 |
92 |
93 |
94 |
95 | 104 |
105 |
106 |
-------------------------------------------------------------------------------- /phpproject/Contact Form #8_files/css: -------------------------------------------------------------------------------- 1 | /* cyrillic-ext */ 2 | @font-face { 3 | font-family: 'Roboto'; 4 | font-style: normal; 5 | font-weight: 400; 6 | font-display: swap; 7 | src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu72xKOzY.woff2) format('woff2'); 8 | unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; 9 | } 10 | /* cyrillic */ 11 | @font-face { 12 | font-family: 'Roboto'; 13 | font-style: normal; 14 | font-weight: 400; 15 | font-display: swap; 16 | src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu5mxKOzY.woff2) format('woff2'); 17 | unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; 18 | } 19 | /* greek-ext */ 20 | @font-face { 21 | font-family: 'Roboto'; 22 | font-style: normal; 23 | font-weight: 400; 24 | font-display: swap; 25 | src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7mxKOzY.woff2) format('woff2'); 26 | unicode-range: U+1F00-1FFF; 27 | } 28 | /* greek */ 29 | @font-face { 30 | font-family: 'Roboto'; 31 | font-style: normal; 32 | font-weight: 400; 33 | font-display: swap; 34 | src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4WxKOzY.woff2) format('woff2'); 35 | unicode-range: U+0370-03FF; 36 | } 37 | /* vietnamese */ 38 | @font-face { 39 | font-family: 'Roboto'; 40 | font-style: normal; 41 | font-weight: 400; 42 | font-display: swap; 43 | src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7WxKOzY.woff2) format('woff2'); 44 | unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; 45 | } 46 | /* latin-ext */ 47 | @font-face { 48 | font-family: 'Roboto'; 49 | font-style: normal; 50 | font-weight: 400; 51 | font-display: swap; 52 | src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu7GxKOzY.woff2) format('woff2'); 53 | unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; 54 | } 55 | /* latin */ 56 | @font-face { 57 | font-family: 'Roboto'; 58 | font-style: normal; 59 | font-weight: 400; 60 | font-display: swap; 61 | src: url(https://fonts.gstatic.com/s/roboto/v30/KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2'); 62 | unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; 63 | } 64 | /* cyrillic-ext */ 65 | @font-face { 66 | font-family: 'Roboto'; 67 | font-style: normal; 68 | font-weight: 700; 69 | font-display: swap; 70 | src: url(https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfCRc4EsA.woff2) format('woff2'); 71 | unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; 72 | } 73 | /* cyrillic */ 74 | @font-face { 75 | font-family: 'Roboto'; 76 | font-style: normal; 77 | font-weight: 700; 78 | font-display: swap; 79 | src: url(https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfABc4EsA.woff2) format('woff2'); 80 | unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; 81 | } 82 | /* greek-ext */ 83 | @font-face { 84 | font-family: 'Roboto'; 85 | font-style: normal; 86 | font-weight: 700; 87 | font-display: swap; 88 | src: url(https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfCBc4EsA.woff2) format('woff2'); 89 | unicode-range: U+1F00-1FFF; 90 | } 91 | /* greek */ 92 | @font-face { 93 | font-family: 'Roboto'; 94 | font-style: normal; 95 | font-weight: 700; 96 | font-display: swap; 97 | src: url(https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfBxc4EsA.woff2) format('woff2'); 98 | unicode-range: U+0370-03FF; 99 | } 100 | /* vietnamese */ 101 | @font-face { 102 | font-family: 'Roboto'; 103 | font-style: normal; 104 | font-weight: 700; 105 | font-display: swap; 106 | src: url(https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfCxc4EsA.woff2) format('woff2'); 107 | unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; 108 | } 109 | /* latin-ext */ 110 | @font-face { 111 | font-family: 'Roboto'; 112 | font-style: normal; 113 | font-weight: 700; 114 | font-display: swap; 115 | src: url(https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfChc4EsA.woff2) format('woff2'); 116 | unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; 117 | } 118 | /* latin */ 119 | @font-face { 120 | font-family: 'Roboto'; 121 | font-style: normal; 122 | font-weight: 700; 123 | font-display: swap; 124 | src: url(https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmWUlfBBc4.woff2) format('woff2'); 125 | unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; 126 | } 127 | /* cyrillic-ext */ 128 | @font-face { 129 | font-family: 'Roboto'; 130 | font-style: normal; 131 | font-weight: 900; 132 | font-display: swap; 133 | src: url(https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmYUtfCRc4EsA.woff2) format('woff2'); 134 | unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; 135 | } 136 | /* cyrillic */ 137 | @font-face { 138 | font-family: 'Roboto'; 139 | font-style: normal; 140 | font-weight: 900; 141 | font-display: swap; 142 | src: url(https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmYUtfABc4EsA.woff2) format('woff2'); 143 | unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; 144 | } 145 | /* greek-ext */ 146 | @font-face { 147 | font-family: 'Roboto'; 148 | font-style: normal; 149 | font-weight: 900; 150 | font-display: swap; 151 | src: url(https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmYUtfCBc4EsA.woff2) format('woff2'); 152 | unicode-range: U+1F00-1FFF; 153 | } 154 | /* greek */ 155 | @font-face { 156 | font-family: 'Roboto'; 157 | font-style: normal; 158 | font-weight: 900; 159 | font-display: swap; 160 | src: url(https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmYUtfBxc4EsA.woff2) format('woff2'); 161 | unicode-range: U+0370-03FF; 162 | } 163 | /* vietnamese */ 164 | @font-face { 165 | font-family: 'Roboto'; 166 | font-style: normal; 167 | font-weight: 900; 168 | font-display: swap; 169 | src: url(https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmYUtfCxc4EsA.woff2) format('woff2'); 170 | unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB; 171 | } 172 | /* latin-ext */ 173 | @font-face { 174 | font-family: 'Roboto'; 175 | font-style: normal; 176 | font-weight: 900; 177 | font-display: swap; 178 | src: url(https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmYUtfChc4EsA.woff2) format('woff2'); 179 | unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; 180 | } 181 | /* latin */ 182 | @font-face { 183 | font-family: 'Roboto'; 184 | font-style: normal; 185 | font-weight: 900; 186 | font-display: swap; 187 | src: url(https://fonts.gstatic.com/s/roboto/v30/KFOlCnqEu92Fr1MmYUtfBBc4.woff2) format('woff2'); 188 | unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; 189 | } 190 | -------------------------------------------------------------------------------- /hw/Form-Validation-with-PHP-main/form validation.php: -------------------------------------------------------------------------------- 1 | Enter your name."; 18 | }elseif(!preg_match("/^[a-zA-Z ]*$/", $name)){ 19 | $errorName = "Invalid Username."; 20 | }else{ 21 | $correctName = $name; 22 | } 23 | 24 | // email 25 | if(empty($email)){ 26 | $errorEmail = "Enter your email address."; 27 | }elseif(!filter_var($email,FILTER_VALIDATE_EMAIL)){ 28 | $errorEmail = "Invalid email address."; 29 | }else{ 30 | $correctEmail = $email; 31 | } 32 | 33 | // password 34 | if(empty($password)){ 35 | $errorPassword = "Enter email password."; 36 | }elseif(!preg_match('/^(?=.*\d)(?=.*[a-z]).{8,}$/',$password)){ 37 | $errorPassword = "Enter a strong password."; 38 | }else{ 39 | $correctPassword = $password; 40 | } 41 | 42 | // city 43 | if(empty($city)){ 44 | $errorCity = "Select your town."; 45 | }else{ 46 | $correctCity = $city; 47 | } 48 | 49 | // gender 50 | if(empty($_POST['gender'])){ 51 | $errorGender = "Checked your gender please."; 52 | }else { 53 | $correctGender = $_POST['gender']; 54 | } 55 | 56 | // date_of_birth 57 | if(empty($date_of_birth)){ 58 | $errordate_of_birth = "Enter your birthday."; 59 | }else{ 60 | $correctdate_of_birth = $date_of_birth; 61 | } 62 | 63 | 64 | if(!empty($correctName) && !empty($correctEmail) && !empty($correctPassword) && !empty($correctGender) && !empty($correctCity) && !empty($correctdate_of_birth)){ 65 | $insert_query = "INSERT INTO `user_data`( `name`, `email`, `password`, `gender`,`city`,`date_of_birth`) VALUES ('$name','$email','$password' ,'$_POST[gender]','$city','$date_of_birth')"; 66 | $insert = $connet->query($insert_query); 67 | 68 | if($insert){ 69 | echo ""; 70 | } 71 | } 72 | } 73 | 74 | ?> 75 | 76 |
77 |
78 |
79 |
80 |

Register

81 |
82 | 83 |
84 | 85 | 86 |
87 | " 89 | value=""> 90 | 91 |
92 | 93 | 94 | 95 |
96 | " 98 | value=""> 99 | 100 |
101 | 102 | 103 |
104 | " 106 | value=""> 107 | 108 |
109 | 110 | 111 |
112 | 113 | 114 | 115 | 122 | 123 | 124 | 125 | 130 | 131 |
Gender : > 117 | 118 | > 120 | 121 |
126 | > 128 | 129 |
132 | 133 |
134 | 135 | 136 |
137 |
138 | Your Town : 139 | 157 | 158 |
159 | 160 | 161 |
162 | 163 | " 165 | value=""> 166 | 167 |
168 |
169 | 170 | 171 |
172 | 173 |
174 | 175 |
176 |
177 |
178 |
179 | 180 | 181 | 182 | -------------------------------------------------------------------------------- /hw/Form-Validation-with-PHP-main/edit.php: -------------------------------------------------------------------------------- 1 | Enter your name."; 16 | }elseif(!preg_match("/^[a-zA-Z ]*$/", $name)){ 17 | $errorName = "Invalid Username."; 18 | }else{ 19 | $correctName = $name; 20 | } 21 | 22 | // email 23 | if(empty($email)){ 24 | $errorEmail = "Enter your email address."; 25 | }elseif(!filter_var($email,FILTER_VALIDATE_EMAIL)){ 26 | $errorEmail = "Invalid email address."; 27 | }else{ 28 | $correctEmail = $email; 29 | } 30 | 31 | // password 32 | if(empty($password)){ 33 | $errorPassword = "Enter email password."; 34 | }elseif(!preg_match('/^(?=.*\d)(?=.*[a-z]).{8,}$/',$password)){ 35 | $errorPassword = "Enter a strong password."; 36 | }else{ 37 | $correctPassword = $password; 38 | } 39 | 40 | // gender 41 | if(empty($gender)){ 42 | $errorGender = "Checked your gender please."; 43 | }else { 44 | $correctGender = $_POST['gender']; 45 | } 46 | 47 | // city 48 | if(empty($city)){ 49 | $errorCity = "Select your town."; 50 | }else{ 51 | $correctCity = $city; 52 | } 53 | 54 | // date_of_birth 55 | if(empty($date_of_birth)){ 56 | $errordate_of_birth = "Enter your birthday."; 57 | }else{ 58 | $correctdate_of_birth = $date_of_birth; 59 | } 60 | 61 | 62 | if(!empty($correctName) && !empty($correctEmail) && !empty($correctPassword) && !empty($correctGender) && !empty($correctCity) && !empty($correctdate_of_birth)){ 63 | $update_query = "UPDATE `user_data` SET `name`='$name',`email`='$email',`password`='$password',`date_of_birth`='$date_of_birth',`city`='$city',`gender`='$gender' WHERE `id` = $id"; 64 | $update = $connet->query($update_query); 65 | 66 | if($update){ 67 | echo ""; 68 | } 69 | } 70 | } 71 | 72 | 73 | 74 | if (isset($_GET['id'])){ 75 | $id = $_GET['id']; 76 | $get_pre_data_query = "SELECT * FROM `user_data` WHERE `id`= $id"; 77 | $get_pre_data= $connet->query($get_pre_data_query); 78 | 79 | if($get_pre_data->num_rows != 1){ 80 | echo "No data found."; 81 | }else{ 82 | $pre_data = $get_pre_data->fetch_assoc(); 83 | ?> 84 | 85 | 86 |
87 |
88 |
89 |
90 |
91 | Update the data of register no .
92 |
93 | 94 |
95 | 96 |
97 | 100 | 101 | " 102 | value=" "> 103 | 104 |
105 | 106 | 107 |
108 | 111 | " 113 | value=""> 114 | 115 |
116 | 117 | 118 |
119 | 122 | " 124 | value=""> 125 | 126 |
127 | 128 | 129 |
130 | 131 | 132 | 135 | 145 | 146 | 147 | 148 | 153 | 154 |
133 | Gender : 134 | 136 | 138 | > 139 | 140 | 142 | > 143 | 144 |
150 | > 151 | 152 |
155 | 156 | 157 |
158 |
159 | 160 | 161 |
162 |
163 | Your Town : 164 | 187 | 188 |
189 | 190 | 191 |
192 | 193 | " 195 | value=""> 196 | 197 |
198 |
199 | 200 | 201 | 202 |
203 | 204 | 206 | 207 |
208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 |
217 |
218 |
219 |
220 | 221 | 222 | 223 | -------------------------------------------------------------------------------- /phpproject/classes/userAccount.php: -------------------------------------------------------------------------------- 1 | real_escape_string($uname); 47 | } 48 | 49 | if (empty($uemail)) { 50 | userAccount::$err['uemail'] = "Please wrtite your email address"; 51 | } elseif (!filter_var($uemail, FILTER_VALIDATE_EMAIL)) { 52 | userAccount::$err['uemail'] = "Invalid email format"; 53 | } else { 54 | $check_pre_email_query = "SELECT * FROM `users` WHERE `email` = '$uemail'"; 55 | $check_pre_email = db::$conn->query($check_pre_email_query); 56 | if ($check_pre_email->num_rows > 0) { 57 | userAccount::$err['uemail'] = "Email address already exicts"; 58 | } else { 59 | $crrUemail = db::$conn->real_escape_string($uemail); 60 | } 61 | } 62 | 63 | if (empty($gndr)) { 64 | userAccount::$err['gndr'] = "Please select your gnder"; 65 | } elseif (!in_array($gndr, userAccount::$genderList)) { 66 | userAccount::$err['gndr'] = "Paknami bondho korun"; 67 | } else { 68 | $crrGndr = db::$conn->real_escape_string($gndr); 69 | } 70 | 71 | if (empty($pass)) { 72 | userAccount::$err['pass'] = "Please write your password"; 73 | } elseif (!preg_match('/(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/', $pass)) { 74 | userAccount::$err['pass'] = "Please provide a strong password"; 75 | } else { 76 | $crrPass = db::$conn->real_escape_string($pass); 77 | } 78 | 79 | if (empty($cpass)) { 80 | userAccount::$err['cpass'] = "Please write the confirm password"; 81 | } elseif ($pass !== $cpass) { 82 | userAccount::$err['cpass'] = "Password didn't match"; 83 | } else { 84 | $crrCpass = db::$conn->real_escape_string($cpass); 85 | } 86 | 87 | if (isset($crrUname) && isset($crrUemail) && isset($crrGndr) && isset($crrPass) && isset($crrCpass)) { 88 | $convertedPass = md5($crrCpass); 89 | $inser_query = "INSERT INTO `users` (`name`, `email`, `gender`, `password`) VALUES ('$crrUname', '$crrUemail', '$crrGndr', '$convertedPass')"; 90 | $insert = db::$conn->query($inser_query); 91 | if (!$insert) { 92 | userAccount::$err['insert'] = ''; 93 | } else { 94 | /* userAccount::$success['insert'] = ''; */ 95 | $_SESSION['user'] = ["name" => $crrUname, "email" => $crrUemail, "gender" => $crrGndr]; 96 | return true; 97 | } 98 | } 99 | } 100 | 101 | if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['signin123'])) { 102 | userAccount::$suemail = $suemail = userAccount::safuda($_POST['suemail']); 103 | userAccount::$supass = $supass = userAccount::safuda($_POST['supass']); 104 | 105 | if (empty($suemail)) { 106 | userAccount::$err['suemail'] = "Please wrtite your email address"; 107 | } else { 108 | $crrSuemail = db::$conn->real_escape_string($suemail); 109 | } 110 | 111 | if (empty($supass)) { 112 | userAccount::$err['supass'] = "Please write your password"; 113 | } else { 114 | $crrSupass = db::$conn->real_escape_string($supass); 115 | } 116 | 117 | if (!empty($crrSuemail) && !empty($crrSupass)) { 118 | $crrSupass = md5($crrSupass); 119 | $check_user_query = "SELECT * FROM `users` WHERE `email` = '$crrSuemail' AND `password` = '$crrSupass'"; 120 | $check_user = db::$conn->query($check_user_query); 121 | if ($check_user->num_rows != 1) { 122 | userAccount::$err['sinsert'] = ''; 123 | } else { 124 | $uinfo = $check_user->fetch_object(); 125 | $crrUname = $uinfo->name; 126 | $crrGndr = $uinfo->gender; 127 | $img = $uinfo->img; 128 | $role = $uinfo->role; 129 | $_SESSION['user'] = ["name" => $crrUname, "email" => $crrSuemail, "gender" => $crrGndr, "img" => $img, "role" => $role]; 130 | return true; 131 | } 132 | } 133 | } 134 | return false; 135 | } 136 | 137 | public static function profileUpdate(): string 138 | { 139 | if ($_SERVER["REQUEST_METHOD"] === 'POST' && isset($_POST['email'])) { 140 | $userEmail = $_POST["email"]; 141 | $userFileName = $_FILES["ppimg"]["name"]; 142 | $tempName = $_FILES["ppimg"]["tmp_name"]; 143 | 144 | if (empty($tempName)) { 145 | userAccount::$errImg = "Please upload a file"; 146 | } elseif (!getimagesize($tempName)) { 147 | userAccount::$errImg = "Invalid image format."; 148 | } else { 149 | $selectPreUserDataQuery = "SELECT * FROM `users` WHERE `email` = '$userEmail'"; 150 | $selectPreUserData = db::$conn->query($selectPreUserDataQuery); 151 | if ($selectPreUserData->num_rows != 1) { 152 | userAccount::$errImg = "User data not found!"; 153 | } else { 154 | $selectPreUser = $selectPreUserData->fetch_object(); 155 | if ($selectPreUser->img != null) { 156 | unlink($selectPreUser->img); 157 | } 158 | $userId = $selectPreUser->id; 159 | $x = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; 160 | $ext = pathinfo($userFileName, PATHINFO_EXTENSION); 161 | (!is_dir("./images/users/$userId")) ? mkdir("./images/users/$userId") : null; 162 | $uniqueName = uniqid() . rand(100000, 999999) . substr(str_shuffle($x), 0, 6) . date("hismdYDfla") . "." . $ext; 163 | $destination = "./images/users/$userId/$uniqueName"; 164 | $move = move_uploaded_file($tempName, $destination); 165 | if (!$move) { 166 | userAccount::$errImg = "Image upload failed"; 167 | } else { 168 | $imgUpdateQuery = "UPDATE `users` SET `img` = '$destination' WHERE `email` = '$userEmail'"; 169 | $imgUpdate = db::$conn->query($imgUpdateQuery); 170 | if (!$imgUpdate) { 171 | userAccount::$errImg = "Something went wrong!"; 172 | } else { 173 | $_SESSION['user']['img'] = $destination; 174 | userAccount::$successImgUpload = "Image upload successfully"; 175 | } 176 | } 177 | } 178 | } 179 | } 180 | return ""; 181 | } 182 | 183 | public static function updateUser(): string 184 | { 185 | if (isset($_POST['upuser123'])) { 186 | userAccount::$uname = $uname = userAccount::safuda($_POST['uname']); 187 | userAccount::$uemail = $uemail = userAccount::safuda($_POST['uemail']); 188 | userAccount::$gndr = $gndr = userAccount::safuda($_POST['gndr'] ?? null); 189 | 190 | if (empty($uname)) { 191 | userAccount::$err['uname'] = "Please wrtite your name"; 192 | } elseif (!preg_match("/[A-Za-z. ]/", $uname)) { 193 | userAccount::$err['uname'] = "Invalid name format"; 194 | } else { 195 | $crrUname = db::$conn->real_escape_string($uname); 196 | } 197 | 198 | if (empty($uemail)) { 199 | userAccount::$err['uemail'] = "Please wrtite your email address"; 200 | } elseif (!filter_var($uemail, FILTER_VALIDATE_EMAIL)) { 201 | userAccount::$err['uemail'] = "Invalid email format"; 202 | } else { 203 | if ($_SESSION['user']['email'] != $uemail) { 204 | $check_pre_email_query = "SELECT * FROM `users` WHERE `email` = '$uemail'"; 205 | $check_pre_email = db::$conn->query($check_pre_email_query); 206 | if ($check_pre_email->num_rows > 0) { 207 | userAccount::$err['uemail'] = "Email address already exicts"; 208 | } else { 209 | $crrUemail = db::$conn->real_escape_string($uemail); 210 | } 211 | } else { 212 | $crrUemail = db::$conn->real_escape_string($uemail); 213 | } 214 | } 215 | 216 | if (empty($gndr)) { 217 | userAccount::$err['gndr'] = "Please select your gnder"; 218 | } elseif (!in_array($gndr, userAccount::$genderList)) { 219 | userAccount::$err['gndr'] = "Paknami bondho korun"; 220 | } else { 221 | $crrGndr = db::$conn->real_escape_string($gndr); 222 | } 223 | 224 | if (isset($crrUname) && isset($crrUemail) && isset($crrGndr)) { 225 | $uemail = $_SESSION['user']['email']; 226 | $updateUserQuery = "UPDATE `users` SET `name` = '$crrUname', `email` = '$crrUemail', `gender` = '$crrGndr' WHERE `email` = '$uemail'"; 227 | $updateUser = db::$conn->query($updateUserQuery); 228 | if (!$updateUser) { 229 | userAccount::$err['userUpdate'] = ''; 230 | } else { 231 | $userImg = $_SESSION['user']['img']; 232 | userAccount::$err['userUpdate'] = ''; 233 | $_SESSION['user'] = ["name" => $crrUname, "email" => $crrUemail, "gender" => $crrGndr, "img" => $userImg]; 234 | } 235 | } 236 | } 237 | return ""; 238 | } 239 | 240 | public static function changePass(): string 241 | { 242 | if (isset($_POST['cp123'])) { 243 | userAccount::$opass = $opass = $_POST["opass"]; 244 | userAccount::$pass = $pass = $_POST["pass"]; 245 | userAccount::$cpass = $cpass = $_POST["cpass"]; 246 | 247 | if (empty($pass)) { 248 | userAccount::$err['pass'] = "Please write your password"; 249 | } elseif (!preg_match('/(?=^.{8,}$)((?=.*\d)|(?=.*\W+))(?![.\n])(?=.*[A-Z])(?=.*[a-z]).*$/', $pass)) { 250 | userAccount::$err['pass'] = "Please provide a strong password"; 251 | } else { 252 | $crrPass = db::$conn->real_escape_string($pass); 253 | } 254 | 255 | if (empty($opass)) { 256 | userAccount::$err['opass'] = "Please write the old password"; 257 | } else { 258 | $uemail = $_SESSION['user']['email']; 259 | $checkOpassQuery = "SELECT * FROM `users` WHERE `email` = '$uemail'"; 260 | $checkOpass = db::$conn->query($checkOpassQuery); 261 | $checkOpassData = $checkOpass->fetch_object(); 262 | $realOpass = $checkOpassData->password; 263 | if (md5($opass) != $realOpass) { 264 | userAccount::$err['opass'] = "Old password didnot matched!"; 265 | } elseif ($realOpass == md5($pass)) { 266 | userAccount::$err['pass'] = "Please provide a new password"; 267 | } else { 268 | $crrOpass = db::$conn->real_escape_string($opass); 269 | } 270 | } 271 | 272 | if (empty($cpass)) { 273 | userAccount::$err['cpass'] = "Please write the confirm password"; 274 | } elseif ($pass !== $cpass) { 275 | userAccount::$err['cpass'] = "Password didn't match"; 276 | } else { 277 | $crrCpass = db::$conn->real_escape_string($cpass); 278 | } 279 | 280 | if (isset($crrPass) && isset($crrOpass) && isset($crrCpass)) { 281 | $convertedPass = md5($crrCpass); 282 | $upPassQuery = "UPDATE `users` SET `password` = '$convertedPass' WHERE `email` = '$uemail'"; 283 | $upPass = db::$conn->query($upPassQuery); 284 | if ($upPass) { 285 | userAccount::$opass = userAccount::$pass = userAccount::$cpass = ""; 286 | echo ""; 287 | } else { 288 | echo ""; 289 | } 290 | } 291 | } 292 | return ""; 293 | } 294 | } 295 | -------------------------------------------------------------------------------- /phpproject/Contact Form #8_files/vaafb692b2aea4879b33c060e79fe94621666317369993: -------------------------------------------------------------------------------- 1 | !function(e){function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}var t={};n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=0)}([function(e,n,t){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var n,t=1,r=arguments.length;t0&&(n+=r)}return n}function n(){var e=navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);if(!e)return!1;var n=parseInt(e[2],10),t=navigator.connection;return n>=55&&!!t&&"cellular"===t.type&&t.downlinkMax<=.115}function t(e){return null==e?void 0:Math.round(1e3*e)/1e3}function u(e,n){for(var t in e){var r=e[t];void 0!==n&&("number"==typeof r||"string"==typeof r?n[t]=r:Array.isArray(r)&&(n[t]=JSON.parse(JSON.stringify(r))))}}!function(){function s(){return g.timeOrigin}function f(){var e=document.referrer||"",n=w[w.length-1];return x&&B&&n?n.url:e}function d(){return navigator.webdriver}function l(e){if("function"==typeof g.getEntriesByType){var n=g.getEntriesByType("navigation"),t={};e.timingsV2={},n&&n[0]&&(n[0].serverTiming&&(t.serverTiming=n[0].serverTiming),n[0].nextHopProtocol&&(t.nextHopProtocol=n[0].nextHopProtocol)),u(t,e.timingsV2)}}function p(){var n=g.getEntriesByType("navigation")[0],t="";try{t="function"==typeof g.getEntriesByType?new URL(null===n||void 0===n?void 0:n.name).pathname:R?new URL(R).pathname:window.location.pathname}catch(e){}var r={referrer:document.referrer||"",eventType:i.EventType.WebVitalsV2,si:T?T.si:0,versions:{js:"2022.10.1"},pageloadId:h,location:e(),landingPath:t,startTime:s(),wd:d()};return T&&(T.version&&(r.versions.fl=T.version),T.icTag&&(r.icTag=T.icTag),r.siteToken=T.token),A&&["lcp","fid","cls","fcp","ttfb","inp"].forEach(function(e){r[e]={value:-1,path:void 0},A[e]&&void 0!==A[e].value&&(r[e]=A[e])}),l(r),r}function v(r){var o,a=g.timing,c=g.memory,p=r||e(),v={memory:{},timings:{},resources:[],tempResources:[],referrer:f(),documentWriteIntervention:!1,errorCount:0,eventType:i.EventType.Load,firstPaint:0,firstContentfulPaint:0,si:T?T.si:0,startTime:s(),versions:{fl:T?T.version:"",js:"2022.10.1",timings:1},pageloadId:h,location:p,wd:d()};if(void 0==P){if("function"==typeof g.getEntriesByType){var y=g.getEntriesByType("navigation");y&&Array.isArray(y)&&y.length>0&&(v.timingsV2={},v.versions.timings=2,delete v.timings,u(y[0],v.timingsV2))}1===v.versions.timings&&u(a,v.timings),u(c,v.memory)}else l(v);if(v.documentWriteIntervention=n(),v.firstPaint=m("first-paint"),v.firstContentfulPaint=m("first-contentful-paint"),v.errorCount=window.__cfErrCount||0,T&&(T.icTag&&(v.icTag=T.icTag),v.siteToken=T.token),"function"==typeof g.getEntriesByType){var w=null!==(o=g.getEntriesByType("resource"))&&void 0!==o?o:[],E=0,S=0;w.forEach(function(e){var n={n:e.name,s:t(e.startTime),d:t(e.duration),i:e.initiatorType,p:e.nextHopProtocol,rs:t(e.redirectStart),re:t(e.redirectEnd),fs:t(e.fetchStart),ds:t(e.domainLookupStart),de:t(e.domainLookupEnd),cs:t(e.connectStart),ce:t(e.connectEnd),qs:t(e.requestStart),ps:t(e.responseStart),pe:t(e.responseEnd),ws:t(e.workerStart),ss:t(e.secureConnectionStart),ts:e.transferSize,ec:e.encodedBodySize,dc:e.decodedBodySize};v.tempResources&&void 0===v.tempResources[S]&&(v.tempResources[S]=[]);var r=JSON.stringify(n).length;E+r<62e3&&v.tempResources?(E+=r,v.tempResources[S].push(n)):(S++,E=0)})}return JSON.stringify(v).length>=64e3&&(v.resources=[]),void 0!==P&&(delete v.timings,delete v.memory,delete v.errorCount,delete v.documentWriteIntervention),v}function m(e){var n;if("first-contentful-paint"===e&&A.fcp&&A.fcp.value)return A.fcp.value;if("function"==typeof g.getEntriesByType){var t=null===(n=g.getEntriesByType("paint"))||void 0===n?void 0:n.filter(function(n){return n.name===e})[0];return t?t.startTime:0}return 0}var g=window.performance||window.webkitPerformance||window.msPerformance||window.mozPerformance,y=document.currentScript||("function"==typeof document.querySelector?document.querySelector("script[data-cf-beacon]"):void 0),h=c(),w=[],T=window.__cfBeacon?window.__cfBeacon:{};if(!T||"single"!==T.load){if(y){var E=y.getAttribute("data-cf-beacon");if(E)try{T=r(r({},T),JSON.parse(E))}catch(e){}else{var S=y.getAttribute("src");if(S&&"function"==typeof URLSearchParams){var b=new URLSearchParams(S.replace(/^[^\?]+\??/,"")),C=b.get("token");C&&(T.token=C);var L=b.get("spa");T.spa=null===L||"true"===L}}T&&"multi"!==T.load&&(T.load="single"),window.__cfBeacon=T}if(g&&T&&T.token){var P,R,B,O=!1,_=0;document.addEventListener("visibilitychange",function(){if("hidden"===document.visibilityState){if(x&&q()){var n=e();(null===B||void 0===B?void 0:B.url)==n&&null!==B&&void 0!==B&&B.triggered||M(),H(n)}!O&&B&&(O=!0,V())}else"visible"===document.visibilityState&&(_=(new Date).getTime())});var A={},I=function(e){if(!e||0===e.length)return null;var n=e.reduce(function(e,n){return e&&e.value>n.value?e:n});if(n&&n.sources&&n.sources.length){var t=n.sources.reduce(function(e,n){return e.node&&e.previousRect.width*e.previousRect.height>n.previousRect.width*n.previousRect.height?e:n});if(t)return t}},F=function(e){return e&&0!==e.length?e[e.length-1]:null},N=function(e){if(!e)return"";var n=e.localName;return e.id&&e.id.length>0&&(n+="#"+e.id),e.className&&e.className.length>0&&(n+="."+e.className.split(" ").join(".")),n},k=function(e){var n=window.location.pathname,t=F(e.entries);switch(A[e.name.toLowerCase()]={value:e.value,path:n},e.name){case"CLS":(t=I(e.entries))&&A.cls&&(A.cls.element=N(t.node),A.cls.currentRect=t.currentRect,A.cls.previousRect=t.previousRect);break;case"FID":t&&A.fid&&(A.fid.element=N(t.target),A.fid.name=t.name);break;case"LCP":t&&A.lcp&&(A.lcp.element=N(t.element),A.lcp.size=t.size,A.lcp.url=t.url)}};"function"==typeof PerformanceObserver&&((0,a.onLCP)(k),(0,a.onFID)(k),(0,a.onFCP)(k),(0,a.onINP)(k),(0,a.onTTFB)(k),PerformanceObserver.supportedEntryTypes&&PerformanceObserver.supportedEntryTypes.includes("layout-shift")&&(0,a.onCLS)(k));var x=T&&(void 0===T.spa||!0===T.spa),j=T.send&&T.send.to?T.send.to:void 0===T.version?"https://cloudflareinsights.com/cdn-cgi/rum":null,M=function(e){var n=function(e,n){t.resources=e,0!=n&&(t.bypassTiming=!0),T&&(1===T.r&&(t.resources=[]),(0,o.sendObjectBeacon)("",t,function(){},!1,j),void 0!==T.forward&&void 0!==T.forward.url&&(0,o.sendObjectBeacon)("",t,function(){},!1,T.forward.url))},t=v(e);if(t&&T){var r=t.tempResources;if(delete t.tempResources,x&&r&&0===r.length&&n([],0),!r)return;r.forEach(function(e,t){n(e,t)})}},V=function(){var e=p();x||(e.resources=[],delete e.tempResources),T&&(0,o.sendObjectBeacon)("",e,function(){},!0,j)},D=function(){var n=window.__cfRl&&window.__cfRl.done||window.__cfQR&&window.__cfQR.done;n?n.then(M):M(),B={id:h,url:e(),ts:(new Date).getTime(),triggered:!0}};"complete"===window.document.readyState?D():window.addEventListener("load",function(){window.setTimeout(D)});var q=function(){return x&&0===w.filter(function(e){return e.id===h}).length},H=function(e){w.push({id:h,url:e,ts:(new Date).getTime()}),w.length>3&&w.shift()};x&&(R=e(),function(n){var t=n.pushState;if(t){var r=function(){h=c(),"function"==typeof g.clearResourceTimings&&g.clearResourceTimings(),_=0};n.pushState=function(i,o,a){P=e(a);var c=e(),u=!0;return P==c&&(u=!1),u&&(q()&&((null===B||void 0===B?void 0:B.url)==c&&null!==B&&void 0!==B&&B.triggered||M(c),H(c)),r()),t.apply(n,[i,o,a])},window.addEventListener("popstate",function(n){q()&&((null===B||void 0===B?void 0:B.url)==P&&null!==B&&void 0!==B&&B.triggered||M(P),H(P)),P=e(),r()})}}(window.history))}}}()}()},function(e,n,t){"use strict";n.__esModule=!0,n.EventType=void 0;!function(e){e[e.Load=1]="Load",e[e.Additional=2]="Additional",e[e.WebVitalsV2=3]="WebVitalsV2"}(n.EventType||(n.EventType={}))},function(e,n,t){"use strict";function r(e,n,t,r,i){void 0===r&&(r=!1),void 0===i&&(i=null);var o=i||(n.siteToken&&n.versions.fl?"/cdn-cgi/rum?"+e:"/cdn-cgi/beacon/performance?"+e),a=!0;if(navigator&&"string"==typeof navigator.userAgent)try{var c=navigator.userAgent.match(/Chrome\/([0-9]+)/);c&&c[0].toLowerCase().indexOf("chrome")>-1&&parseInt(c[1])<81&&(a=!1)}catch(e){}if(navigator&&"function"==typeof navigator.sendBeacon&&a&&r){n.st=1;var u=JSON.stringify(n),s={type:"application/json"};navigator.sendBeacon(o,new Blob([u],s))}else{n.st=2;var u=JSON.stringify(n),f=new XMLHttpRequest;t&&(f.onreadystatechange=function(){4==this.readyState&&204==this.status&&t()}),f.open("POST",o,!0),f.setRequestHeader("content-type","application/json"),f.send(u)}}n.__esModule=!0,n.sendObjectBeacon=void 0,n.sendObjectBeacon=r},function(e,n,t){"use strict";n.__esModule=!0,n.onTTFB=n.onLCP=n.onINP=n.onFID=n.onFCP=n.onCLS=n.getTTFB=n.getLCP=n.getINP=n.getFID=n.getFCP=n.getCLS=void 0;var r,i,o,a,c,u=-1,s=function(e){addEventListener("pageshow",function(n){n.persisted&&(u=n.timeStamp,e(n))},!0)},f=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},d=function(){var e=f();return e&&e.activationStart||0},l=function(e,n){var t=f(),r="navigate";return u>=0?r="back-forward-cache":t&&(r=document.prerendering||d()>0?"prerender":t.type.replace(/_/g,"-")),{name:e,value:void 0===n?-1:n,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},p=function(e,n,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(e){n(e.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},t||{})),r}}catch(e){}},v=function(e,n){var t=function t(r){"pagehide"!==r.type&&"hidden"!==document.visibilityState||(e(r),n&&(removeEventListener("visibilitychange",t,!0),removeEventListener("pagehide",t,!0)))};addEventListener("visibilitychange",t,!0),addEventListener("pagehide",t,!0)},m=function(e,n,t,r){var i,o;return function(a){n.value>=0&&(a||r)&&((o=n.value-(i||0))||void 0===i)&&(i=n.value,n.delta=o,n.rating=function(e,n){return e>n[1]?"poor":e>n[0]?"needs-improvement":"good"}(n.value,t),e(n))}},g=-1,y=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},h=function(){v(function(e){var n=e.timeStamp;g=n},!0)},w=function(){return g<0&&(g=y(),h(),s(function(){setTimeout(function(){g=y(),h()},0)})),{get firstHiddenTime(){return g}}},T=function(e,n){n=n||{};var t,r=[1800,3e3],i=w(),o=l("FCP"),a=function(e){e.forEach(function(e){"first-contentful-paint"===e.name&&(u&&u.disconnect(),e.startTime-1&&e(n)},o=l("CLS",0),a=0,c=[],u=function(e){e.forEach(function(e){if(!e.hadRecentInput){var n=c[0],t=c[c.length-1];a&&e.startTime-t.startTime<1e3&&e.startTime-n.startTime<5e3?(a+=e.value,c.push(e)):(a=e.value,c=[e]),a>o.value&&(o.value=a,o.entries=c,r())}})},f=p("layout-shift",u);f&&(r=m(i,o,t,n.reportAllChanges),v(function(){u(f.takeRecords()),r(!0)}),s(function(){a=0,S=-1,o=l("CLS",0),r=m(i,o,t,n.reportAllChanges)}))},C={passive:!0,capture:!0},L=new Date,P=function(e,n){r||(r=n,i=e,o=new Date,O(removeEventListener),R())},R=function(){if(i>=0&&i1e12?new Date:performance.now())-e.timeStamp;"pointerdown"==e.type?function(e,n){var t=function(){P(e,n),i()},r=function(){i()},i=function(){removeEventListener("pointerup",t,C),removeEventListener("pointercancel",r,C)};addEventListener("pointerup",t,C),addEventListener("pointercancel",r,C)}(n,e):P(n,e)}},O=function(e){["mousedown","keydown","touchstart","pointerdown"].forEach(function(n){return e(n,B,C)})},_=function(e,n){n=n||{};var t,o=[100,300],c=w(),u=l("FID"),f=function(e){e.startTimen.latency){if(t)t.entries.push(e),t.latency=Math.max(t.latency,e.duration);else{var r={id:e.interactionId,latency:e.duration,entries:[e]};D[r.id]=r,V.push(r)}V.sort(function(e,n){return n.latency-e.latency}),V.splice(10).forEach(function(e){delete D[e.id]})}},H=function(e,n){n=n||{};var t=[200,500];x();var r,i=l("INP"),o=function(e){e.forEach(function(e){e.interactionId&&q(e),"first-input"===e.entryType&&!V.some(function(n){return n.entries.some(function(n){return e.duration===n.duration&&e.startTime===n.startTime})})&&q(e)});var n,t=(n=Math.min(V.length-1,Math.floor(M()/50)),V[n]);t&&t.latency!==i.value&&(i.value=t.latency,i.entries=t.entries,r())},a=p("event",o,{durationThreshold:n.durationThreshold||40});r=m(e,i,t,n.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),v(function(){o(a.takeRecords()),i.value<0&&M()>0&&(i.value=0,i.entries=[]),r(!0)}),s(function(){V=[],j=k(),i=l("INP"),r=m(e,i,t,n.reportAllChanges)}))},J={},z=function(e,n){n=n||{};var t,r=[2500,4e3],i=w(),o=l("LCP"),a=function(e){var n=e[e.length-1];if(n){var r=n.startTime-d();rperformance.now())return;r.entries=[o],i(!0),s(function(){r=l("TTFB",0),(i=m(e,r,t,n.reportAllChanges))(!0)})}})};n.getFCP=T,n.onFCP=T,n.getCLS=b,n.onCLS=b,n.getFID=_,n.onFID=_,n.getINP=H,n.onINP=H,n.getLCP=z,n.onLCP=z,n.getTTFB=W,n.onTTFB=W},function(e,n,t){"use strict";function r(e,n,t){var r=n&&t||0;"string"==typeof e&&(n="binary"===e?new Array(16):null,e=null),e=e||{};var a=e.random||(e.rng||i)();if(a[6]=15&a[6]|64,a[8]=63&a[8]|128,n)for(var c=0;c<16;++c)n[r+c]=a[c];return n||o(a)}var i=t(5),o=t(6);e.exports=r},function(e,n,t){"use strict";var r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(r){var i=new Uint8Array(16);e.exports=function(){return r(i),i}}else{var o=new Array(16);e.exports=function(){for(var e,n=0;n<16;n++)0==(3&n)&&(e=4294967296*Math.random()),o[n]=e>>>((3&n)<<3)&255;return o}}},function(e,n,t){"use strict";function r(e,n){var t=n||0,r=i;return[r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],"-",r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]],r[e[t++]]].join("")}for(var i=[],o=0;o<256;++o)i[o]=(o+256).toString(16).substr(1);e.exports=r}]); -------------------------------------------------------------------------------- /phpproject/Contact Form #8_files/jquery.validate.min.js+main.js.pagespeed.jc.r3sznQIvAr.js.download: -------------------------------------------------------------------------------- 1 | var mod_pagespeed_GgSSgi8OgN = "/*! jQuery Validation Plugin - v1.16.0 - 12/2/2016\n * http://jqueryvalidation.org/\n * Copyright (c) 2016 Jörn Zaefferer; Licensed MIT */\n!function(a){\"function\"==typeof define&&define.amd?define([\"jquery\"],a):\"object\"==typeof module&&module.exports?module.exports=a(require(\"jquery\")):a(jQuery)}(function(a){a.extend(a.fn,{validate:function(b){if(!this.length)return void(b&&b.debug&&window.console&&console.warn(\"Nothing selected, can't validate, returning nothing.\"));var c=a.data(this[0],\"validator\");return c?c:(this.attr(\"novalidate\",\"novalidate\"),c=new a.validator(b,this[0]),a.data(this[0],\"validator\",c),c.settings.onsubmit&&(this.on(\"click.validate\",\":submit\",function(b){c.settings.submitHandler&&(c.submitButton=b.target),a(this).hasClass(\"cancel\")&&(c.cancelSubmit=!0),void 0!==a(this).attr(\"formnovalidate\")&&(c.cancelSubmit=!0)}),this.on(\"submit.validate\",function(b){function d(){var d,e;return!c.settings.submitHandler||(c.submitButton&&(d=a(\"\").attr(\"name\",c.submitButton.name).val(a(c.submitButton).val()).appendTo(c.currentForm)),e=c.settings.submitHandler.call(c,c.currentForm,b),c.submitButton&&d.remove(),void 0!==e&&e)}return c.settings.debug&&b.preventDefault(),c.cancelSubmit?(c.cancelSubmit=!1,d()):c.form()?c.pendingRequest?(c.formSubmitted=!0,!1):d():(c.focusInvalid(),!1)})),c)},valid:function(){var b,c,d;return a(this[0]).is(\"form\")?b=this.validate().form():(d=[],b=!0,c=a(this[0].form).validate(),this.each(function(){b=c.element(this)&&b,b||(d=d.concat(c.errorList))}),c.errorList=d),b},rules:function(b,c){var d,e,f,g,h,i,j=this[0];if(null!=j&&null!=j.form){if(b)switch(d=a.data(j.form,\"validator\").settings,e=d.rules,f=a.validator.staticRules(j),b){case\"add\":a.extend(f,a.validator.normalizeRule(c)),delete f.messages,e[j.name]=f,c.messages&&(d.messages[j.name]=a.extend(d.messages[j.name],c.messages));break;case\"remove\":return c?(i={},a.each(c.split(/\\s/),function(b,c){i[c]=f[c],delete f[c],\"required\"===c&&a(j).removeAttr(\"aria-required\")}),i):(delete e[j.name],f)}return g=a.validator.normalizeRules(a.extend({},a.validator.classRules(j),a.validator.attributeRules(j),a.validator.dataRules(j),a.validator.staticRules(j)),j),g.required&&(h=g.required,delete g.required,g=a.extend({required:h},g),a(j).attr(\"aria-required\",\"true\")),g.remote&&(h=g.remote,delete g.remote,g=a.extend(g,{remote:h})),g}}}),a.extend(a.expr.pseudos||a.expr[\":\"],{blank:function(b){return!a.trim(\"\"+a(b).val())},filled:function(b){var c=a(b).val();return null!==c&&!!a.trim(\"\"+c)},unchecked:function(b){return!a(b).prop(\"checked\")}}),a.validator=function(b,c){this.settings=a.extend(!0,{},a.validator.defaults,b),this.currentForm=c,this.init()},a.validator.format=function(b,c){return 1===arguments.length?function(){var c=a.makeArray(arguments);return c.unshift(b),a.validator.format.apply(this,c)}:void 0===c?b:(arguments.length>2&&c.constructor!==Array&&(c=a.makeArray(arguments).slice(1)),c.constructor!==Array&&(c=[c]),a.each(c,function(a,c){b=b.replace(new RegExp(\"\\\\{\"+a+\"\\\\}\",\"g\"),function(){return c})}),b)},a.extend(a.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:\"error\",pendingClass:\"pending\",validClass:\"valid\",errorElement:\"label\",focusCleanup:!1,focusInvalid:!0,errorContainer:a([]),errorLabelContainer:a([]),onsubmit:!0,ignore:\":hidden\",ignoreTitle:!1,onfocusin:function(a){this.lastActive=a,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,a,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(a)))},onfocusout:function(a){this.checkable(a)||!(a.name in this.submitted)&&this.optional(a)||this.element(a)},onkeyup:function(b,c){var d=[16,17,18,20,35,36,37,38,39,40,45,144,225];9===c.which&&\"\"===this.elementValue(b)||a.inArray(c.keyCode,d)!==-1||(b.name in this.submitted||b.name in this.invalid)&&this.element(b)},onclick:function(a){a.name in this.submitted?this.element(a):a.parentNode.name in this.submitted&&this.element(a.parentNode)},highlight:function(b,c,d){\"radio\"===b.type?this.findByName(b.name).addClass(c).removeClass(d):a(b).addClass(c).removeClass(d)},unhighlight:function(b,c,d){\"radio\"===b.type?this.findByName(b.name).removeClass(c).addClass(d):a(b).removeClass(c).addClass(d)}},setDefaults:function(b){a.extend(a.validator.defaults,b)},messages:{required:\"This field is required.\",remote:\"Please fix this field.\",email:\"Please enter a valid email address.\",url:\"Please enter a valid URL.\",date:\"Please enter a valid date.\",dateISO:\"Please enter a valid date (ISO).\",number:\"Please enter a valid number.\",digits:\"Please enter only digits.\",equalTo:\"Please enter the same value again.\",maxlength:a.validator.format(\"Please enter no more than {0} characters.\"),minlength:a.validator.format(\"Please enter at least {0} characters.\"),rangelength:a.validator.format(\"Please enter a value between {0} and {1} characters long.\"),range:a.validator.format(\"Please enter a value between {0} and {1}.\"),max:a.validator.format(\"Please enter a value less than or equal to {0}.\"),min:a.validator.format(\"Please enter a value greater than or equal to {0}.\"),step:a.validator.format(\"Please enter a multiple of {0}.\")},autoCreateRanges:!1,prototype:{init:function(){function b(b){!this.form&&this.hasAttribute(\"contenteditable\")&&(this.form=a(this).closest(\"form\")[0]);var c=a.data(this.form,\"validator\"),d=\"on\"+b.type.replace(/^validate/,\"\"),e=c.settings;e[d]&&!a(this).is(e.ignore)&&e[d].call(c,this,b)}this.labelContainer=a(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||a(this.currentForm),this.containers=a(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var c,d=this.groups={};a.each(this.settings.groups,function(b,c){\"string\"==typeof c&&(c=c.split(/\\s/)),a.each(c,function(a,c){d[c]=b})}),c=this.settings.rules,a.each(c,function(b,d){c[b]=a.validator.normalizeRule(d)}),a(this.currentForm).on(\"focusin.validate focusout.validate keyup.validate\",\":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']\",b).on(\"click.validate\",\"select, option, [type='radio'], [type='checkbox']\",b),this.settings.invalidHandler&&a(this.currentForm).on(\"invalid-form.validate\",this.settings.invalidHandler),a(this.currentForm).find(\"[required], [data-rule-required], .required\").attr(\"aria-required\",\"true\")},form:function(){return this.checkForm(),a.extend(this.submitted,this.errorMap),this.invalid=a.extend({},this.errorMap),this.valid()||a(this.currentForm).triggerHandler(\"invalid-form\",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var a=0,b=this.currentElements=this.elements();b[a];a++)this.check(b[a]);return this.valid()},element:function(b){var c,d,e=this.clean(b),f=this.validationTargetFor(e),g=this,h=!0;return void 0===f?delete this.invalid[e.name]:(this.prepareElement(f),this.currentElements=a(f),d=this.groups[f.name],d&&a.each(this.groups,function(a,b){b===d&&a!==f.name&&(e=g.validationTargetFor(g.clean(g.findByName(a))),e&&e.name in g.invalid&&(g.currentElements.push(e),h=g.check(e)&&h))}),c=this.check(f)!==!1,h=h&&c,c?this.invalid[f.name]=!1:this.invalid[f.name]=!0,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),a(b).attr(\"aria-invalid\",!c)),h},showErrors:function(b){if(b){var c=this;a.extend(this.errorMap,b),this.errorList=a.map(this.errorMap,function(a,b){return{message:a,element:c.findByName(b)[0]}}),this.successList=a.grep(this.successList,function(a){return!(a.name in b)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){a.fn.resetForm&&a(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var b=this.elements().removeData(\"previousValue\").removeAttr(\"aria-invalid\");this.resetElements(b)},resetElements:function(a){var b;if(this.settings.unhighlight)for(b=0;a[b];b++)this.settings.unhighlight.call(this,a[b],this.settings.errorClass,\"\"),this.findByName(a[b].name).removeClass(this.settings.validClass);else a.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(a){var b,c=0;for(b in a)a[b]&&c++;return c},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(a){a.not(this.containers).text(\"\"),this.addWrapper(a).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{a(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(\":visible\").focus().trigger(\"focusin\")}catch(b){}},findLastActive:function(){var b=this.lastActive;return b&&1===a.grep(this.errorList,function(a){return a.element.name===b.name}).length&&b},elements:function(){var b=this,c={};return a(this.currentForm).find(\"input, select, textarea, [contenteditable]\").not(\":submit, :reset, :image, :disabled\").not(this.settings.ignore).filter(function(){var d=this.name||a(this).attr(\"name\");return!d&&b.settings.debug&&window.console&&console.error(\"%o has no name assigned\",this),this.hasAttribute(\"contenteditable\")&&(this.form=a(this).closest(\"form\")[0]),!(d in c||!b.objectLength(a(this).rules()))&&(c[d]=!0,!0)})},clean:function(b){return a(b)[0]},errors:function(){var b=this.settings.errorClass.split(\" \").join(\".\");return a(this.settings.errorElement+\".\"+b,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=a([]),this.toHide=a([])},reset:function(){this.resetInternals(),this.currentElements=a([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(a){this.reset(),this.toHide=this.errorsFor(a)},elementValue:function(b){var c,d,e=a(b),f=b.type;return\"radio\"===f||\"checkbox\"===f?this.findByName(b.name).filter(\":checked\").val():\"number\"===f&&\"undefined\"!=typeof b.validity?b.validity.badInput?\"NaN\":e.val():(c=b.hasAttribute(\"contenteditable\")?e.text():e.val(),\"file\"===f?\"C:\\\\fakepath\\\\\"===c.substr(0,12)?c.substr(12):(d=c.lastIndexOf(\"/\"),d>=0?c.substr(d+1):(d=c.lastIndexOf(\"\\\\\"),d>=0?c.substr(d+1):c)):\"string\"==typeof c?c.replace(/\\r/g,\"\"):c)},check:function(b){b=this.validationTargetFor(this.clean(b));var c,d,e,f=a(b).rules(),g=a.map(f,function(a,b){return b}).length,h=!1,i=this.elementValue(b);if(\"function\"==typeof f.normalizer){if(i=f.normalizer.call(b,i),\"string\"!=typeof i)throw new TypeError(\"The normalizer should return a string value.\");delete f.normalizer}for(d in f){e={method:d,parameters:f[d]};try{if(c=a.validator.methods[d].call(this,i,b,e.parameters),\"dependency-mismatch\"===c&&1===g){h=!0;continue}if(h=!1,\"pending\"===c)return void(this.toHide=this.toHide.not(this.errorsFor(b)));if(!c)return this.formatAndAdd(b,e),!1}catch(j){throw this.settings.debug&&window.console&&console.log(\"Exception occurred when checking element \"+b.id+\", check the '\"+e.method+\"' method.\",j),j instanceof TypeError&&(j.message+=\". Exception occurred when checking element \"+b.id+\", check the '\"+e.method+\"' method.\"),j}}if(!h)return this.objectLength(f)&&this.successList.push(b),!0},customDataMessage:function(b,c){return a(b).data(\"msg\"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase())||a(b).data(\"msg\")},customMessage:function(a,b){var c=this.settings.messages[a];return c&&(c.constructor===String?c:c[b])},findDefined:function(){for(var a=0;aWarning: No message defined for \"+b.name+\"\"),e=/\\$?\\{(\\d+)\\}/g;return\"function\"==typeof d?d=d.call(this,c.parameters,b):e.test(d)&&(d=a.validator.format(d.replace(e,\"{$1}\"),c.parameters)),d},formatAndAdd:function(a,b){var c=this.defaultMessage(a,b);this.errorList.push({message:c,element:a,method:b.method}),this.errorMap[a.name]=c,this.submitted[a.name]=c},addWrapper:function(a){return this.settings.wrapper&&(a=a.add(a.parent(this.settings.wrapper))),a},defaultShowErrors:function(){var a,b,c;for(a=0;this.errorList[a];a++)c=this.errorList[a],this.settings.highlight&&this.settings.highlight.call(this,c.element,this.settings.errorClass,this.settings.validClass),this.showLabel(c.element,c.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(a=0;this.successList[a];a++)this.showLabel(this.successList[a]);if(this.settings.unhighlight)for(a=0,b=this.validElements();b[a];a++)this.settings.unhighlight.call(this,b[a],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return a(this.errorList).map(function(){return this.element})},showLabel:function(b,c){var d,e,f,g,h=this.errorsFor(b),i=this.idOrName(b),j=a(b).attr(\"aria-describedby\");h.length?(h.removeClass(this.settings.validClass).addClass(this.settings.errorClass),h.html(c)):(h=a(\"<\"+this.settings.errorElement+\">\").attr(\"id\",i+\"-error\").addClass(this.settings.errorClass).html(c||\"\"),d=h,this.settings.wrapper&&(d=h.hide().show().wrap(\"<\"+this.settings.wrapper+\"/>\").parent()),this.labelContainer.length?this.labelContainer.append(d):this.settings.errorPlacement?this.settings.errorPlacement.call(this,d,a(b)):d.insertAfter(b),h.is(\"label\")?h.attr(\"for\",i):0===h.parents(\"label[for='\"+this.escapeCssMeta(i)+\"']\").length&&(f=h.attr(\"id\"),j?j.match(new RegExp(\"\\\\b\"+this.escapeCssMeta(f)+\"\\\\b\"))||(j+=\" \"+f):j=f,a(b).attr(\"aria-describedby\",j),e=this.groups[b.name],e&&(g=this,a.each(g.groups,function(b,c){c===e&&a(\"[name='\"+g.escapeCssMeta(b)+\"']\",g.currentForm).attr(\"aria-describedby\",h.attr(\"id\"))})))),!c&&this.settings.success&&(h.text(\"\"),\"string\"==typeof this.settings.success?h.addClass(this.settings.success):this.settings.success(h,b)),this.toShow=this.toShow.add(h)},errorsFor:function(b){var c=this.escapeCssMeta(this.idOrName(b)),d=a(b).attr(\"aria-describedby\"),e=\"label[for='\"+c+\"'], label[for='\"+c+\"'] *\";return d&&(e=e+\", #\"+this.escapeCssMeta(d).replace(/\\s+/g,\", #\")),this.errors().filter(e)},escapeCssMeta:function(a){return a.replace(/([\\\\!\"#$%&'()*+,./:;<=>?@\\[\\]^`{|}~])/g,\"\\\\$1\")},idOrName:function(a){return this.groups[a.name]||(this.checkable(a)?a.name:a.id||a.name)},validationTargetFor:function(b){return this.checkable(b)&&(b=this.findByName(b.name)),a(b).not(this.settings.ignore)[0]},checkable:function(a){return/radio|checkbox/i.test(a.type)},findByName:function(b){return a(this.currentForm).find(\"[name='\"+this.escapeCssMeta(b)+\"']\")},getLength:function(b,c){switch(c.nodeName.toLowerCase()){case\"select\":return a(\"option:selected\",c).length;case\"input\":if(this.checkable(c))return this.findByName(c.name).filter(\":checked\").length}return b.length},depend:function(a,b){return!this.dependTypes[typeof a]||this.dependTypes[typeof a](a,b)},dependTypes:{\"boolean\":function(a){return a},string:function(b,c){return!!a(b,c.form).length},\"function\":function(a,b){return a(b)}},optional:function(b){var c=this.elementValue(b);return!a.validator.methods.required.call(this,c,b)&&\"dependency-mismatch\"},startRequest:function(b){this.pending[b.name]||(this.pendingRequest++,a(b).addClass(this.settings.pendingClass),this.pending[b.name]=!0)},stopRequest:function(b,c){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[b.name],a(b).removeClass(this.settings.pendingClass),c&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(a(this.currentForm).submit(),this.formSubmitted=!1):!c&&0===this.pendingRequest&&this.formSubmitted&&(a(this.currentForm).triggerHandler(\"invalid-form\",[this]),this.formSubmitted=!1)},previousValue:function(b,c){return c=\"string\"==typeof c&&c||\"remote\",a.data(b,\"previousValue\")||a.data(b,\"previousValue\",{old:null,valid:!0,message:this.defaultMessage(b,{method:c})})},destroy:function(){this.resetForm(),a(this.currentForm).off(\".validate\").removeData(\"validator\").find(\".validate-equalTo-blur\").off(\".validate-equalTo\").removeClass(\"validate-equalTo-blur\")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(b,c){b.constructor===String?this.classRuleSettings[b]=c:a.extend(this.classRuleSettings,b)},classRules:function(b){var c={},d=a(b).attr(\"class\");return d&&a.each(d.split(\" \"),function(){this in a.validator.classRuleSettings&&a.extend(c,a.validator.classRuleSettings[this])}),c},normalizeAttributeRule:function(a,b,c,d){/min|max|step/.test(c)&&(null===b||/number|range|text/.test(b))&&(d=Number(d),isNaN(d)&&(d=void 0)),d||0===d?a[c]=d:b===c&&\"range\"!==b&&(a[c]=!0)},attributeRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute(\"type\");for(c in a.validator.methods)\"required\"===c?(d=b.getAttribute(c),\"\"===d&&(d=!0),d=!!d):d=f.attr(c),this.normalizeAttributeRule(e,g,c,d);return e.maxlength&&/-1|2147483647|524288/.test(e.maxlength)&&delete e.maxlength,e},dataRules:function(b){var c,d,e={},f=a(b),g=b.getAttribute(\"type\");for(c in a.validator.methods)d=f.data(\"rule\"+c.charAt(0).toUpperCase()+c.substring(1).toLowerCase()),this.normalizeAttributeRule(e,g,c,d);return e},staticRules:function(b){var c={},d=a.data(b.form,\"validator\");return d.settings.rules&&(c=a.validator.normalizeRule(d.settings.rules[b.name])||{}),c},normalizeRules:function(b,c){return a.each(b,function(d,e){if(e===!1)return void delete b[d];if(e.param||e.depends){var f=!0;switch(typeof e.depends){case\"string\":f=!!a(e.depends,c.form).length;break;case\"function\":f=e.depends.call(c,c)}f?b[d]=void 0===e.param||e.param:(a.data(c.form,\"validator\").resetElements(a(c)),delete b[d])}}),a.each(b,function(d,e){b[d]=a.isFunction(e)&&\"normalizer\"!==d?e(c):e}),a.each([\"minlength\",\"maxlength\"],function(){b[this]&&(b[this]=Number(b[this]))}),a.each([\"rangelength\",\"range\"],function(){var c;b[this]&&(a.isArray(b[this])?b[this]=[Number(b[this][0]),Number(b[this][1])]:\"string\"==typeof b[this]&&(c=b[this].replace(/[\\[\\]]/g,\"\").split(/[\\s,]+/),b[this]=[Number(c[0]),Number(c[1])]))}),a.validator.autoCreateRanges&&(null!=b.min&&null!=b.max&&(b.range=[b.min,b.max],delete b.min,delete b.max),null!=b.minlength&&null!=b.maxlength&&(b.rangelength=[b.minlength,b.maxlength],delete b.minlength,delete b.maxlength)),b},normalizeRule:function(b){if(\"string\"==typeof b){var c={};a.each(b.split(/\\s/),function(){c[this]=!0}),b=c}return b},addMethod:function(b,c,d){a.validator.methods[b]=c,a.validator.messages[b]=void 0!==d?d:a.validator.messages[b],c.length<3&&a.validator.addClassRules(b,a.validator.normalizeRule(b))},methods:{required:function(b,c,d){if(!this.depend(d,c))return\"dependency-mismatch\";if(\"select\"===c.nodeName.toLowerCase()){var e=a(c).val();return e&&e.length>0}return this.checkable(c)?this.getLength(b,c)>0:b.length>0},email:function(a,b){return this.optional(b)||/^[a-zA-Z0-9.!#$%&'*+\\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(a)},url:function(a,b){return this.optional(b)||/^(?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?!(?:10|127)(?:\\.\\d{1,3}){3})(?!(?:169\\.254|192\\.168)(?:\\.\\d{1,3}){2})(?!172\\.(?:1[6-9]|2\\d|3[0-1])(?:\\.\\d{1,3}){2})(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})).?)(?::\\d{2,5})?(?:[/?#]\\S*)?$/i.test(a)},date:function(a,b){return this.optional(b)||!/Invalid|NaN/.test(new Date(a).toString())},dateISO:function(a,b){return this.optional(b)||/^\\d{4}[\\/\\-](0?[1-9]|1[012])[\\/\\-](0?[1-9]|[12][0-9]|3[01])$/.test(a)},number:function(a,b){return this.optional(b)||/^(?:-?\\d+|-?\\d{1,3}(?:,\\d{3})+)?(?:\\.\\d+)?$/.test(a)},digits:function(a,b){return this.optional(b)||/^\\d+$/.test(a)},minlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d},maxlength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e<=d},rangelength:function(b,c,d){var e=a.isArray(b)?b.length:this.getLength(b,c);return this.optional(c)||e>=d[0]&&e<=d[1]},min:function(a,b,c){return this.optional(b)||a>=c},max:function(a,b,c){return this.optional(b)||a<=c},range:function(a,b,c){return this.optional(b)||a>=c[0]&&a<=c[1]},step:function(b,c,d){var e,f=a(c).attr(\"type\"),g=\"Step attribute on input type \"+f+\" is not supported.\",h=[\"text\",\"number\",\"range\"],i=new RegExp(\"\\\\b\"+f+\"\\\\b\"),j=f&&!i.test(h.join()),k=function(a){var b=(\"\"+a).match(/(?:\\.(\\d+))?$/);return b&&b[1]?b[1].length:0},l=function(a){return Math.round(a*Math.pow(10,e))},m=!0;if(j)throw new Error(g);return e=k(d),(k(b)>e||l(b)%l(d)!==0)&&(m=!1),this.optional(c)||m},equalTo:function(b,c,d){var e=a(d);return this.settings.onfocusout&&e.not(\".validate-equalTo-blur\").length&&e.addClass(\"validate-equalTo-blur\").on(\"blur.validate-equalTo\",function(){a(c).valid()}),b===e.val()},remote:function(b,c,d,e){if(this.optional(c))return\"dependency-mismatch\";e=\"string\"==typeof e&&e||\"remote\";var f,g,h,i=this.previousValue(c,e);return this.settings.messages[c.name]||(this.settings.messages[c.name]={}),i.originalMessage=i.originalMessage||this.settings.messages[c.name][e],this.settings.messages[c.name][e]=i.message,d=\"string\"==typeof d&&{url:d}||d,h=a.param(a.extend({data:b},d.data)),i.old===h?i.valid:(i.old=h,f=this,this.startRequest(c),g={},g[c.name]=b,a.ajax(a.extend(!0,{mode:\"abort\",port:\"validate\"+c.name,dataType:\"json\",data:g,context:f.currentForm,success:function(a){var d,g,h,j=a===!0||\"true\"===a;f.settings.messages[c.name][e]=i.originalMessage,j?(h=f.formSubmitted,f.resetInternals(),f.toHide=f.errorsFor(c),f.formSubmitted=h,f.successList.push(c),f.invalid[c.name]=!1,f.showErrors()):(d={},g=a||f.defaultMessage(c,{method:e,parameters:b}),d[c.name]=i.message=g,f.invalid[c.name]=!0,f.showErrors(d)),i.valid=j,f.stopRequest(c,j)}},d)),\"pending\")}}});var b,c={};return a.ajaxPrefilter?a.ajaxPrefilter(function(a,b,d){var e=a.port;\"abort\"===a.mode&&(c[e]&&c[e].abort(),c[e]=d)}):(b=a.ajax,a.ajax=function(d){var e=(\"mode\"in d?d:a.ajaxSettings).mode,f=(\"port\"in d?d:a.ajaxSettings).port;return\"abort\"===e?(c[f]&&c[f].abort(),c[f]=b.apply(this,arguments),c[f]):b.apply(this,arguments)}),a});"; 2 | var mod_pagespeed_r15KL3Puna = "$(function() {\n\n 'use strict';\n\n // Form\n\n var contactForm = function() {\n\n if ($('#contactForm').length > 0 ) {\n $( \"#contactForm\" ).validate( {\n rules: {\n name: \"required\",\n email: {\n required: true,\n email: true\n },\n message: {\n required: true,\n minlength: 5\n }\n },\n messages: {\n name: \"Please enter your name\",\n email: \"Please enter a valid email address\",\n message: \"Please enter a message\"\n },\n /* submit via ajax */\n submitHandler: function(form) { \n var $submit = $('.submitting'),\n waitText = 'Submitting...';\n\n $.ajax({ \n type: \"POST\",\n url: \"php/send-email.php\",\n data: $(form).serialize(),\n\n beforeSend: function() { \n $submit.css('display', 'block').text(waitText);\n },\n success: function(msg) {\n if (msg == 'OK') {\n $('#form-message-warning').hide();\n setTimeout(function(){\n $('#contactForm').fadeOut();\n }, 1000);\n setTimeout(function(){\n $('#form-message-success').fadeIn(); \n }, 1400);\n \n } else {\n $('#form-message-warning').html(msg);\n $('#form-message-warning').fadeIn();\n $submit.css('display', 'none');\n }\n },\n error: function() {\n $('#form-message-warning').html(\"Something went wrong. Please try again.\");\n $('#form-message-warning').fadeIn();\n $submit.css('display', 'none');\n }\n }); \n }\n \n } );\n }\n };\n contactForm();\n\n});"; 3 | --------------------------------------------------------------------------------