Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
emanuele45 committed Feb 9, 2013
0 parents commit bdf8485
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Subs-Customize.php
@@ -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
}
19 changes: 19 additions & 0 deletions install.php
@@ -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');
32 changes: 32 additions & 0 deletions package-info.xml
@@ -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>
19 changes: 19 additions & 0 deletions uninstall.php
@@ -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');

0 comments on commit bdf8485

Please sign in to comment.