Skip to content

Instantly share code, notes, and snippets.

View RaymondBenc's full-sized avatar

Raymond Benc RaymondBenc

View GitHub Profile
@RaymondBenc
RaymondBenc / redis.sett.php
Created March 31, 2016 07:50
redis.sett.php
<?php
return [
'host' => 'tcp://127.0.0.1:6379'
];
M PF.Base/include/checksum/md5
M PF.Base/include/library/phpfox/image/helper.class.php
M PF.Base/include/library/phpfox/phpfox/phpfox.class.php
M PF.Base/include/library/phpfox/search/search.class.php
M PF.Base/module/admincp/include/component/controller/app/add.class.php
M PF.Base/module/admincp/include/component/controller/store/verify.class.php
M PF.Base/module/admincp/include/service/module/process.class.php
M PF.Base/module/core/include/component/block/template-menu.class.php
M PF.Base/module/core/template/bootstrap/block/template-menu.html.php
M PF.Base/module/feed/include/service/feed.class.php
M .gitignore
M PF.Base/composer.json
M PF.Base/include/checksum/md5
M PF.Base/include/init.inc.php
M PF.Base/include/library/phpfox/ajax/ajax.class.php
M PF.Base/include/library/phpfox/cache/abstract.class.php
M PF.Base/include/library/phpfox/cache/storage/file.class.php
M PF.Base/include/library/phpfox/cdn/cdn.class.php
M PF.Base/include/library/phpfox/database/driver/mysql.class.php
M PF.Base/include/library/phpfox/database/driver/mysqli.class.php
@RaymondBenc
RaymondBenc / 3.9.txt
Created March 3, 2016 11:17
phpFox 3.9 Updated Files
.gitignore
README.md
upload/file/.gitignore
upload/file/attachment/index.html
upload/file/cache/index.html
upload/file/css/index.html
upload/file/gzip/index.html
upload/file/index.html
upload/file/log/index.html
upload/file/music/index.html
@RaymondBenc
RaymondBenc / start.php
Created February 18, 2016 12:53
Sample Start.php for Themes
<?php
block(1, 'core.index-member', function() {
return view('@Flavor/test.html');
});
block(1, 'core.index-member', function() {
echo "Hello World!";
<?php
$block = function(Core\Block $block) {
$is = new Core\Is();
$menus = [
[
'module' => 'pages',
'perm' => 'pages.can_view_browse_pages',
'phrase' => 'Pages or Groups',
<?php
$callback = function(Core\Block $block) {
return 'Hello!';
};
new Core\Block('/hello-world', 1, $callback);
new Core\Block('/core.index-member', 1, $callback);
# 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
@RaymondBenc
RaymondBenc / .htaccess
Created May 27, 2015 14:57
PHPfox v4 .htaccess
<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
@RaymondBenc
RaymondBenc / grab.class.php
Last active August 29, 2015 14:21
YouTube Device Support fix for PHPfox v3
# 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];