Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit bdf8485
Showing
4 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
/** | ||
* Customize SMF | ||
* | ||
* @package Customize SMF | ||
* @author emanuele | ||
* @copyright 2013 emanuele, Simple Machines | ||
* @license http://www.simplemachines.org/about/smf/license.php BSD | ||
* | ||
* @version 0.0.1 | ||
*/ | ||
|
||
if (!defined('SMF')) | ||
die('Hacking attempt...'); | ||
|
||
function custsmf_add_menu (&$profile_areas) | ||
{ | ||
// qui metteremo un po' di codice | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
/** | ||
* Customize SMF | ||
* | ||
* @package Customize SMF | ||
* @author emanuele | ||
* @copyright 2013 emanuele, Simple Machines | ||
* @license http://www.simplemachines.org/about/smf/license.php BSD | ||
* | ||
* @version 0.0.1 | ||
*/ | ||
|
||
if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF')) | ||
require_once(dirname(__FILE__) . '/SSI.php'); | ||
elseif (!defined('SMF')) | ||
exit('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.'); | ||
|
||
add_integration_function('integrate_profile_areas', 'custsmf_add_menu'); | ||
add_integration_function('integrate_pre_include', '$sourcedir/Subs-Customize.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?xml version="1.0"?> | ||
<!DOCTYPE package-info SYSTEM "http://www.simplemachines.org/xml/package-info"> | ||
<package-info xmlns="http://www.simplemachines.org/xml/package-info" xmlns:smf="http://www.simplemachines.org/"> | ||
<license> | ||
<!-- | ||
/** | ||
* Customize SMF | ||
* | ||
* @package Customize SMF | ||
* @author emanuele | ||
* @copyright 2013 emanuele, Simple Machines | ||
* @license http://www.simplemachines.org/about/smf/license.php BSD | ||
* | ||
* @version 0.0.1 | ||
*/ | ||
--> | ||
</license> | ||
<id>emanuele:customize_smf</id> | ||
<name>Customize SMF</name> | ||
<version>0.0.1</version> | ||
<type>modification</type> | ||
|
||
<install for="2.0 - 2.0.99"> | ||
<code>install.php</code> | ||
<require-file name="Subs-Customize.php" destination="$sourcedir" /> | ||
</install> | ||
|
||
<uninstall for="2.0 - 2.0.99"> | ||
<code>uninstall.php</code> | ||
<remove-file name="$sourcedir/Subs-Customize.php" /> | ||
</uninstall> | ||
</package-info> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
/** | ||
* Customize SMF | ||
* | ||
* @package Customize SMF | ||
* @author emanuele | ||
* @copyright 2013 emanuele, Simple Machines | ||
* @license http://www.simplemachines.org/about/smf/license.php BSD | ||
* | ||
* @version 0.0.1 | ||
*/ | ||
|
||
if (file_exists(dirname(__FILE__) . '/SSI.php') && !defined('SMF')) | ||
require_once(dirname(__FILE__) . '/SSI.php'); | ||
elseif (!defined('SMF')) | ||
exit('<b>Error:</b> Cannot install - please verify you put this in the same place as SMF\'s index.php.'); | ||
|
||
remove_integration_hook('integrate_profile_areas', 'custsmf_add_menu'); | ||
remove_integration_hook('integrate_pre_include', '$sourcedir/Subs-Customize.php'); |