The simplest PHP Hook System.
This Hook System store all the hooks and there values in an array.
This Hook is the simplest Hook ever made.
Regular expressions, ever versatile, will help up locate HTML tags in a string today.
Pattern matching HTML strings serves at least one crucial function in web dev: sanitizing user input. Allowing user-submitted strings opens one's application to significant vulnerability. Supposing, for example, some ne'er-do-well on the internet submitted a comment that includes <script src="[path]/stealYourData.js"></script>
. Regular expressions allow us to match HTML tags in a string, because HTML tags conform to a certain pattern:
@font-face{font-family:"summernote";font-style:normal;font-weight:normal;src:url("./font/summernote.eot?4c7e83314b68cfa6a0d18a8b4690044b");src:url("./font/summernote.eot?4c7e83314b68cfa6a0d18a8b4690044b#iefix") format("embedded-opentype"), | |
url("./font/summernote.woff?4c7e83314b68cfa6a0d18a8b4690044b") format("woff"), | |
url("./font/summernote.ttf?4c7e83314b68cfa6a0d18a8b4690044b") format("truetype") | |
} | |
[class^="note-icon-"]:before, | |
[class*=" note-icon-"]:before { | |
display: inline-block; | |
font: normal normal normal 14px summernote; | |
font-size: inherit; | |
-webkit-font-smoothing: antialiased; |
data:image/gif;base64,R0lGODlhAQABAAAAACw= |
<?php | |
define('LANG_ENGLISH', 'en'); | |
define('LANG_FRENCH', 'fr'); | |
define('LANG_SPANISH', 'es'); | |
// Look for l in query string and set as language. | |
$language = isset($_GET['l']) ? $_GET['l'] : LANG_ENGLISH; | |
/** |