Skip to content

Instantly share code, notes, and snippets.

View lianglee's full-sized avatar
🔋
Charging ....

Arsalan Shah lianglee

🔋
Charging ....
View GitHub Profile
@lianglee
lianglee / privacy_change.php
Created May 11, 2023 19:21
components\PrivacyChanger\actions\wall\post\privacy_change.php
<?php
/**
* Open Source Social Network
* @link https://www.opensource-socialnetwork.org/
* @package Privacy Changer
* @author Michael Zülsdorff <[email protected]>
* @copyright (C) Michael Zülsdorff
* @license GNU General Public License https://www.gnu.de/documents/gpl-2.0.en.html
*/
$user = ossn_loggedin_user();
<?php
/**
* Open Source Social Network
* @link https://www.opensource-socialnetwork.org/
* @package Restrict Group Creation
* @author Michael Zülsdorff <[email protected]>
* @copyright (C) Michael Zülsdorff
* @license GNU General Public License https://www.gnu.de/documents/gpl-2.0.en.html
*/
<?php
/**
* Open Source Social Network
*
* @package Open Source Social Network
* @author OSSN Core Team <[email protected]>
* @copyright 2014-2017 OpenTeknik LLC
* @license Open Source Social Network License (OSSN LICENSE) http://www.opensource-socialnetwork.org/licence
* @link https://www.opensource-socialnetwork.org/
*/
@lianglee
lianglee / test.php
Last active December 6, 2021 16:37
fb
<?php
switch(date('i')){
case 0:
case 15:
case 30:
case 45:
$x = 0;
break;
case 5:
@lianglee
lianglee / FA5.json
Created September 30, 2021 06:17
Font Awesome 5 JSON ICONS
["fas fa-address-book","fas fa-address-card","fas fa-adjust","fas fa-align-center","fas fa-align-justify","fas fa-align-left","fas fa-align-right","fas fa-allergies","fas fa-ambulance","fas fa-american-sign-language-interpreting","fas fa-anchor","fas fa-angle-double-down","fas fa-angle-double-left","fas fa-angle-double-right","fas fa-angle-double-up","fas fa-angle-down","fas fa-angle-left","fas fa-angle-right","fas fa-angle-up","fas fa-archive","fas fa-arrow-alt-circle-down","fas fa-arrow-alt-circle-left","fas fa-arrow-alt-circle-right","fas fa-arrow-alt-circle-up","fas fa-arrow-circle-down","fas fa-arrow-circle-left","fas fa-arrow-circle-right","fas fa-arrow-circle-up","fas fa-arrow-down","fas fa-arrow-left","fas fa-arrow-right","fas fa-arrow-up","fas fa-arrows-alt","fas fa-arrows-alt-h","fas fa-arrows-alt-v","fas fa-assistive-listening-systems","fas fa-asterisk","fas fa-at","fas fa-audio-description","fas fa-backward","fas fa-balance-scale","fas fa-ban","fas fa-band-aid","fas fa-barcode","fas fa-bars","fas
@lianglee
lianglee / custom_admin_ossn_com.php
Created August 11, 2021 05:54
Custom administrator page URL
<?php
function add_custom_any_existing_handler_page_inot(){
if(ossn_isAdminLoggedin()){
ossn_add_hook('page', 'load', 'add_custom_any_existing_handler_page');
ossn_add_hook('page', 'override:view', 'add_custom_any_existing_handler_override');
}
}
function add_custom_any_existing_handler_override($hook, $type, $return, $params){
if(isset($params['handler']) && !empty($params['handler']) && $params['handler'] == 'administrator' && $params['page'][0] == 'custompage'){
return true;
//<script>
$(document).ready(function() {
var comRightColumnFocusizerPosition = $(window).scrollTop();
var comRightColumnFocusizerWidth = $(window).width();
var comRightColumnFocusizerOldFix = 0;
var comRightColumnFocusizerPushed = false;
var themeAwesome = false;
if($('#navbarNavDropdown').length) {
themeAwesome = true;
@lianglee
lianglee / page.php
Created June 3, 2021 15:19
themes\Awesome\plugins\default\theme\page\page.php
<?php
/**
* Open Source Social Network
*
* @package (softlab24.com).ossn
* @author OSSN Core Team <[email protected]>
* @copyright 2014-2017 SOFTLAB24 LIMITED
* @license Open Source Social Network License (OSSN LICENSE) http://www.opensource-socialnetwork.org/licence
* @link https://www.opensource-socialnetwork.org/
*/
@lianglee
lianglee / ossn.nl.php
Created October 1, 2020 17:39
Example for components/Birthdays/ossn.nl.php Change string after => into your language
<?php
/**
* Open Source Social Network
*
* @packageOpen Source Social Network
* @author Open Social Website Core Team <[email protected]>
* @copyright 2014 iNFORMATIKON TECHNOLOGIES
* @license General Public Licence http://www.opensource-socialnetwork.org/licence
* @link http://www.opensource-socialnetwork.org/licence
*/
@lianglee
lianglee / errors.php
Created September 16, 2020 14:03
/system/handlers/errors.php replace it
<?php
/**
* Open Source Social Network
*
* @package (softlab24.com).ossn
* @author OSSN Core Team <[email protected]>
* @copyright (C) SOFTLAB24 LIMITED
* @license Open Source Social Network License (OSSN LICENSE) http://www.opensource-socialnetwork.org/licence
* @link https://www.opensource-socialnetwork.org/
*/