Skip to content

Instantly share code, notes, and snippets.

View pH-7's full-sized avatar
:octocat:
πŸ’‘Creative Engineer πŸš€ Enjoying Learning New Exciting Things! πŸ˜‹ =>My Way of Life 🏝

β™š PH⑦ de Soriaβ„’β™› pH-7

:octocat:
πŸ’‘Creative Engineer πŸš€ Enjoying Learning New Exciting Things! πŸ˜‹ =>My Way of Life 🏝
View GitHub Profile
@pH-7
pH-7 / upgrade-ph7cms-3.1.0-to-5.0.0.sql
Last active June 25, 2017 15:53
SQL script to update pH7CMS from version 3.1.0 to 5.0.0
--
-- Author: Pierre-Henry Soria <[email protected]>
-- 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;
@pH-7
pH-7 / upgrade-ph7cms-5.0.0-to-6.0.0.sql
Last active March 7, 2017 22:32
SQL script to update pH7CMS from version 5.0.0 to 6.0.0
--
-- Author: Pierre-Henry Soria <[email protected]>
-- 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'),
@pH-7
pH-7 / upgrade-ph7cms-2.0.4-TO-3.1.*.sql
Last active October 17, 2016 18:33
SQL script to update pH7CMS from 2.0.4 to 3.1.*
--
-- Author: Pierre-Henry Soria <[email protected]>
-- 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');
@pH-7
pH-7 / _constants.php
Last active October 17, 2016 18:33
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
@pH-7
pH-7 / upgrade-ph7cms-1.3.9-to-1.4.*.sql
Last active August 13, 2016 17:34
Update SQL file for the new IM payment integration & Two-Factor authentication feature
--
-- Author: Pierre-Henry Soria <[email protected]>
-- 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;
@pH-7
pH-7 / upgrade-from-ph7cms-1.3.6-to-1.3.7.sql
Last active June 25, 2017 15:56
Update SQL DB from pH7CMS 1.3.6 to pH7CMS 1.3.7
--
-- Author: Pierre-Henry Soria <[email protected]>
-- 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';
@pH-7
pH-7 / wp-datas.php
Last active April 14, 2024 03:38
This is used by hackers wanna hack Wordpress sites. With this file, most of the time hackers add HTML files to promote them (usually Chinese posts/products) on your server, change the Google Webmaster account and add new sitemap file (containing the HTML files added) to request new indexation of the compromising site by Google, etc. This can be …
<?php
/**
* This is used by hackers wanna hack Wordpress sites. With this file, most of the time hackers add HTML files to promote
* them (usually Chinese posts/products) on your server, change the Google Webmaster account and add new sitemap file
* (containing the HTML files added) to request new indexation of the compromising site by Google, etc.
* This can be very dangerous and destroy your whole reputation.
* Most of the time hackers are able to upload this file on crappy (most are!) sharing Web host.
* Be really careful and scan your site + overwritten all files by new ones
*/
header("Content-type:text/html;charset=utf-8");
@pH-7
pH-7 / mylocalserverip.sh
Last active June 2, 2024 21:14
Get my server local IP (saver time if you change very often your machine) - https://github.com/HiDeaUp/hideaup.github.io
ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{ print $1}'
@pH-7
pH-7 / udemy-full-discount.py
Last active August 25, 2024 23:30
Get all Udemy Courses with 100% off Coupons thanks to growthcoupon.com & Importer.io
##########
##
## Get all Udemy Courses with 100% off Coupons thanks to growthcoupon.com & Importer.io
##
##########
from json import loads
from bs4 import BeautifulSoup
import mechanize
<?php
$sPhoneNum = '**********'; // Le numΓ©ro de tΓ©lΓ©phone qui recevra l'SMS (avec le prΓ©fixe, ex: +33)
$aProviders = array('vtext.com', 'tmomail.net', 'txt.att.net', 'mobile.pinger.com', 'page.nextel.com');
foreach ($aProviders as $sProvider)
{
if (mail($sPhoneNum . '@' . $sProvider, '', 'Ce texto a Γ©tΓ© envoyΓ© avec PHP, tout simplement !'))
{
// C'est bon, l'SMS a correctement Γ©tΓ© envoyΓ© avec le fournissuer
break;