diff --git a/adult_smile.tgz b/adult_smile.tgz index 04ef72fb..67e2a31e 100644 Binary files a/adult_smile.tgz and b/adult_smile.tgz differ diff --git a/blockem.tgz b/blockem.tgz index c1842e52..dd092204 100755 Binary files a/blockem.tgz and b/blockem.tgz differ diff --git a/blockem/blockem.php b/blockem/blockem.php index 5ff87c58..9134bd0b 100755 --- a/blockem/blockem.php +++ b/blockem/blockem.php @@ -109,7 +109,7 @@ function blockem_prepare_body(&$a,&$b) { function blockem_display_item(&$a,&$b) { if(strstr($b['output']['body'],'id="blockem-wrap-')) - $b['output']['thumb'] = $a->get_baseurl() . "/images/person-80.jpg"; + $b['output']['thumb'] = $a->get_baseurl() . "/images/default-profile-sm.jpg"; } diff --git a/facebook.tgz b/facebook.tgz index 18392c78..b1db063b 100644 Binary files a/facebook.tgz and b/facebook.tgz differ diff --git a/facebook/facebook.php b/facebook/facebook.php index 24632240..9c8c8f08 100755 --- a/facebook/facebook.php +++ b/facebook/facebook.php @@ -46,12 +46,6 @@ * authenticate to your site to establish identity. We will address this * in a future release. */ - - /** TODO - * - Implement a method for the administrator to delete all configuration data the plugin has created, - * e.g. the app_access_token - * - Implement a configuration option to set the polling interval system-wide - */ define('FACEBOOK_MAXPOSTLEN', 420); @@ -62,8 +56,9 @@ function facebook_install() { register_hook('jot_networks', 'addon/facebook/facebook.php', 'facebook_jot_nets'); register_hook('connector_settings', 'addon/facebook/facebook.php', 'facebook_plugin_settings'); register_hook('cron', 'addon/facebook/facebook.php', 'facebook_cron'); - register_hook('enotify', 'addon/facebook/facebook.php', 'facebook_enotify'); register_hook('queue_predeliver', 'addon/facebook/facebook.php', 'fb_queue_hook'); + + if (get_config('facebook', 'realtime_active') == 1) facebook_subscription_add_users(); // Restore settings, if the plugin was installed before } @@ -73,12 +68,13 @@ function facebook_uninstall() { unregister_hook('jot_networks', 'addon/facebook/facebook.php', 'facebook_jot_nets'); unregister_hook('connector_settings', 'addon/facebook/facebook.php', 'facebook_plugin_settings'); unregister_hook('cron', 'addon/facebook/facebook.php', 'facebook_cron'); - unregister_hook('enotify', 'addon/facebook/facebook.php', 'facebook_enotify'); unregister_hook('queue_predeliver', 'addon/facebook/facebook.php', 'fb_queue_hook'); // hook moved unregister_hook('post_local_end', 'addon/facebook/facebook.php', 'facebook_post_hook'); unregister_hook('plugin_settings', 'addon/facebook/facebook.php', 'facebook_plugin_settings'); + + if (get_config('facebook', 'realtime_active') == 1) facebook_subscription_del_users(); } @@ -154,12 +150,8 @@ function facebook_init(&$a) { $s = fetch_url('https://graph.facebook.com/me/feed?access_token=' . $access_token); if($s) { $j = json_decode($s); - if (isset($j->data)) { - logger('facebook_init: wall: ' . print_r($j,true), LOGGER_DATA); - fb_consume_stream($uid,$j,($private_wall) ? false : true); - } else { - logger('facebook_init: wall: got no data from Facebook: ' . print_r($j,true), LOGGER_NORMAL); - } + logger('facebook_init: wall: ' . print_r($j,true), LOGGER_DATA); + fb_consume_stream($uid,$j,($private_wall) ? false : true); } } @@ -597,7 +589,7 @@ function facebook_cron($a,$b) { if(strlen($a->config['admin_email']) && !get_config('facebook', 'realtime_err_mailsent')) { $res = mail($a->config['admin_email'], t('Problems with Facebook Real-Time Updates'), - "Hi!\n\nThere's a problem with the Facebook Real-Time Updates that cannot be solved automatically. Maybe an permission issue?\n\nThis e-mail will only be sent once.", + "Hi!\n\nThere's a problem with the Facebook Real-Time Updates that cannob be solved automatically. Maybe an permission issue?\n\nThis e-mail will only be sent once.", 'From: ' . t('Administrator') . '@' . $_SERVER['SERVER_NAME'] . "\n" . 'Content-type: text/plain; charset=UTF-8' . "\n" . 'Content-transfer-encoding: 8bit' @@ -911,7 +903,6 @@ function facebook_post_hook(&$a,&$b) { dbesc('fb::' . $retj->id), intval($b['id']) ); - del_pconfig($b['uid'], 'facebook', 'session_expired_mailsent'); } else { if(! $likes) { @@ -920,25 +911,6 @@ function facebook_post_hook(&$a,&$b) { add_to_queue($a->contact,NETWORK_FACEBOOK,$s); notice( t('Facebook post failed. Queued for retry.') . EOL); } - - if (isset($retj->error) && $retj->error->type == "OAuthException" && $retj->error->code == 190) { - logger('Facebook session has expired due to changed password.', LOGGER_DEBUG); - if (!get_pconfig($b['uid'], 'facebook', 'session_expired_mailsent')) { - require_once('include/enotify.php'); - - $r = q("SELECT * FROM `user` WHERE `uid` = %d LIMIT 1", intval($b['uid']) ); - notification(array( - 'uid' => $b['uid'], - 'type' => NOTIFY_SYSTEM, - 'system_type' => 'facebook_connection_invalid', - 'language' => $r[0]['language'], - 'to_name' => $r[0]['username'], - 'to_email' => $r[0]['email'], - )); - - set_pconfig($b['uid'], 'facebook', 'session_expired_mailsent', '1'); - } - } } logger('Facebook post returns: ' . $x, LOGGER_DEBUG); @@ -948,13 +920,6 @@ function facebook_post_hook(&$a,&$b) { } } -function facebook_enotify(&$app, &$data) { - if (x($data, 'params') && $data['params']['type'] == NOTIFY_SYSTEM && x($data['params'], 'system_type') && $data['params']['system_type'] == 'facebook_connection_invalid') { - $data['itemlink'] = '/facebook'; - $data['epreamble'] = $data['preamble'] = t('Your Facebook connection became invalid. Please Re-authenticate.'); - $data['subject'] = t('Facebook connection became invalid'); - } -} function facebook_post_local(&$a,&$b) { @@ -1053,23 +1018,15 @@ function fb_consume_all($uid) { $s = fetch_url('https://graph.facebook.com/me/feed?access_token=' . $access_token); if($s) { $j = json_decode($s); - if (isset($j->data)) { - logger('fb_consume_stream: wall: ' . print_r($j,true), LOGGER_DATA); - fb_consume_stream($uid,$j,($private_wall) ? false : true); - } else { - logger('fb_consume_stream: wall: got no data from Facebook: ' . print_r($j,true), LOGGER_NORMAL); - } + logger('fb_consume_stream: wall: ' . print_r($j,true), LOGGER_DATA); + fb_consume_stream($uid,$j,($private_wall) ? false : true); } } $s = fetch_url('https://graph.facebook.com/me/home?access_token=' . $access_token); if($s) { $j = json_decode($s); - if (isset($j->data)) { - logger('fb_consume_stream: feed: ' . print_r($j,true), LOGGER_DATA); - fb_consume_stream($uid,$j,false); - } else { - logger('fb_consume_stream: feed: got no data from Facebook: ' . print_r($j,true), LOGGER_NORMAL); - } + logger('fb_consume_stream: feed: ' . print_r($j,true), LOGGER_DATA); + fb_consume_stream($uid,$j,false); } } diff --git a/frown.tgz b/frown.tgz deleted file mode 100644 index 6a2343f0..00000000 Binary files a/frown.tgz and /dev/null differ diff --git a/frown/frown.css b/frown/frown.css deleted file mode 100755 index 3690b62a..00000000 --- a/frown/frown.css +++ /dev/null @@ -1,14 +0,0 @@ - - - -#frown-enable-label { - float: left; - width: 200px; - margin-bottom: 25px; -} - -#frown-checkbox { - float: left; -} - - diff --git a/frown/frown.php b/frown/frown.php deleted file mode 100755 index 003039df..00000000 --- a/frown/frown.php +++ /dev/null @@ -1,86 +0,0 @@ - - * - * - */ - - -function frown_install() { - - register_hook('plugin_settings', 'addon/frown/frown.php', 'frown_settings'); - register_hook('plugin_settings_post', 'addon/frown/frown.php', 'frown_settings_post'); - - logger("installed frown"); -} - - -function frown_uninstall() { - - unregister_hook('plugin_settings', 'addon/frown/frown.php', 'frown_settings'); - unregister_hook('plugin_settings_post', 'addon/frown/frown.php', 'frown_settings_post'); - - - logger("removed frown"); -} - - - -/** - * - * Callback from the settings post function. - * $post contains the $_POST array. - * We will make sure we've got a valid user account - * and if so set our configuration setting for this person. - * - */ - -function frown_settings_post($a,$post) { - if(! local_user() || (! x($_POST,'frown-submit'))) - return; - set_pconfig(local_user(),'system','no_smilies',intval($_POST['frown'])); - - info( t('Frown settings updated.') . EOL); -} - - -/** - * - * Called from the Plugin Setting form. - * Add our own settings info to the page. - * - */ - - - -function frown_settings(&$a,&$s) { - - if(! local_user()) - return; - - /* Add our stylesheet to the page so we can make our settings look nice */ - - $a->page['htmlhead'] .= '' . "\r\n"; - - /* Get the current state of our config variable */ - - $enabled = get_pconfig(local_user(),'system','no_smilies'); - $checked = (($enabled) ? ' checked="checked" ' : ''); - - /* Add some HTML to the existing form */ - - $s .= '
'; - $s .= '

' . t('Frown Settings') . '

'; - $s .= '
'; - $s .= ''; - $s .= ''; - $s .= '
'; - - /* provide a submit button */ - - $s .= '
'; - -} diff --git a/ijpost.tar.gz b/ijpost.tar.gz new file mode 100644 index 00000000..4c67d491 Binary files /dev/null and b/ijpost.tar.gz differ diff --git a/ijpost.tgz b/ijpost.tgz deleted file mode 100644 index 555e0602..00000000 Binary files a/ijpost.tgz and /dev/null differ diff --git a/page.tgz b/page.tgz deleted file mode 100644 index aebbe4dd..00000000 Binary files a/page.tgz and /dev/null differ diff --git a/page/page.php b/page/page.php deleted file mode 100755 index 2a65cab8..00000000 --- a/page/page.php +++ /dev/null @@ -1,60 +0,0 @@ - - * based on pages plugin by - * Author: Michael Vogel - * - */ - -function page_install() { - register_hook('page_end', 'addon/page/page.php', 'page_page_end'); -} - -function page_uninstall() { - unregister_hook('page_end', 'addon/page/page.php', 'page_page_end'); -} - - -function page_getpage($uid) { - - - $pagelist = array(); - - $contacts = q("SELECT `id`, `url`, `name`, `micro`FROM `contact` - WHERE `network`= 'dfrn' AND `forum` = 1 AND `uid` = %d", - intval($uid) - ); - - $page = array(); - - // Look if the profile is a community page - foreach($contacts as $contact) { - $page[] = array("url"=>$contact["url"], "name"=>$contact["name"], "id"=>$contact["id"], "micro"=>$contact['micro']); - } - return($page); -} - -function page_page_end($a,&$b) { - // Only move on if if it's the "network" module and there is a logged on user - if (($a->module != "network") OR ($a->user['uid'] == 0)) - return; - - $page = '
-
-

'.t("Community Pages").'

-
"; - if (sizeof($contacts) > 0) - $a->page['aside'] = $page . $a->page['aside']; -} -?> diff --git a/rememberoid/rememberoid.php b/rememberoid/rememberoid.php new file mode 100644 index 00000000..36f42c36 --- /dev/null +++ b/rememberoid/rememberoid.php @@ -0,0 +1,44 @@ + + */ + + +function rememberoid_install(){ + register_hook('init_1','addon/rememberoid/rememberoid.php','rememberoid_init'); + register_hook('logging_out','addon/rememberoid/rememberoid.php','rememberoid_logout'); + register_hook('login_hook','addon/rememberoid/rememberoid.php','rememberoid_form'); +} + +function rememberoid_uninstall(){ + unregister_hook('init_1','addon/rememberoid/rememberoid.php','rememberoid_init'); + unregister_hook('logging_out','addon/rememberoid/rememberoid.php','rememberoid_logout'); + unregister_hook('login_hook','addon/rememberoid/rememberoid.php','rememberoid_form'); +} + +function rememberoid_init(&$a) { + if (x($_COOKIE, "remember_oid") && !x($_SESSION['openid']) && !x($_SESSION,'authenticated') && !x($_POST,'auth-params') && $a->module === 'home' ){ + $_POST['openid_url'] = $_COOKIE["remember_oid"]; + $_POST['auth-params'] = 1; + } + if (x($_POST,'auth-params') && $_POST['openid_url'] && $_POST['openid_url']!="" && $_POST['remember_oid']){ + setcookie('remember_oid', $_POST['openid_url'], time()+60*60*24*30, "/"); + } +} + +function rememberoid_logout(&$a) { + setcookie("rembember_oid", "", time()-3600); +} + +function rememberoid_form(&$a, &$o){ + $tpl = get_markup_template("field_checkbox.tpl"); + $html = replace_macros($tpl, array( + '$field' => array('remember_oid', t("Autologin with this OpenId"), false,''), + )); + + $o = preg_replace("|
|", "
".$html, $o); + +} diff --git a/smiley_pack.tgz b/smiley_pack.tgz deleted file mode 100644 index 384c6b9b..00000000 Binary files a/smiley_pack.tgz and /dev/null differ diff --git a/smiley_pack/icons/animals/elephant.gif b/smiley_pack/icons/animals/elephant.gif deleted file mode 100644 index 4311e97d..00000000 Binary files a/smiley_pack/icons/animals/elephant.gif and /dev/null differ diff --git a/smiley_pack/icons/animals/fish.gif b/smiley_pack/icons/animals/fish.gif deleted file mode 100644 index 3a7a584b..00000000 Binary files a/smiley_pack/icons/animals/fish.gif and /dev/null differ diff --git a/smiley_pack/icons/animals/giraffe.gif b/smiley_pack/icons/animals/giraffe.gif deleted file mode 100644 index 4c95ea4c..00000000 Binary files a/smiley_pack/icons/animals/giraffe.gif and /dev/null differ diff --git a/smiley_pack/icons/animals/pig.gif b/smiley_pack/icons/animals/pig.gif deleted file mode 100644 index bdc68e83..00000000 Binary files a/smiley_pack/icons/animals/pig.gif and /dev/null differ diff --git a/smiley_pack/icons/confused/dazed.gif b/smiley_pack/icons/confused/dazed.gif deleted file mode 100644 index f5e7ec26..00000000 Binary files a/smiley_pack/icons/confused/dazed.gif and /dev/null differ diff --git a/smiley_pack/icons/devilangel/daseesaw.gif b/smiley_pack/icons/devilangel/daseesaw.gif deleted file mode 100644 index 1c04b2ee..00000000 Binary files a/smiley_pack/icons/devilangel/daseesaw.gif and /dev/null differ diff --git a/smiley_pack/icons/devilangel/saint.gif b/smiley_pack/icons/devilangel/saint.gif deleted file mode 100644 index 52c22c48..00000000 Binary files a/smiley_pack/icons/devilangel/saint.gif and /dev/null differ diff --git a/smiley_pack/icons/devilangel/turnevil.gif b/smiley_pack/icons/devilangel/turnevil.gif deleted file mode 100644 index 1490c0f7..00000000 Binary files a/smiley_pack/icons/devilangel/turnevil.gif and /dev/null differ diff --git a/smiley_pack/icons/disgust/fart.gif b/smiley_pack/icons/disgust/fart.gif deleted file mode 100644 index 4160a1fc..00000000 Binary files a/smiley_pack/icons/disgust/fart.gif and /dev/null differ diff --git a/smiley_pack/icons/disgust/fartblush.gif b/smiley_pack/icons/disgust/fartblush.gif deleted file mode 100644 index 4160a1fc..00000000 Binary files a/smiley_pack/icons/disgust/fartblush.gif and /dev/null differ diff --git a/smiley_pack/icons/fight/acid.gif b/smiley_pack/icons/fight/acid.gif deleted file mode 100644 index fa55f674..00000000 Binary files a/smiley_pack/icons/fight/acid.gif and /dev/null differ diff --git a/smiley_pack/icons/fight/gangs.gif b/smiley_pack/icons/fight/gangs.gif deleted file mode 100644 index 2c655b1f..00000000 Binary files a/smiley_pack/icons/fight/gangs.gif and /dev/null differ diff --git a/smiley_pack/icons/food/banana.gif b/smiley_pack/icons/food/banana.gif deleted file mode 100644 index d990d19d..00000000 Binary files a/smiley_pack/icons/food/banana.gif and /dev/null differ diff --git a/smiley_pack/icons/food/cooking.gif b/smiley_pack/icons/food/cooking.gif deleted file mode 100644 index e62fea06..00000000 Binary files a/smiley_pack/icons/food/cooking.gif and /dev/null differ diff --git a/smiley_pack/icons/food/fryegg.gif b/smiley_pack/icons/food/fryegg.gif deleted file mode 100644 index bd1b4ff0..00000000 Binary files a/smiley_pack/icons/food/fryegg.gif and /dev/null differ diff --git a/smiley_pack/icons/laugh/hahaha.gif b/smiley_pack/icons/laugh/hahaha.gif deleted file mode 100644 index 37aa92a1..00000000 Binary files a/smiley_pack/icons/laugh/hahaha.gif and /dev/null differ diff --git a/smiley_pack/icons/laugh/loltv.gif b/smiley_pack/icons/laugh/loltv.gif deleted file mode 100644 index 3de6f778..00000000 Binary files a/smiley_pack/icons/laugh/loltv.gif and /dev/null differ diff --git a/smiley_pack/icons/laugh/rofl.gif b/smiley_pack/icons/laugh/rofl.gif deleted file mode 100644 index a3bb03d6..00000000 Binary files a/smiley_pack/icons/laugh/rofl.gif and /dev/null differ diff --git a/smiley_pack/icons/music/dj.gif b/smiley_pack/icons/music/dj.gif deleted file mode 100644 index 66bc075f..00000000 Binary files a/smiley_pack/icons/music/dj.gif and /dev/null differ diff --git a/smiley_pack/icons/music/drums.gif b/smiley_pack/icons/music/drums.gif deleted file mode 100644 index 27215f4d..00000000 Binary files a/smiley_pack/icons/music/drums.gif and /dev/null differ diff --git a/smiley_pack/icons/music/elvis.gif b/smiley_pack/icons/music/elvis.gif deleted file mode 100644 index ebcdcccc..00000000 Binary files a/smiley_pack/icons/music/elvis.gif and /dev/null differ diff --git a/smiley_pack/icons/music/guitar.gif b/smiley_pack/icons/music/guitar.gif deleted file mode 100644 index 11eccdd0..00000000 Binary files a/smiley_pack/icons/music/guitar.gif and /dev/null differ diff --git a/smiley_pack/icons/music/trumpet.gif b/smiley_pack/icons/music/trumpet.gif deleted file mode 100644 index 4595cccb..00000000 Binary files a/smiley_pack/icons/music/trumpet.gif and /dev/null differ diff --git a/smiley_pack/icons/music/violin.gif b/smiley_pack/icons/music/violin.gif deleted file mode 100644 index 53592d6e..00000000 Binary files a/smiley_pack/icons/music/violin.gif and /dev/null differ diff --git a/smiley_pack/icons/oldcore/beard.png b/smiley_pack/icons/oldcore/beard.png deleted file mode 100644 index 5d4b2846..00000000 Binary files a/smiley_pack/icons/oldcore/beard.png and /dev/null differ diff --git a/smiley_pack/icons/oldcore/headbang.gif b/smiley_pack/icons/oldcore/headbang.gif deleted file mode 100644 index 91ccb8bb..00000000 Binary files a/smiley_pack/icons/oldcore/headbang.gif and /dev/null differ diff --git a/smiley_pack/icons/oldcore/laughing.gif b/smiley_pack/icons/oldcore/laughing.gif deleted file mode 100755 index 1bf29de7..00000000 Binary files a/smiley_pack/icons/oldcore/laughing.gif and /dev/null differ diff --git a/smiley_pack/icons/oldcore/shaka.gif b/smiley_pack/icons/oldcore/shaka.gif deleted file mode 100644 index e5d7b703..00000000 Binary files a/smiley_pack/icons/oldcore/shaka.gif and /dev/null differ diff --git a/smiley_pack/icons/oldcore/surprised.gif b/smiley_pack/icons/oldcore/surprised.gif deleted file mode 100755 index b0746532..00000000 Binary files a/smiley_pack/icons/oldcore/surprised.gif and /dev/null differ diff --git a/smiley_pack/icons/oldcore/whitebeard.png b/smiley_pack/icons/oldcore/whitebeard.png deleted file mode 100644 index 2a1fccbb..00000000 Binary files a/smiley_pack/icons/oldcore/whitebeard.png and /dev/null differ diff --git a/smiley_pack/icons/respect/bow.gif b/smiley_pack/icons/respect/bow.gif deleted file mode 100644 index ecc64847..00000000 Binary files a/smiley_pack/icons/respect/bow.gif and /dev/null differ diff --git a/smiley_pack/icons/respect/bravo.gif b/smiley_pack/icons/respect/bravo.gif deleted file mode 100644 index 34f72abb..00000000 Binary files a/smiley_pack/icons/respect/bravo.gif and /dev/null differ diff --git a/smiley_pack/icons/respect/hailking.gif b/smiley_pack/icons/respect/hailking.gif deleted file mode 100644 index 07551e50..00000000 Binary files a/smiley_pack/icons/respect/hailking.gif and /dev/null differ diff --git a/smiley_pack/icons/respect/number1.gif b/smiley_pack/icons/respect/number1.gif deleted file mode 100644 index ab5c410c..00000000 Binary files a/smiley_pack/icons/respect/number1.gif and /dev/null differ diff --git a/smiley_pack/icons/sport/archery.gif b/smiley_pack/icons/sport/archery.gif deleted file mode 100644 index 8b4b9f62..00000000 Binary files a/smiley_pack/icons/sport/archery.gif and /dev/null differ diff --git a/smiley_pack/icons/sport/football.gif b/smiley_pack/icons/sport/football.gif deleted file mode 100644 index c9fa6c5e..00000000 Binary files a/smiley_pack/icons/sport/football.gif and /dev/null differ diff --git a/smiley_pack/icons/sport/horseriding.gif b/smiley_pack/icons/sport/horseriding.gif deleted file mode 100644 index 13ca4503..00000000 Binary files a/smiley_pack/icons/sport/horseriding.gif and /dev/null differ diff --git a/smiley_pack/icons/sport/snooker.gif b/smiley_pack/icons/sport/snooker.gif deleted file mode 100644 index fa2e6a84..00000000 Binary files a/smiley_pack/icons/sport/snooker.gif and /dev/null differ diff --git a/smiley_pack/icons/sport/surfing.gif b/smiley_pack/icons/sport/surfing.gif deleted file mode 100644 index b75d74b9..00000000 Binary files a/smiley_pack/icons/sport/surfing.gif and /dev/null differ diff --git a/smiley_pack/icons/sport/tennis.gif b/smiley_pack/icons/sport/tennis.gif deleted file mode 100644 index 36e47bf9..00000000 Binary files a/smiley_pack/icons/sport/tennis.gif and /dev/null differ diff --git a/smiley_pack/smiley_pack.php b/smiley_pack/smiley_pack.php index d85f9b5e..95f3bd87 100644 --- a/smiley_pack/smiley_pack.php +++ b/smiley_pack/smiley_pack.php @@ -21,22 +21,13 @@ function smiley_pack__uninstall() { function smiley_pack_smilies(&$a,&$b) { -#Smileys are split into various directories by the intended range of emotions. This is in case we get too big and need to modularise things. We can then cut and paste the right lines, move the right directory, and just change the name of the addon to happy_smilies or whatever. - -#Be careful with invocation strings. If you have a smiley called foo, and another called foobar, typing :foobar will call foo. Avoid this with clever naming, using ~ instead of : -#when all else fails. - - - -#Animal smileys. - $b['texts'][] = ':bunnyflowers'; $b['icons'][] = '' . ':bunnyflowers' . ''; $b['texts'][] = ':chick'; $b['icons'][] = '' . ':chick' . ''; - $b['texts'][] = ':bumblebee'; + $b['texts'][] = ':bee'; $b['icons'][] = '' . ':bee' . ''; $b['texts'][] = ':ladybird'; @@ -93,21 +84,6 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':dog'; $b['icons'][] = '' . ':dog' . ''; - $b['texts'][] = ':elephant'; - $b['icons'][] = '' . ':elephant' . ''; - - $b['texts'][] = ':fish'; - $b['icons'][] = '' . ':fish' . ''; - - $b['texts'][] = ':giraffe'; - $b['icons'][] = '' . ':giraffe' . ''; - - $b['texts'][] = ':pig'; - $b['icons'][] = '' . ':pig' . ''; - - - -#Baby Smileys $b['texts'][] = ':baby'; $b['icons'][] = '' . ':baby' . ''; @@ -122,8 +98,7 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':stork'; $b['icons'][] = '' . ':stork' . ''; - -#Confused Smileys + $b['texts'][] = ':confused'; $b['icons'][] = '' . ':confused' . ''; @@ -133,20 +108,12 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':stupid'; $b['icons'][] = '' . ':stupid' . ''; - $b['texts'][] = ':dazed'; - $b['icons'][] = '' . ':dazed' . ''; - - -#Cool Smileys - $b['texts'][] = ':affro'; $b['icons'][] = '' . ':affro' . ''; $b['texts'][] = ':cool'; $b['icons'][] = '' . ':cool' . ''; -#Devil/Angel Smileys - $b['texts'][] = ':angel'; $b['icons'][] = '' . ':angel' . ''; @@ -159,23 +126,13 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':catdevil'; $b['icons'][] = '' . ':catdevil' . ''; - $b['texts'][] = ':devillish'; - $b['icons'][] = '' . ':devillish' . ''; + $b['texts'][] = ':devil'; + $b['icons'][] = '' . ':devil' . ''; - $b['texts'][] = ':daseesaw'; - $b['icons'][] = '' . ':daseesaw' . ''; - - $b['texts'][] = ':turnevil'; - $b['icons'][] = '' . ':turnevil' . ''; - - $b['texts'][] = ':saint'; - $b['icons'][] = '' . ':saint' . ''; $b['texts'][] = ':graveside'; $b['icons'][] = '' . ':graveside' . ''; -#Unpleasent smileys. - $b['texts'][] = ':toilet'; $b['icons'][] = '' . ':toilet' . ''; @@ -185,32 +142,21 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':vomit'; $b['icons'][] = '' . ':vomit' . ''; - $b['texts'][] = ':fartblush'; - $b['icons'][] = '' . ':fartblush' . ''; - -#Drinks - $b['texts'][] = ':tea'; $b['icons'][] = '' . ':tea' . ''; $b['texts'][] = ':drool'; $b['icons'][] = '' . ':drool' . ''; -#Sad smileys - $b['texts'][] = ':crying'; $b['icons'][] = '' . ':crying' . ''; $b['texts'][] = ':prisoner'; $b['icons'][] = '' . ':prisoner' . ''; -#Smoking - only one smiley in here, maybe it needs moving elsewhere? - $b['texts'][] = ':smoking'; $b['icons'][] = '' . ':smoking' . ''; -#Sport smileys - $b['texts'][] = ':basketball'; $b['icons'][] = '' . ':basketball' . ''; @@ -235,33 +181,13 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':skipping'; $b['icons'][] = '' . ':skipping' . ''; - $b['texts'][] = ':archery'; - $b['icons'][] = '' . ':archery' . ''; - - $b['texts'][] = ':football'; - $b['icons'][] = '' . ':football' . ''; - - $b['texts'][] = ':surfing'; - $b['icons'][] = '' . ':surfing' . ''; - - $b['texts'][] = ':snooker'; - $b['icons'][] = '' . ':snooker' . ''; - - $b['texts'][] = ':tennis'; - $b['icons'][] = '' . ':tennis' . ''; - - $b['texts'][] = ':horseriding'; - $b['icons'][] = '' . ':horseriding' . ''; - -#Love smileys - $b['texts'][] = ':iloveyou'; $b['icons'][] = '' . ':iloveyou' . ''; $b['texts'][] = ':inlove'; $b['icons'][] = '' . ':inlove' . ''; - $b['texts'][] = '~love'; + $b['texts'][] = ':love'; $b['icons'][] = '' . ':love' . ''; $b['texts'][] = ':lovebear'; @@ -273,8 +199,6 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':loveheart'; $b['icons'][] = '' . ':loveheart' . ''; -#Tired/Sleep smileys - $b['texts'][] = ':countsheep'; $b['icons'][] = '' . ':countsheep' . ''; @@ -284,8 +208,6 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':pillow'; $b['icons'][] = '' . ':pillow' . ''; -#Fight/Flame/Violent smileys - $b['texts'][] = ':2guns'; $b['icons'][] = '' . ':2guns' . ''; @@ -337,14 +259,6 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':viking'; $b['icons'][] = '' . ':viking' . ''; - $b['texts'][] = ':gangs'; - $b['icons'][] = '' . ':gangs' . ''; - - $b['texts'][] = ':acid'; - $b['icons'][] = '' . ':acid' . ''; - -#Fantasy smileys - monsters and dragons fantasy. The other type of fantasy belongs in adult smileys - $b['texts'][] = ':alienmonster'; $b['icons'][] = '' . ':alienmonster' . ''; @@ -357,8 +271,8 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':dragon'; $b['icons'][] = '' . ':dragon' . ''; - $b['texts'][] = ':draco'; - $b['icons'][] = '' . ':draco' . ''; + $b['texts'][] = ':dragonwhelp'; + $b['icons'][] = '' . ':dragonwhelp' . ''; $b['texts'][] = ':ghost'; $b['icons'][] = '' . ':ghost' . ''; @@ -366,8 +280,6 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':mummy'; $b['icons'][] = '' . ':mummy' . ''; -#Food smileys - $b['texts'][] = ':apple'; $b['icons'][] = '' . ':apple' . ''; @@ -386,16 +298,6 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':tomato'; $b['icons'][] = '' . ':tomato' . ''; - $b['texts'][] = ':banana'; - $b['icons'][] = '' . ':banana' . ''; - - $b['texts'][] = ':cooking'; - $b['icons'][] = '' . ':cooking' . ''; - - $b['texts'][] = ':fryegg'; - $b['icons'][] = '' . ':fryegg' . ''; - -#Happy smileys $b['texts'][] = ':cloud9'; $b['icons'][] = '' . ':cloud9' . ''; @@ -403,83 +305,5 @@ function smiley_pack_smilies(&$a,&$b) { $b['texts'][] = ':tearsofjoy'; $b['icons'][] = '' . ':tearsofjoy' . ''; -#Repsect smileys - - $b['texts'][] = ':bow'; - $b['icons'][] = '' . ':bow' . ''; - - $b['texts'][] = ':bravo'; - $b['icons'][] = '' . ':bravo' . ''; - - $b['texts'][] = ':hailking'; - $b['icons'][] = '' . ':hailking' . ''; - - $b['texts'][] = ':number1'; - $b['icons'][] = '' . ':number1' . ''; - -#Laugh smileys - - $b['texts'][] = ':hahaha'; - $b['icons'][] = '' . ':hahaha' . ''; - - $b['texts'][] = ':loltv'; - $b['icons'][] = '' . ':loltv' . ''; - - $b['texts'][] = ':rofl'; - $b['icons'][] = '' . ':rofl' . ''; - -#Music smileys - - $b['texts'][] = ':dj'; - $b['icons'][] = '' . ':dj' . ''; - - $b['texts'][] = ':drums'; - $b['icons'][] = '' . ':drums' . ''; - - $b['texts'][] = ':elvis'; - $b['icons'][] = '' . ':elivs' . ''; - - $b['texts'][] = ':guitar'; - $b['icons'][] = '' . ':guitar' . ''; - - $b['texts'][] = ':trumpet'; - $b['icons'][] = '' . ':trumpet' . ''; - - $b['texts'][] = ':violin'; - $b['icons'][] = '' . ':violin' . ''; - -#Smileys that used to be in core - - $b['texts'][] = ':headbang'; - $b['icons'][] = '' . ':headbang' . ''; - - $b['texts'][] = ':beard'; - $b['icons'][] = '' . ':beard' . ''; - - $b['texts'][] = ':whitebeard'; - $b['icons'][] = '' . ':whitebeard' . ''; - - $b['texts'][] = ':shaka'; - $b['icons'][] = '' . ':shaka' . ''; - - $b['texts'][] = ':\\.../'; - $b['icons'][] = '' . ':\\.../' . ''; - - $b['texts'][] = ':\\ooo/'; - $b['icons'][] = '' . ':\\ooo/' . ''; - - $b['texts'][] = ':headdesk'; - $b['icons'][] = '' . ':headdesk' . ''; - -#These two are still in core, so oldcore isn't strictly right, but we don't want too many directories - - $b['texts'][] = ':-d'; - $b['icons'][] = '' . ':-d' . ''; - - $b['texts'][] = ':-o'; - $b['icons'][] = '' . ':-o' . ''; - - - } diff --git a/viewsrc/viewsrc.php b/viewsrc/viewsrc.php index e39fe8a6..a610b76c 100644 --- a/viewsrc/viewsrc.php +++ b/viewsrc/viewsrc.php @@ -11,13 +11,25 @@ function viewsrc_install() { register_hook('item_photo_menu', 'addon/viewsrc/viewsrc.php', 'viewsrc_item_photo_menu'); + register_hook('page_end', 'addon/viewsrc/viewsrc.php', 'viewsrc_page_end'); } function viewsrc_uninstall() { unregister_hook('item_photo_menu', 'addon/viewsrc/viewsrc.php', 'viewsrc_item_photo_menu'); + unregister_hook('page_end', 'addon/viewsrc/viewsrc.php', 'viewsrc_page_end'); + } +function viewsrc_page_end(&$a, &$o){ + $a->page['htmlhead'] .= <<< EOS + +EOS; +} function viewsrc_item_photo_menu(&$a,&$b) { if(! local_user()) diff --git a/widgets/widgets.php b/widgets/widgets.php index 27cabfd6..47a6e48a 100755 --- a/widgets/widgets.php +++ b/widgets/widgets.php @@ -19,7 +19,8 @@ function widgets_uninstall() { function widgets_settings_post(){ - + if(! local_user()) + return; if (isset($_POST['widgets-submit'])){ del_pconfig(local_user(), 'widgets', 'key');