Skip to content

Instantly share code, notes, and snippets.

@pH-7
Last active October 17, 2016 18:33
Show Gist options
  • Save pH-7/af05df024ff5307412c6d4ee04f0b263 to your computer and use it in GitHub Desktop.
Save pH-7/af05df024ff5307412c6d4ee04f0b263 to your computer and use it in GitHub Desktop.
Script to update pH7CMS from 1.4.2 to 2.0.4
<?php
/*
YOUR PERSONAL CONSTANTS ARE BELOW
...
...
...
*/
// Add it in the end of the file
define('PH7_DOMAIN', $sDomain); // URL domain
--
-- 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
('nudityFilter', 0, '1 = enable | 0 = disable', 'moderation'),
('googleApiKey', '', 'Google Maps API key https://developers.google.com/maps/documentation/javascript/get-api-key', 'api');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment