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
#301 Redirects for .htaccess | |
#Redirect a single page: | |
Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
#Redirect an entire site: | |
Redirect 301 / http://www.domain.com/ | |
#Redirect an entire site to a sub folder | |
Redirect 301 / http://www.domain.com/subfolder/ |
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
//<? | |
/** | |
* BAH - (Anti Hacker) created By Bumkaka | |
* modify by Agel_Nash | |
* | |
* @category plugin | |
* @version v 1.4 | |
* @internal @events OnWebPageInit | |
* @internal @legacy_names BAH | |
* @internal @installset base, sample |
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
/** | |
* Convert iframes to divs via ajax iframe_to_div jQuery Plugin | |
* | |
* Uses javascript to replace iframes with divs containing their source content | |
* by loading via ajax. If you use this to load vanilla html snippets, this has the | |
* effect of applying the page's css to your vanilla html snippet. | |
* | |
* This will not work if the iframe src is not a relative link due to ajax restrictions across domains. | |
* | |
* As an example: |
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
/* ======================================================================== | |
* Bootstrap: carousel.js v3.0.0 | |
* http://twbs.github.com/bootstrap/javascript.html#carousel | |
* ======================================================================== | |
* Copyright 2012 Twitter, Inc. | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* |
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 | |
/* | |
* WP Import, Ver 2015.01.04 | |
* (C) 2015 by ZoRg Soft | |
* MODx Notes - WP Import модуь для импорта записей из Wordpress | |
* http://agarkov.org/modx-x/evo-wpimport | |
*/ | |
$theme = $modx->config['manager_theme']; | |
$basePath = $modx->config['base_path']; |
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 | |
/* | |
* WP Import, Ver 2015.01.04 | |
* (C) 2015 by ZoRg Soft | |
* MODx Notes - WP Import модуь для импорта записей из Wordpress | |
* http://agarkov.org/modx-x/evo-wpimport | |
*/ | |
$theme = $modx->config['manager_theme']; | |
$basePath = $modx->config['base_path']; |
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
Gist title: "List GitHub Projects Using jQuery" | |
Summary: An example JavaScript program using jQuery to get a list of GitHub projects. | |
Original source: http://aboutcode.net/2010/11/11/list-github-projects-using-javascript.html |
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 | |
// evoSystemInfo 1.3 | |
// Snippet displaying EVO system info and some actions on the frontend. | |
// Call it uncached [!evoSystemInfo!] before </body> tag in your template. | |
// Dark theme: [!evoSystemInfo? &theme=`dark`!] (EVO 1.4.4 or later required) | |
// author: Piotr Matysiak webready.pl | |
if ( isset($_SESSION['mgrValidated']) ) { | |
$docId = $modx->documentIdentifier; | |
$docTemplateId = $modx->documentObject['template']; |