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
if (document.URL.substr(-6) == 'secret') { | |
document.body.style.setProperty("background-image", "none", "important") | |
document.body.style.setProperty("background-color", "#10FF00", "important") | |
} |
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 | |
if (strlen($property->pro_name) > 75) | |
{ | |
$propertyName = implode(" ", explode( "\n", wordwrap($property->pro_name, 75))).'...'; | |
} | |
else | |
{ | |
$propertyName = $property->pro_name; | |
} | |
?> |
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 | |
file_fix_directory(dirname(__FILE__)); | |
function file_fix_directory($dir, $nomask = array('.', '..')) { | |
if (is_dir($dir)) { | |
// Try to make each directory world writable. | |
if (@chmod($dir, 0755)) { | |
echo "<p>Cambio permessi directory a 0755: " . $dir . "</p>"; | |
} | |
} |
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 | |
defined('_JEXEC') or die('Restricted access'); | |
define('DS', DIRECTORY_SEPARATOR); | |
// Use these variables for direct file access | |
// define('_JEXEC', 1); | |
// define('JPATH_BASE', realpath(dirname(__FILE__))); | |
require_once (JPATH_BASE.DS.'includes'.DS.'defines.php'); | |
require_once (JPATH_BASE.DS.'includes'.DS.'framework.php'); |
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 | |
define('_JEXEC', 1); | |
define('JPATH_BASE', dirname(__FILE__)); | |
require_once(JPATH_BASE . '/includes/defines.php'); | |
require_once(JPATH_BASE . '/includes/framework.php'); | |
echo "<strong>Password: </strong>" . JUserHelper::hashPassword('adam'); | |
?> |
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 | |
/** | |
* Joomla! External authentication script | |
* | |
* @author vdespa | |
* Version 1.0 | |
* | |
* Code adapted from /index.php | |
* | |
* @package Joomla.Site |
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 | |
define( '_JEXEC', 1 ); | |
define('JPATH_BASE', dirname(__FILE__) ); | |
define( 'DS', DIRECTORY_SEPARATOR ); | |
/* Required Files */ | |
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' ); | |
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' ); | |
$app = JFactory::getApplication('site'); |
OlderNewer