This file contains hidden or 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 | |
| /** | |
| * 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/ | |
| * |
This file contains hidden or 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 | |
| /** | |
| * 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/ | |
| * |
This file contains hidden or 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
| <div id="google_translate_element"></div> | |
| <script type="text/javascript"> | |
| function googleTranslateElementInit() { | |
| new google.translate.TranslateElement( | |
| {pageLanguage: 'en'}, | |
| 'google_translate_element' | |
| ); | |
| } | |
| </script> |
This file contains hidden or 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
| //<script> | |
| Ossn.isInViewPort = function($params) { | |
| var params = $params['params']; | |
| var callback = $params['callback']; | |
| if (!params) { | |
| params = {}; | |
| } | |
| if (!callback) { | |
| callback = function() {}; | |
| } |
This file contains hidden or 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 | |
| $json = json_decode('[{"username": "fiona5000"}, {"username": "minarosalaursenan"}, {"username": "arthur54321nu"}, {"username": "benja_manden"}, {"username": "tobi2009_sep1"}, {"username": "vanessalabban"}, {"username": "trilleogtrym"}, {"username": "laursenalberte"}, {"username": "alba_er_smukkere_end_dig"}, {"username": "valdemar_pro"}, {"username": "billieeilish823"}, {"username": "fridas_kreafil_og_andet"}, {"username": "dianachristensen5"}, {"username": "kaspervejby"}, {"username": "emmalarsen16"}, {"username": "livamysling09"}, {"username": "victoriavilladsen2005"}, {"username": "monkeymaster123xd"}, {"username": "cooper.allen"}, {"username": "moustafanahi"}, {"username": "jasmin_gacha_marie"}, {"username": "natalia_ponturo"}, {"username": "ericbaker829"}, {"username": "user13836723981731"}]', true); | |
| if($json){ | |
| foreach($json as $item){ | |
| echo $item['username']; | |
| } | |
| } |
This file contains hidden or 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
| $en = array( | |
| 'ossnsmilies' => 'Smilies', | |
| 'ossn:smilies:admin:settings:compat:title' => 'Backward compatibility mode', | |
| 'ossn:smilies:admin:settings:compat:note' => '<i class="fa fa-info-circle"></i> | |
| Leave this mode <b><u>disabled</u></b> when starting a new social network from scratch with Ossn 4.5 and higher.<br> | |
| A complete set of more than 1000 unicode emojis is available now, thus using old style smilies like :) has become obsolete.<br> | |
| With backward compatibility mode <b><u>enabled</u></b> the following list of old style smilies will be replaced as before:<br> | |
| :(🙁 :)🙂 =D😀 ;)😉 :p😛 8)😎 o.O😯 :O😲 :*😘 a:😇 :h:❤ 3:|😈 u:😠 :v👻 g:😟 c:😪<br> | |
| <br>', | |
| 'ossn:smilies:admin:settings:close_anywhere:title' => 'Smiley box |
This file contains hidden or 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
| 'group:delete:cover' => 'Delete Cover', | |
| 'group:delete:cover:error' => 'An error occurred while deleting the cover image', | |
| 'group:delete:cover:success' => 'The cover image was successfully deleted', | |
| 'ossn:smilies:admin:settings:compat:off' => 'disabled', | |
| 'ossn:smilies:admin:settings:compat:on' => 'enabled', | |
| 'ossn:smilies:admin:settings:close_anywhere:title' => 'Close box on clicking anywhere', | |
| 'ossn:smilies:admin:settings:close_anywhere:note' => '<i class="fa fa-info-circle"></i> closes the smiley selector box by clicking anywhere on the page<br><br>', |
This file contains hidden or 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
| .ossn-ad-item { | |
| border-bottom: 1px solid #eee; | |
| margin-bottom: 10px; | |
| word-break: break-word; | |
| } |
This file contains hidden or 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 | |
| /** | |
| * 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/ | |
| */ |
This file contains hidden or 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 | |
| function ossn_friendship_time_init(){ | |
| ossn_add_hook('ossn/class/register/method', 'OssnUser:getFriendshipTime', 'friendship_time_private_function'); | |
| } | |
| function friendship_time_private_function($hook, $type, $user, array $params = array()){ | |
| $freindships = new stdClass; | |
| if(isset($user->guid)) { | |
| $user = $user->guid; | |
| } | |
| $default = array( |