This file contains 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
mogrify -path /new-path -resize 16x16 /path-to-images-to-resize/* |
This file contains 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
<m:h1>Example Page</m:h1> | |
My Image:<br /> | |
<m:image /> | |
<br /> | |
My Name: <m:name /> | |
<br /> | |
My Friends: <m:friends /> |
This file contains 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 | |
namespace M9; | |
(new Test(function(M9Test $tester) { | |
if ($tester->is_logged_in()){ | |
$tester->log_out(); | |
$tester->log_in_as("normal"); | |
} | |
})); |
This file contains 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 | |
namespace M9; | |
class Test { | |
function __construct($function) { | |
$object = new M9Test(); | |
$return = call_user_func($function, $object); | |
} | |
} |
This file contains 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
1) Open table "phpfox_app" | |
2) Insert your App | |
3) Add custom JSON in the "data" column | |
Example to add to the <header>... | |
{"header":"<script>alert('Hello World');</script>"} | |
Example to add to the end of the HTML body... | |
{"footer":"<script>alert('Hello World');</script>"} |
This file contains 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
# file: /module/video/include/service/grab.class.php | |
# Look for: | |
if (strpos($sUrl, 'youtube') || (preg_match('/http:\/\/youtu\.be\/(.*)/i', $sUrl, $aMatches) && isset($aMatches[1]))) | |
{ | |
$this->_aRegex = false; | |
$this->_aSites = $this->_aSiteCache; | |
if (isset($aMatches) && $aMatches[1]) | |
{ | |
$sUrl = 'http://www.youtube.com/watch?v=' . $aMatches[1]; |
This file contains 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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteRule ^static/ajax.php index.php | |
RewriteRule ^themes/default/(.*) PF.Base/theme/default/$1 | |
RewriteRule ^(file|static|theme|module)/(.*) PF.Base/$1/$2 | |
RewriteRule ^(apps|themes)/(.*) PF.Site/$1/$2 | |
RewriteCond %{REQUEST_FILENAME} !-f |
This file contains 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
# START PHPfox Rewrite | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^(file)/(.*) PF.Base/$1/$2 | |
RewriteRule ^static/ajax.php index.php | |
RewriteRule ^themes/default/(.*) PF.Base/theme/default/$1 |
This file contains 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 | |
$callback = function(Core\Block $block) { | |
return 'Hello!'; | |
}; | |
new Core\Block('/hello-world', 1, $callback); | |
new Core\Block('/core.index-member', 1, $callback); |
This file contains 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 | |
$block = function(Core\Block $block) { | |
$is = new Core\Is(); | |
$menus = [ | |
[ | |
'module' => 'pages', | |
'perm' => 'pages.can_view_browse_pages', | |
'phrase' => 'Pages or Groups', |
OlderNewer