This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| I've displayed the the local time by saving the timezone in session variable with help of moment.js, here is the steps: | |
| 1 - use momentjs cdn (or with npm as you like) | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.19.0/moment.min.js"></script> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.5.13/moment-timezone-with-data.js"></script> | |
| 2 - In login.blade.php make a hidden input within login form | |
| <input type="hidden" name="timezone" id="timezone"> | |
| and push this script |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Remove index.php from url Such as www.example.com/index.php/page to www.example.com/page | |
| RewriteCond %{THE_REQUEST} ^.*/index\.php | |
| RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.$ | |
| RewriteRule ^index.php(.*)$ $1 [R=301,L] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // This can be found in the Symfony\Component\HttpFoundation\Response class | |
| const HTTP_CONTINUE = 100; | |
| const HTTP_SWITCHING_PROTOCOLS = 101; | |
| const HTTP_PROCESSING = 102; // RFC2518 | |
| const HTTP_OK = 200; | |
| const HTTP_CREATED = 201; | |
| const HTTP_ACCEPTED = 202; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE SEQUENCE country_seq; | |
| CREATE TABLE IF NOT EXISTS country ( | |
| id int NOT NULL DEFAULT NEXTVAL ('country_seq'), | |
| iso char(2) NOT NULL, | |
| name varchar(80) NOT NULL, | |
| nicename varchar(80) NOT NULL, | |
| iso3 char(3) DEFAULT NULL, | |
| numcode smallint DEFAULT NULL, | |
| phonecode int NOT NULL, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 0815.ru | |
| 0815.ru0clickemail.com | |
| 0815.ry | |
| 0815.su | |
| 0845.ru | |
| 0clickemail.com | |
| 0-mail.com | |
| 0wnd.net | |
| 0wnd.org | |
| 10mail.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| // Paths | |
| $target = '/home/username/public_html/storage/app/public'; | |
| $link = '/home/username/public_html/public/storage'; | |
| echo "<pre>"; | |
| // Check if link already exists | |
| if (file_exists($link)) { | |
| echo "❌ Link or folder already exists at:\n$link\n"; |
OlderNewer