|  |
|:--:|
| *Image Caption* |
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 | |
if ( !empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest' ) | |
{ | |
# Ex. check the query and serve requested data | |
} |
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
zend_extension=xdebug.so | |
xdebug.profiler_enable=0 | |
xdebug.profiler_enable_trigger=1 | |
xdebug.trace_enable_trigger=1 | |
xdebug.trace_format=1 | |
xdebug.collect_params=4 | |
xdebug.collect_return=1 | |
xdebug.show_mem_delta=1 | |
xdebug.auto_trace=0 | |
xdebug.profiler_output_dir=/tmp |
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 | |
/** | |
* Borrowed from https://stackoverflow.com/a/38407568/1994640 | |
* | |
* Fixed fatal errors and unwanted creation of empty arrays | |
*/ | |
$filePath = 'hello.zip'; | |
$za = new ZipArchive(); | |
if ($za->open($filePath) !== true) { // check for the zip archive |
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 class does the operations related to Nonce | |
* | |
* It takes care of creating a nonce & verifying a nonce | |
* | |
* Example | |
* | |
* STEP 1 - CREATION OF NONCE: | |
* <code> |
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
NODE_ENV=development |
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
#!/bin/sh | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $local_fs $remote_fs $network $syslog $named | |
# Required-Stop: $local_fs $remote_fs $network $syslog $named | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the nginx web server | |
# Description: starts nginx using start-stop-daemon |
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
--- templates-vanilla.php 2019-11-05 18:26:00.202212000 +0530 | |
+++ templates.php 2019-11-05 18:26:30.690864791 +0530 | |
@@ -533,6 +533,8 @@ | |
'{s-url}', | |
'{rss-url}', | |
'{twitter-username}', | |
+ '{title-plain}', | |
+ '{excerpt-plain}' | |
); | |
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
. | |
├── admin-resources # Holds Admin related CSS, JS and Templates | |
│ ├── css | |
│ ├── js | |
│ └── templates | |
├── frontend-resources # Holds Frontend related CSS, JS and Templates | |
│ ├── css | |
│ ├── js | |
│ └── templates | |
├── custom-packages # Composer packages built or modified for Project |
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 file contains common functions required in both implementations. | |
*/ | |
/** | |
* Provides default values for the Social Options. | |
*/ | |
function sandbox_settings_default_social_options() { |