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 | |
/** | |
* @desc This program was amended by Pierre-Henry. | |
* @author SORIA Pierre-Henry <pierrehs@hotmail.com> | |
* @version 2.1.4 (Last update 2012/06/21). | |
* | |
* | |
* UTF-8 friendly replacement functions - v0.2 | |
* Copyright (C) 2004-2006 Niels Leenheer & Andy Matsubara | |
* |
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
-- | |
-- Author: Pierre-Henry Soria <hello@ph7cms.com> | |
-- Copyright: (c) 2016, Pierre-Henry Soria. All Rights Reserved. | |
-- License: GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory. | |
-- | |
----- Update Two-Factor authentication feature | |
ALTER TABLE pH7_Admins ADD COLUMN isTwoFactorAuth enum('1','0') DEFAULT '0'; | |
ALTER TABLE pH7_Admins ADD COLUMN twoFactorAuthSecret varchar(40) DEFAULT NULL; |
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 | |
/* | |
YOUR PERSONAL CONSTANTS ARE BELOW | |
... | |
... | |
... | |
*/ | |
// Add it in the end of the file |
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
-- | |
-- Author: Pierre-Henry Soria <ph7software@gmail.com> | |
-- Copyright: (c) 2016, Pierre-Henry Soria. All Rights Reserved. | |
-- License: GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory. | |
-- | |
--- Replace 'PH7_' by your prefix set in "~/_protected/app/configs/config.ini" [database] prefix var | |
INSERT INTO PH7_Settings (`name`, value, `desc`, `group`) VALUES | |
('numberProfileSplashPage', 44, 'Number of profiles to display on the splash homepage', 'general'); |
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
#!/bin/bash | |
## | |
# Author: Pierre-Henry Soria <ph7software@gmail.com> | |
# Copyright: (c) 2012-2017, Pierre-Henry Soria. All Rights Reserved. | |
# License: GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory. | |
## | |
accepted_ext="-name '*.php' -or -name '*.css' -or -name '*.js' -or -name '*.html' -or -name '*.xml' -or -name '*.xsl' -or -name '*.xslt' -or -name '*.json' -or -name '*.yml' -or -name '*.tpl' -or -name '*.phs' -or -name '*.ph7' -or -name '*.sh' -or -name '*.sql' -or -name '*.ini' -or -name '*.md' -or -name '*.markdown' -or -name '.htaccess'" | |
exec="find . -type f \( $accepted_ext \) -print0 | xargs -0 perl -wi -pe" |
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
-- | |
-- Author: Pierre-Henry Soria <hello@ph7cms.com> | |
-- Copyright: (c) 2016, Pierre-Henry Soria. All Rights Reserved. | |
-- License: GNU General Public License; https://www.gnu.org/licenses/gpl-3.0.en.html | |
-- | |
--- Replace 'PH7_' by your prefix set in "~/_protected/app/configs/config.ini" [database] prefix | |
INSERT INTO PH7_Settings (`name`, value, `desc`, `group`) VALUES | |
('usersBlock', 1, '0 to disable or 1 to enable the profile photos on the homepage', 'homepage'), |
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
-- | |
-- Author: Pierre-Henry Soria <hello@ph7cms.com> | |
-- Copyright: (c) 2016, Pierre-Henry Soria. All Rights Reserved. | |
-- License: GNU General Public License; https://www.gnu.org/licenses/gpl-3.0.en.html | |
-- | |
--- Replace 'PH7_' by your prefix set in "~/_protected/app/configs/config.ini" [database] prefix | |
ALTER TABLE PH7_SysModsEnabled ADD COLUMN moduleTitle varchar(50) NOT NULL; |
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
-- | |
-- Author: Pierre-Henry Soria <ph7software@gmail.com> | |
-- Copyright: (c) 2013-2016, Pierre-Henry Soria. All Rights Reserved. | |
-- License: GNU General Public License; See PH7.LICENSE.txt and PH7.COPYRIGHT.txt in the root directory. | |
-- | |
--- Replace 'PH7_' by your prefix set in "~/_protected/app/configs/config.ini" [database] prefix var | |
UPDATE PH7_Settings SET `name` = 'bgProfileManualApproval' WHERE `name` = 'profileBackgroundManualApproval'; |
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
-- | |
-- Author: Pierre-Henry Soria <hello@ph7cms.com> | |
-- Copyright: (c) 2017, Pierre-Henry Soria. All Rights Reserved. | |
-- License: GNU General Public License; https://www.gnu.org/licenses/gpl-3.0.en.html | |
-- | |
--- Replace 'PH7_' by your prefix set in "~/_protected/app/configs/config.ini" [database] prefix | |
INSERT INTO PH7_Settings (`name`, value, `desc`, `group`) VALUES |
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
-- | |
-- Author: Pierre-Henry Soria <hello@ph7cms.com> | |
-- Copyright: (c) 2017, Pierre-Henry Soria. All Rights Reserved. | |
-- License: GNU General Public License; https://www.gnu.org/licenses/gpl-3.0.en.html | |
-- | |
--- Replace 'PH7_' by your prefix set in "~/_protected/app/configs/config.ini" [database] prefix | |
INSERT INTO PH7_Settings (`name`, value, `desc`, `group`) VALUES |
OlderNewer