forked from friendica/friendica-addons
Merge remote branch 'upstream/master'
This commit is contained in:
commit
3db1bbc930
BIN
facebook.tgz
BIN
facebook.tgz
Binary file not shown.
|
@ -332,6 +332,14 @@ function fb_get_friends_sync_parsecontact($uid, $contact) {
|
|||
|
||||
$contact_id = $r[0]['id'];
|
||||
|
||||
$g = q("select def_gid from user where uid = %d limit 1",
|
||||
intval($uid)
|
||||
);
|
||||
if($g && intval($g[0]['def_gid'])) {
|
||||
require_once('include/group.php');
|
||||
group_add_member($uid,'',$contact_id,$g[0]['def_gid']);
|
||||
}
|
||||
|
||||
require_once("Photo.php");
|
||||
|
||||
$photos = import_profile_photo($r[0]['photo'],$uid,$contact_id);
|
||||
|
|
BIN
morechoice.tgz
Normal file
BIN
morechoice.tgz
Normal file
Binary file not shown.
120
morechoice/morechoice.php
Normal file
120
morechoice/morechoice.php
Normal file
|
@ -0,0 +1,120 @@
|
|||
<?php
|
||||
/**
|
||||
* Name: More Choice
|
||||
* Description: Additional gender/sexual preference/marital status options
|
||||
* Version: 1.0
|
||||
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
|
||||
* - who takes no responsibility for any additional content which may appear herein
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
function morechoice_install() {
|
||||
|
||||
register_hook('gender_selector', 'addon/morechoice/morechoice.php', 'morechoice_gender_selector');
|
||||
register_hook('sexpref_selector', 'addon/morechoice/morechoice.php', 'morechoice_sexpref_selector');
|
||||
register_hook('marital_selector', 'addon/morechoice/morechoice.php', 'morechoice_marital_selector');
|
||||
|
||||
}
|
||||
|
||||
|
||||
function morechoice_uninstall() {
|
||||
|
||||
unregister_hook('gender_selector', 'addon/morechoice/morechoice.php', 'morechoice_gender_selector');
|
||||
unregister_hook('sexpref_selector', 'addon/morechoice/morechoice.php', 'morechoice_sexpref_selector');
|
||||
unregister_hook('marital_selector', 'addon/morechoice/morechoice.php', 'morechoice_marital_selector');
|
||||
|
||||
}
|
||||
|
||||
// We aren't going to bother translating these to other languages.
|
||||
|
||||
function morechoice_gender_selector($a,&$b) {
|
||||
if($a->config['system']['language'] == 'en') {
|
||||
$b[] = 'Androgyne';
|
||||
$b[] = 'Bear';
|
||||
$b[] = 'Bigender';
|
||||
$b[] = 'Cross dresser';
|
||||
$b[] = 'Drag queen';
|
||||
$b[] = 'Eunuch';
|
||||
$b[] = 'Faux queen';
|
||||
$b[] = 'Gender fluid';
|
||||
$b[] = 'Kathoey';
|
||||
$b[] = 'Lady';
|
||||
$b[] = 'Lipstick lesbian';
|
||||
$b[] = 'Metrosexual';
|
||||
$b[] = 'Monk';
|
||||
$b[] = 'Nun';
|
||||
$b[] = 'Soft butch';
|
||||
$b[] = 'Stone femme';
|
||||
$b[] = 'Tomboy';
|
||||
$b[] = 'Transman';
|
||||
$b[] = 'Transwoman';
|
||||
$b[] = 'Transvesti';
|
||||
$b[] = 'Trigender';
|
||||
$b[] = 'Can\'t remember';
|
||||
$b[] = 'Hard to tell these days';
|
||||
}
|
||||
}
|
||||
|
||||
function morechoice_sexpref_selector($a,&$b) {
|
||||
if($a->config['system']['language'] == 'en') {
|
||||
$b[] = 'Girls with big tits';
|
||||
$b[] = 'Millionaires';
|
||||
$b[] = 'Guys with big schlongs';
|
||||
$b[] = 'Easy women';
|
||||
$b[] = 'People with impaired mobility';
|
||||
$b[] = 'Amputees';
|
||||
$b[] = 'Statues, mannequins and immobility';
|
||||
$b[] = 'Pain';
|
||||
$b[] = 'Trans men';
|
||||
$b[] = 'Older women';
|
||||
$b[] = 'Asphyxiation';
|
||||
$b[] = 'In public';
|
||||
$b[] = 'In danger';
|
||||
$b[] = 'Pretending to be male';
|
||||
$b[] = 'Pretending to be female';
|
||||
$b[] = 'Breats';
|
||||
$b[] = 'Scat';
|
||||
$b[] = 'Crying';
|
||||
$b[] = 'Nappies/Diapers';
|
||||
$b[] = 'Trees';
|
||||
$b[] = 'Vomit';
|
||||
$b[] = 'Murder';
|
||||
$b[] = 'Fat people';
|
||||
$b[] = 'Feet';
|
||||
$b[] = 'Covered in insects';
|
||||
$b[] = 'Turning a human being into furniture';
|
||||
$b[] = 'Elderly people';
|
||||
$b[] = 'Transgender people';
|
||||
$b[] = 'Criminals';
|
||||
$b[] = 'Stealing';
|
||||
$b[] = 'Breast milk';
|
||||
$b[] = 'Immersing genitals in liquids';
|
||||
$b[] = 'Giants';
|
||||
$b[] = 'Masochism';
|
||||
$b[] = 'Cars';
|
||||
$b[] = 'Menstruation';
|
||||
$b[] = 'Mucus';
|
||||
$b[] = 'Obscene language';
|
||||
$b[] = 'Noses';
|
||||
$b[] = 'Navels';
|
||||
$b[] = 'Corpses';
|
||||
$b[] = 'Smells';
|
||||
$b[] = 'Buttocks';
|
||||
$b[] = 'Nonliving objects';
|
||||
$b[] = 'Sleeping people';
|
||||
$b[] = 'Urination';
|
||||
$b[] = 'Eating people';
|
||||
$b[] = 'Being eaten';
|
||||
$b[] = 'Animals';
|
||||
}
|
||||
}
|
||||
|
||||
function morechoice_marital_selector($a,&$b) {
|
||||
if($a->config['system']['language'] == 'en') {
|
||||
$b[] = 'Married to my job';
|
||||
$b[] = 'Polygamist';
|
||||
$b[] = 'Half married';
|
||||
|
||||
}
|
||||
}
|
BIN
privacy_image_cache.tgz
Normal file
BIN
privacy_image_cache.tgz
Normal file
Binary file not shown.
|
@ -62,7 +62,9 @@ function privacy_image_cache_init() {
|
|||
*/
|
||||
function privacy_image_cache_is_local_image($url) {
|
||||
if ($url[0] == '/') return true;
|
||||
$baseurl = get_app()->get_baseurl();
|
||||
// links normalised - bug #431
|
||||
$baseurl = normalise_link(get_app()->get_baseurl());
|
||||
$url = normalise_link($url);
|
||||
return (substr($url, 0, strlen($baseurl)) == $baseurl);
|
||||
}
|
||||
|
||||
|
@ -71,7 +73,8 @@ function privacy_image_cache_is_local_image($url) {
|
|||
* @return string
|
||||
*/
|
||||
function privacy_image_cache_img_cb($matches) {
|
||||
if (privacy_image_cache_is_local_image($matches[2])) return $matches[2];
|
||||
// following line changed per bug #431
|
||||
if (privacy_image_cache_is_local_image($matches[2])) return $matches[1] . $matches[2] . $matches[3];
|
||||
return $matches[1] . "/privacy_image_cache/?url=" . escape_tags(addslashes($matches[2])) . $matches[3];
|
||||
}
|
||||
|
||||
|
@ -112,7 +115,7 @@ function privacy_image_cache_ping_xmlize_hook(&$a, &$o) {
|
|||
* @param App $a
|
||||
* @param null|object $b
|
||||
*/
|
||||
function privacy_image_cache_cron(&$a, &$b) {
|
||||
function privacy_image_cache_cron(&$a = null, &$b = null) {
|
||||
$cachetime = get_config('privacy_image_cache','cache_time');
|
||||
if (!$cachetime) $cachetime = PRIVACY_IMAGE_CACHE_DEFAULT_TIME;
|
||||
|
||||
|
@ -161,7 +164,7 @@ function privacy_image_cache_plugin_admin(&$a, &$o){
|
|||
* @param App $a
|
||||
* @param null|object $o
|
||||
*/
|
||||
function privacy_image_cache_plugin_admin_post(&$a, &$o){
|
||||
function privacy_image_cache_plugin_admin_post(&$a = null, &$o = null){
|
||||
check_form_security_token_redirectOnErr('/admin/plugins/privacy_image_cache', 'picsave');
|
||||
|
||||
if (isset($_REQUEST['save'])) {
|
||||
|
|
BIN
public_server.tgz
Executable file
BIN
public_server.tgz
Executable file
Binary file not shown.
29
public_server/README.md
Normal file
29
public_server/README.md
Normal file
|
@ -0,0 +1,29 @@
|
|||
Public Server
|
||||
=============
|
||||
|
||||
|
||||
Public Server is a Friendica plugin which implements automatic account & post expiration so that a site may be used as a public
|
||||
test bed with reduced data retention.
|
||||
|
||||
This is a modified version of the testdrive plugin, DO NOT ACTIVATE AT THE SAME TIME AS THE TESTDRIVE PLUGIN.
|
||||
|
||||
//When an account is created on the site, it is given a hard expiration date of
|
||||
$a->config['public_server']['expiredays'] = 30;
|
||||
//Set the default days for posts to expire here
|
||||
$a->config['public_server']['expireposts'] = 30;
|
||||
//Remove users who have never logged in after nologin days
|
||||
$a->config['public_server']['nologin'] = 30;
|
||||
//Remove users who last logged in over flagusers days ago
|
||||
$a->config['public_server']['flagusers'] = 146;
|
||||
//For users who last logged in over flagposts days ago set post expiry days to flagpostsexpire
|
||||
$a->config['public_server']['flagposts'] = 90;
|
||||
$a->config['public_server']['flagpostsexpire'] = 146;
|
||||
|
||||
Set these in your .htconfig.php file. By default nothing is defined in case the plugin is activated accidentally.
|
||||
They can be ommitted or set to 0 to disable each option.
|
||||
The default values are those used by friendica.eu, change these as desired.
|
||||
|
||||
The expiration date is updated when the user logs in.
|
||||
|
||||
An email warning will be sent out approximately five days before the expiration occurs. Five days later the account is removed completely.
|
||||
|
140
public_server/public_server.php
Normal file
140
public_server/public_server.php
Normal file
|
@ -0,0 +1,140 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* Name: public_server
|
||||
* Description: Friendica plugin/addon with functions suitable for a public server.
|
||||
* Version: 1.0
|
||||
* Author: Keith Fernie <http://friendika.me4.it/profile/keith>
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
function public_server_install() {
|
||||
|
||||
register_hook('register_account', 'addon/public_server/public_server.php', 'public_server_register_account');
|
||||
register_hook('cron', 'addon/public_server/public_server.php', 'public_server_cron');
|
||||
register_hook('enotify','addon/public_server/public_server.php', 'public_server_enotify');
|
||||
register_hook('logged_in', 'addon/public_server/public_server.php', 'public_server_login');
|
||||
}
|
||||
|
||||
|
||||
function public_server_uninstall() {
|
||||
|
||||
unregister_hook('register_account', 'addon/public_server/public_server.php', 'public_server_register_account');
|
||||
unregister_hook('cron', 'addon/public_server/public_server.php', 'public_server_cron');
|
||||
unregister_hook('enotify','addon/public_server/public_server.php', 'public_server_enotify');
|
||||
unregister_hook('logged_in', 'addon/public_server/public_server.php', 'public_server_login');
|
||||
}
|
||||
|
||||
function public_server_register_account($a,$b) {
|
||||
|
||||
$uid = $b;
|
||||
|
||||
$days = get_config('public_server','expiredays');
|
||||
$days_posts = get_config('public_server','expireposts');
|
||||
if(! $days)
|
||||
return;
|
||||
|
||||
$r = q("UPDATE user set account_expires_on = '%s', expire = %d where uid = %d limit 1",
|
||||
dbesc(datetime_convert('UTC','UTC','now +' . $days . ' days')),
|
||||
intval($days_posts),
|
||||
intval($uid)
|
||||
);
|
||||
|
||||
};
|
||||
|
||||
|
||||
function public_server_cron($a,$b) {
|
||||
require_once('include/enotify.php');
|
||||
$r = q("select * from user where account_expires_on < UTC_TIMESTAMP() + INTERVAL 5 DAY and account_expires_on > '0000-00-00 00:00:00' and
|
||||
expire_notification_sent = '0000-00-00 00:00:00' ");
|
||||
|
||||
if(count($r)) {
|
||||
foreach($r as $rr) {
|
||||
notification(array(
|
||||
'uid' => $rr['uid'],
|
||||
'type' => NOTIFY_SYSTEM,
|
||||
'system_type' => 'public_server_expire',
|
||||
'language' => $rr['language'],
|
||||
'to_name' => $rr['username'],
|
||||
'to_email' => $rr['email'],
|
||||
'source_name' => t('Administrator'),
|
||||
'source_link' => $a->get_baseurl(),
|
||||
'source_photo' => $a->get_baseurl() . '/images/person-80.jpg',
|
||||
));
|
||||
|
||||
q("update user set expire_notification_sent = '%s' where uid = %d limit 1",
|
||||
dbesc(datetime_convert()),
|
||||
intval($rr['uid'])
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
$r = q("select * from user where account_expired = 1 and account_expires_on < UTC_TIMESTAMP() - INTERVAL 5 DAY and account_expires_on > '0000-00-00 00:00:00'");
|
||||
if(count($r)) {
|
||||
require_once('include/Contact.php');
|
||||
foreach($r as $rr)
|
||||
user_remove($rr['uid']);
|
||||
|
||||
}
|
||||
$nologin = get_config('public_server','nologin');
|
||||
if($nologin) {
|
||||
$r = q("select uid from user where account_expired = 0 and login_date = '0000-00-00 00:00:00' and register_date < UTC_TIMESTAMP() - INTERVAL %d DAY and account_expires_on = '0000-00-00 00:00:00'",intval($nologin));
|
||||
if(count($r)) {
|
||||
foreach($r as $rr)
|
||||
q("update user set account_expires_on = '%s' where uid = %d limit 1",
|
||||
dbesc(datetime_convert('UTC','UTC','now +' . '6 days')),
|
||||
intval($rr['uid'])
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
$flagusers = get_config('public_server','flagusers');
|
||||
if($flagusers) {
|
||||
$r = q("select uid from user where account_expired = 0 and login_date < UTC_TIMESTAMP() - INTERVAL %d DAY and account_expires_on = '0000-00-00 00:00:00' and `page-flags` = 0",intval($flagusers));
|
||||
if(count($r)) {
|
||||
foreach($r as $rr)
|
||||
q("update user set account_expires_on = '%s' where uid = %d limit 1",
|
||||
dbesc(datetime_convert('UTC','UTC','now +' . '6 days')),
|
||||
intval($rr['uid'])
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
$flagposts = get_config('public_server','flagposts');
|
||||
$flagpostsexpire = get_config('public_server','flagpostsexpire');
|
||||
if ($flagposts && $flagpostsexpire) {
|
||||
$r = q("select uid from user where account_expired = 0 and login_date < UTC_TIMESTAMP() - INTERVAL %d DAY and account_expires_on = '0000-00-00 00:00:00' and expire = 0 and `page-flags` = 0",intval($flagposts));
|
||||
if(count($r)) {
|
||||
foreach($r as $rr)
|
||||
q("update user set expire = %d where uid = %d limit 1",
|
||||
intval($flagpostsexpire),
|
||||
intval($rr['uid'])
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function public_server_enotify(&$a, &$b) {
|
||||
if (x($b, 'params') && $b['params']['type'] == NOTIFY_SYSTEM
|
||||
&& x($b['params'], 'system_type') && $b['params']['system_type'] === 'public_server_expire') {
|
||||
$b['itemlink'] = $a->get_baseurl();
|
||||
$b['epreamble'] = $b['preamble'] = sprintf( t('Your account on %s will expire in a few days.'), get_config('system','sitename'));
|
||||
$b['subject'] = t('Your Friendica account is about to expire.');
|
||||
$b['body'] = sprintf( t("Hi %1\$s,\n\nYour account on %2\$s will expire in less than five days. You may keep your account by logging in at least once every 30 days"), $b['params']['to_name'], "[url=" . $app->config["system"]["url"] . "]" . $app->config["sitename"] . "[/url]");
|
||||
}
|
||||
}
|
||||
|
||||
function public_server_login($a,$b) {
|
||||
$days = get_config('public_server','expiredays');
|
||||
if(! $days)
|
||||
return;
|
||||
$r = q("UPDATE user set account_expires_on = '%s' where uid = %d and account_expires_on > '0000-00-00 00:00:00' limit 1",
|
||||
dbesc(datetime_convert('UTC','UTC','now +' . $days . ' days')),
|
||||
local_user()
|
||||
);
|
||||
}
|
BIN
smiley_pack.tgz
BIN
smiley_pack.tgz
Binary file not shown.
3
smiley_pack/README.md
Normal file
3
smiley_pack/README.md
Normal file
|
@ -0,0 +1,3 @@
|
|||
By default, smiley_pack will use smiley code based on the English language. However, we have a couple of translations now. In the "lang" folder, you will find French (fr) and spanish (es) translations. Simply copy the directories to addon/ (so smiley_pack_xx ends up in the same place as smiley_pack) then enable each language you require in your admin panel.
|
||||
|
||||
The English version is **required** for the other languages to work. This is to a) save space by keeping all the smileys in one place, and b) for compatibility with other servers who will overwhelmingly be using the English version.
|
BIN
smiley_pack/icons/fight/alpha.png
Normal file
BIN
smiley_pack/icons/fight/alpha.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 664 B |
BIN
smiley_pack/icons/sad/sigh.gif
Normal file
BIN
smiley_pack/icons/sad/sigh.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 748 B |
493
smiley_pack/lang/smiley_pack_es/smiley_pack_es.php
Normal file
493
smiley_pack/lang/smiley_pack_es/smiley_pack_es.php
Normal file
|
@ -0,0 +1,493 @@
|
|||
<?php
|
||||
/*
|
||||
* Name: Smiley Pack (Español)
|
||||
* Description: Pack of smileys that make master too AOLish.
|
||||
* Version: 1.02
|
||||
* Author: Thomas Willingham (based on Mike Macgirvin's Adult Smile template)
|
||||
* All smileys from sites offering them as Public Domain
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
*/
|
||||
|
||||
function smiley_pack_es_install() {
|
||||
register_hook('smilie', 'addon/smiley_pack_es/smiley_pack_es.php', 'smiley_pack_smilies_es');
|
||||
}
|
||||
|
||||
function smiley_pack_es_uninstall() {
|
||||
unregister_hook('smilie', 'addon/smiley_pack_es/smiley_pack_es.php', 'smiley_pack_smilies');
|
||||
}
|
||||
|
||||
|
||||
|
||||
function smiley_pack_smilies_es(&$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'][] = ':conejitoflores';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/bunnyflowers.gif' . '" alt="' . ':conejitoflores' . '" />';
|
||||
|
||||
$b['texts'][] = ':pollito';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/chick.gif' . '" alt="' . ':pollito' . '" />';
|
||||
|
||||
$b['texts'][] = ':abeja';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/bee.gif' . '" alt="' . ':abeja' . '" />';
|
||||
|
||||
$b['texts'][] = ':mariquita';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/ladybird.gif' . '" alt="' . ':mariquita' . '" />';
|
||||
|
||||
$b['texts'][] = ':araña';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/bigspider.gif' . '" alt="' . ':araña' . '" />';
|
||||
|
||||
$b['texts'][] = ':gato';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/cat.gif' . '" alt="' . ':gato' . '" />';
|
||||
|
||||
$b['texts'][] = ':conejito';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/bunny.gif' . '" alt="' . ':conejito' . '" />';
|
||||
|
||||
$b['texts'][] = ':vaca';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/cow.gif' . '" alt="' . ':vaca' . '" />';
|
||||
|
||||
$b['texts'][] = ':cangrejo';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/crab.gif' . '" alt="' . ':cangrejo' . '" />';
|
||||
|
||||
$b['texts'][] = ':delfín';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/dolphin.gif' . '" alt="' . ':delfín' . '" />';
|
||||
|
||||
$b['texts'][] = ':libélula';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/dragonfly.gif' . '" alt="' . ':libélula' . '" />';
|
||||
|
||||
$b['texts'][] = ':rana';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/frog.gif' . '" alt="' . ':rana' . '" />';
|
||||
|
||||
$b['texts'][] = ':hamster';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/hamster.gif' . '" alt="' . ':hamster' . '" />';
|
||||
|
||||
$b['texts'][] = ':mono';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/monkey.gif' . '" alt="' . ':mono' . '" />';
|
||||
|
||||
$b['texts'][] = ':caballo';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/horse.gif' . '" alt="' . ':caballo' . '" />';
|
||||
|
||||
$b['texts'][] = ':loro';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/parrot.gif' . '" alt="' . ':loro' . '" />';
|
||||
|
||||
$b['texts'][] = ':tux';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/tux.gif' . '" alt="' . ':tux' . '" />';
|
||||
|
||||
$b['texts'][] = ':caracol';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/snail.gif' . '" alt="' . ':caracol' . '" />';
|
||||
|
||||
$b['texts'][] = ':oveja';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/sheep.gif' . '" alt="' . ':oveja' . '" />';
|
||||
|
||||
$b['texts'][] = ':perro';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/dog.gif' . '" alt="' . ':perro' . '" />';
|
||||
|
||||
$b['texts'][] = ':elefante';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/elephant.gif' . '" alt="' . ':elefante' . '" />';
|
||||
|
||||
$b['texts'][] = ':pez';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/fish.gif' . '" alt="' . ':pez' . '" />';
|
||||
|
||||
$b['texts'][] = ':jirafa';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/giraffe.gif' . '" alt="' . ':jirafa' . '" />';
|
||||
|
||||
$b['texts'][] = ':cerdo';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/pig.gif' . '" alt="' . ':cerdo' . '" />';
|
||||
|
||||
|
||||
|
||||
#Baby Smileys
|
||||
|
||||
$b['texts'][] = ':bebé';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/babies/baby.gif' . '" alt="' . ':bebé' . '" />';
|
||||
|
||||
$b['texts'][] = ':cuna';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/babies/babycot.gif' . '" alt="' . ':cuna' . '" />';
|
||||
|
||||
|
||||
$b['texts'][] = ':embarazada';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/babies/pregnant.gif' . '" alt="' . ':embarazada' . '" />';
|
||||
|
||||
$b['texts'][] = ':cigüeña';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/babies/stork.gif' . '" alt="' . ':cigüeña' . '" />';
|
||||
|
||||
|
||||
#Confused Smileys
|
||||
$b['texts'][] = ':confundido';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/confused/confused.gif' . '" alt="' . ':confundido' . '" />';
|
||||
|
||||
$b['texts'][] = ':encogehombros';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/confused/shrug.gif' . '" alt="' . ':encogehombros' . '" />';
|
||||
|
||||
$b['texts'][] = ':estúpido';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/confused/stupid.gif' . '" alt="' . ':estúpido' . '" />';
|
||||
|
||||
$b['texts'][] = ':aturdidp';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/confused/dazed.gif' . '" alt="' . ':aturdid' . '" />';
|
||||
|
||||
|
||||
#Cool Smileys
|
||||
|
||||
$b['texts'][] = ':afro';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/cool/affro.gif' . '" alt="' . ':afro' . '" />';
|
||||
|
||||
$b['texts'][] = ':guay';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/cool/cool.gif' . '" alt="' . ':guay' . '" />';
|
||||
|
||||
#Devil/Angel Smileys
|
||||
|
||||
$b['texts'][] = ':ángel';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/devilangel/angel.gif' . '" alt="' . ':ángel' . '" />';
|
||||
|
||||
$b['texts'][] = ':querubín';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/devilangel/cherub.gif' . '" alt="' . ':querubín' . '" />';
|
||||
|
||||
$b['texts'][] = ':ángeldemonio';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/devilangel/blondedevil.gif' . '" alt="' . ':ángeldemonio' . '" />';
|
||||
|
||||
$b['texts'][] = ':gatodemonio';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/devilangel/catdevil.gif' . '" alt="' . ':gatodemonio' . '" />';
|
||||
|
||||
$b['texts'][] = ':diabólico';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/devilangel/devil.gif' . '" alt="' . ':diabólico' . '" />';
|
||||
|
||||
$b['texts'][] = ':adbalancín';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/devilangel/daseesaw.gif' . '" alt="' . ':adbalancín' . '" />';
|
||||
|
||||
$b['texts'][] = ':vuelvedemonio';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/devilangel/turnevil.gif' . '" alt="' . ':vuelvedemonio' . '" />';
|
||||
|
||||
$b['texts'][] = ':santo';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/devilangel/saint.gif' . '" alt="' . ':santo' . '" />';
|
||||
|
||||
$b['texts'][] = ':tumba';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/devilangel/graveside.gif' . '" alt="' . ':tumba' . '" />';
|
||||
|
||||
#Unpleasent smileys.
|
||||
|
||||
$b['texts'][] = ':retrete';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/disgust/toilet.gif' . '" alt="' . ':retrete' . '" />';
|
||||
|
||||
$b['texts'][] = ':pedoencama';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/disgust/fartinbed.gif' . '" alt="' . ':pedoencama' . '" />';
|
||||
|
||||
$b['texts'][] = ':vómito';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/disgust/vomit.gif' . '" alt="' . ':vómito' . '" />';
|
||||
|
||||
$b['texts'][] = ':pedosonrojo';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/disgust/fartblush.gif' . '" alt="' . ':pedosonrojo' . '" />';
|
||||
|
||||
#Drinks
|
||||
|
||||
$b['texts'][] = ':té';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/drink/tea.gif' . '" alt="' . ':té' . '" />';
|
||||
|
||||
$b['texts'][] = ':baba';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/drool/drool.gif' . '" alt="' . ':baba' . '" />';
|
||||
|
||||
#Sad smileys
|
||||
|
||||
$b['texts'][] = ':llorar';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sad/crying.png' . '" alt="' . ':llorar' . '" />';
|
||||
|
||||
$b['texts'][] = ':prisonero';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sad/prisoner.gif' . '" alt="' . ':prisonero' . '" />';
|
||||
|
||||
$b['texts'][] = ':suspiro';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sad/sigh.gif' . '" alt="' . ':suspiro' . '" />';
|
||||
|
||||
#Smoking - only one smiley in here, maybe it needs moving elsewhere?
|
||||
|
||||
$b['texts'][] = ':fumar';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/smoking/smoking.gif' . '" alt="' . ':fumar' . '" />';
|
||||
|
||||
#Sport smileys
|
||||
|
||||
$b['texts'][] = ':baloncesto';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/basketball.gif' . '" alt="' . ':baloncesto' . '" />';
|
||||
|
||||
$b['texts'][] = ':bolos';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/bowling.gif' . '" alt="' . ':bolos' . '" />';
|
||||
|
||||
$b['texts'][] = ':enbici';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/cycling.gif' . '" alt="' . ':enbici' . '" />';
|
||||
|
||||
$b['texts'][] = ':dardos';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/darts.gif' . '" alt="' . ':dardos' . '" />';
|
||||
|
||||
$b['texts'][] = ':esgrima';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/fencing.gif' . '" alt="' . ':esgrima' . '" />';
|
||||
|
||||
$b['texts'][] = ':golf';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/golf.gif' . '" alt="' . ':golf' . '" />';
|
||||
|
||||
$b['texts'][] = ':malabares';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/juggling.gif' . '" alt="' . ':malabares' . '" />';
|
||||
|
||||
$b['texts'][] = ':comba';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/skipping.gif' . '" alt="' . ':comba' . '" />';
|
||||
|
||||
$b['texts'][] = ':tiroconarco';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/archery.gif' . '" alt="' . ':tiroconarco' . '" />';
|
||||
|
||||
$b['texts'][] = ':fútbol';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/football.gif' . '" alt="' . ':fútbol' . '" />';
|
||||
|
||||
$b['texts'][] = ':surf';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/surfing.gif' . '" alt="' . ':surf' . '" />';
|
||||
|
||||
$b['texts'][] = ':billar';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/snooker.gif' . '" alt="' . ':billar' . '" />';
|
||||
|
||||
$b['texts'][] = ':tenis';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/tennis.gif' . '" alt="' . ':tenis' . '" />';
|
||||
|
||||
$b['texts'][] = ':acaballo';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/horseriding.gif' . '" alt="' . ':acaballo' . '" />';
|
||||
|
||||
#Love smileys
|
||||
|
||||
$b['texts'][] = ':tequiero';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/love/iloveyou.gif' . '" alt="' . ':tequiero' . '" />';
|
||||
|
||||
$b['texts'][] = ':enamorada';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/love/inlove.gif' . '" alt="' . ':enamorada' . '" />';
|
||||
|
||||
$b['texts'][] = ':amor';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/love/love.gif' . '" alt="' . ':amor' . '" />';
|
||||
|
||||
$b['texts'][] = ':osoamoroso';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/love/lovebear.gif' . '" alt="' . ':osoamoroso' . '" />';
|
||||
|
||||
$b['texts'][] = ':camaamor';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/love/lovebed.gif' . '" alt="' . ':camaamor' . '" />';
|
||||
|
||||
$b['texts'][] = ':corazónamor';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/love/loveheart.gif' . '" alt="' . ':corazónamor' . '" />';
|
||||
|
||||
#Tired/Sleep smileys
|
||||
|
||||
$b['texts'][] = ':contandoovejas';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/tired/countsheep.gif' . '" alt="' . ':contandoovejas' . '" />';
|
||||
|
||||
$b['texts'][] = ':hamaca';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/tired/hammock.gif' . '" alt="' . ':hamaca' . '" />';
|
||||
|
||||
$b['texts'][] = ':almohada';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/tired/pillow.gif' . '" alt="' . ':almohada' . '" />';
|
||||
|
||||
$b['texts'][] = ':bostezo';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/tired/yawn.gif' . '" alt="' . ':bostezo' . '" />';
|
||||
|
||||
#Fight/Flame/Violent smileys
|
||||
|
||||
$b['texts'][] = ':pistolas';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/2guns.gif' . '" alt="' . ':pistolas' . '" />';
|
||||
|
||||
$b['texts'][] = ':peleamarciano';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/alienfight.gif' . '" alt="' . ':peleamarciano' . '" />';
|
||||
|
||||
$b['texts'][] = ':alfa';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/alpha.png' . '" alt="' . ':alfa' . '" />';
|
||||
|
||||
$b['texts'][] = ':ejército';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/army.gif' . '" alt="' . ':ejército' . '" />';
|
||||
|
||||
$b['texts'][] = ':cabezaflecha';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/arrowhead.gif' . '" alt="' . ':cabezaflecha' . '" />';
|
||||
|
||||
$b['texts'][] = ':bfg';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/bfg.gif' . '" alt="' . ':bfg' . '" />';
|
||||
|
||||
$b['texts'][] = ':arquero';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/bowman.gif' . '" alt="' . ':arquero' . '" />';
|
||||
|
||||
$b['texts'][] = ':motosierra';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/chainsaw.gif' . '" alt="' . ':motosierra' . '" />';
|
||||
|
||||
$b['texts'][] = ':ballesta';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/crossbow.gif' . '" alt="' . ':ballesta' . '" />';
|
||||
|
||||
$b['texts'][] = ':cruzado';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/crusader.gif' . '" alt="' . ':cruzado' . '" />';
|
||||
|
||||
$b['texts'][] = ':muerto';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/dead.gif' . '" alt="' . ':muerto' . '" />';
|
||||
|
||||
$b['texts'][] = ':martillazo';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/hammersplat.gif' . '" alt="' . ':martillazo' . '" />';
|
||||
|
||||
$b['texts'][] = ':pistolalaser';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/lasergun.gif' . '" alt="' . ':pistolalaser' . '" />';
|
||||
|
||||
$b['texts'][] = ':metralleta';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/machinegun.gif' . '" alt="' . ':metralleta' . '" />';
|
||||
|
||||
$b['texts'][] = ':marine';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/marine.gif' . '" alt="' . ':marine' . '" />';
|
||||
|
||||
$b['texts'][] = ':sable';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/sabre.gif' . '" alt="' . ':sable' . '" />';
|
||||
|
||||
$b['texts'][] = ':tanque';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/tank.gif' . '" alt="' . ':tanque' . '" />';
|
||||
|
||||
$b['texts'][] = ':vikingo';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/viking.gif' . '" alt="' . ':vikingo' . '" />';
|
||||
|
||||
$b['texts'][] = ':bandas';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/gangs.gif' . '" alt="' . ':bandas' . '" />';
|
||||
|
||||
$b['texts'][] = ':ácido';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/acid.gif' . '" alt="' . ':ácido' . '" />';
|
||||
|
||||
#Fantasy smileys - monsters and dragons fantasy. The other type of fantasy belongs in adult smileys
|
||||
|
||||
$b['texts'][] = ':alien';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fantasy/alienmonster.gif' . '" alt="' . ':alien' . '" />';
|
||||
|
||||
$b['texts'][] = ':bárbaro';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fantasy/barbarian.gif' . '" alt="' . ':bárbaro' . '" />';
|
||||
|
||||
$b['texts'][] = ':dinosaurio';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fantasy/dinosaur.gif' . '" alt="' . ':dinosaurio' . '" />';
|
||||
|
||||
$b['texts'][] = ':dragón';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fantasy/dragon.gif' . '" alt="' . ':dragón' . '" />';
|
||||
|
||||
$b['texts'][] = ':draco';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fantasy/dragonwhelp.gif' . '" alt="' . ':draco' . '" />';
|
||||
|
||||
$b['texts'][] = ':fantasma';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fantasy/ghost.gif' . '" alt="' . ':fantasma' . '" />';
|
||||
|
||||
$b['texts'][] = ':momia';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fantasy/mummy.gif' . '" alt="' . ':momia' . '" />';
|
||||
|
||||
#Food smileys
|
||||
|
||||
$b['texts'][] = ':mazana';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/food/apple.gif' . '" alt="' . ':mazana' . '" />';
|
||||
|
||||
$b['texts'][] = ':brócoli';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/food/broccoli.gif' . '" alt="' . ':brócoli' . '" />';
|
||||
|
||||
$b['texts'][] = ':pastel';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/food/cake.gif' . '" alt="' . ':pastel' . '" />';
|
||||
|
||||
$b['texts'][] = ':zanahoria';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/food/carrot.gif' . '" alt="' . ':zanahoria' . '" />';
|
||||
|
||||
$b['texts'][] = ':palomitas';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/food/popcorn.gif' . '" alt="' . ':palomitas' . '" />';
|
||||
|
||||
$b['texts'][] = ':tomate';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/food/tomato.gif' . '" alt="' . ':tomate' . '" />';
|
||||
|
||||
$b['texts'][] = ':plátano';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/food/banana.gif' . '" alt="' . ':plátano' . '" />';
|
||||
|
||||
$b['texts'][] = ':cocinar';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/food/cooking.gif' . '" alt="' . ':cocinar' . '" />';
|
||||
|
||||
$b['texts'][] = ':huevofrito';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/food/fryegg.gif' . '" alt="' . ':huevofrito' . '" />';
|
||||
|
||||
#Happy smileys
|
||||
|
||||
$b['texts'][] = ':cloud9';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/happy/cloud9.gif' . '" alt="' . ':cloud9' . '" />';
|
||||
|
||||
$b['texts'][] = ':tearsofjoy';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/happy/tearsofjoy.gif' . '" alt="' . ':tearsofjoy' . '" />';
|
||||
|
||||
#Repsect smileys
|
||||
|
||||
$b['texts'][] = ':reverencia';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/respect/bow.gif' . '" alt="' . ':reverencia' . '" />';
|
||||
|
||||
$b['texts'][] = ':bravo';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/respect/bravo.gif' . '" alt="' . ':bravo' . '" />';
|
||||
|
||||
$b['texts'][] = ':vivaelrey';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/respect/hailking.gif' . '" alt="' . ':vivaelrey' . '" />';
|
||||
|
||||
$b['texts'][] = ':número1';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/respect/number1.gif' . '" alt="' . ':número1' . '" />';
|
||||
|
||||
#Laugh smileys
|
||||
|
||||
$b['texts'][] = ':jajaja';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/laugh/hahaha.gif' . '" alt="' . ':jajaja' . '" />';
|
||||
|
||||
$b['texts'][] = ':jajatv';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/laugh/loltv.gif' . '" alt="' . ':jajatv' . '" />';
|
||||
|
||||
$b['texts'][] = ':meparto';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/laugh/rofl.gif' . '" alt="' . ':meparto' . '" />';
|
||||
|
||||
#Music smileys
|
||||
|
||||
$b['texts'][] = ':dj';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/music/dj.gif' . '" alt="' . ':dj' . '" />';
|
||||
|
||||
$b['texts'][] = ':batería';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/music/drums.gif' . '" alt="' . ':batería' . '" />';
|
||||
|
||||
$b['texts'][] = ':elvis';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/music/elvis.gif' . '" alt="' . ':elivs' . '" />';
|
||||
|
||||
$b['texts'][] = ':guitarra';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/music/guitar.gif' . '" alt="' . ':guitarra' . '" />';
|
||||
|
||||
$b['texts'][] = ':trompeta';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/music/trumpet.gif' . '" alt="' . ':trompeta' . '" />';
|
||||
|
||||
$b['texts'][] = ':violín';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/music/violin.gif' . '" alt="' . ':violín' . '" />';
|
||||
|
||||
#Smileys that used to be in core
|
||||
|
||||
$b['texts'][] = ':cabezagolpe';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/headbang.gif' . '" alt="' . ':cabezagolpe' . '" />';
|
||||
|
||||
$b['texts'][] = ':barba';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/beard.png' . '" alt="' . ':barba' . '" />';
|
||||
|
||||
$b['texts'][] = ':barbablanca';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/whitebeard.png' . '" alt="' . ':barbablanca' . '" />';
|
||||
|
||||
$b['texts'][] = ':saludosurf';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/shaka.gif' . '" alt="' . ':saludosurf' . '" />';
|
||||
|
||||
$b['texts'][] = ':\\.../';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/shaka.gif' . '" alt="' . ':\\.../' . '" />';
|
||||
|
||||
$b['texts'][] = ':\\ooo/';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/shaka.gif' . '" alt="' . ':\\ooo/' . '" />';
|
||||
|
||||
$b['texts'][] = ':cabezamesa';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/headbang.gif' . '" alt="' . ':cabezamesa' . '" />';
|
||||
|
||||
#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'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/laughing.gif' . '" alt="' . ':-d' . '" />';
|
||||
|
||||
$b['texts'][] = ':-o';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/surprised.gif' . '" alt="' . ':-o' . '" />';
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
491
smiley_pack/lang/smiley_pack_fr/smiley_pack_fr.php
Normal file
491
smiley_pack/lang/smiley_pack_fr/smiley_pack_fr.php
Normal file
|
@ -0,0 +1,491 @@
|
|||
<?php
|
||||
/*
|
||||
* Name: Smiley Pack (Français)
|
||||
* Description: Pack of smileys that make master too AOLish.
|
||||
* Version: 1.01
|
||||
* Author: Thomas Willingham (based on Mike Macgirvin's Adult Smile template)
|
||||
* All smileys from sites offering them as Public Domain
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
function smiley_pack_fr_install() {
|
||||
register_hook('smilie', 'addon/smiley_pack_fr/smiley_pack_fr.php', 'smiley_pack_fr_smilies');
|
||||
}
|
||||
|
||||
function smiley_pack_fr_uninstall() {
|
||||
unregister_hook('smilie', 'addon/smiley_pack_fr/smiley_pack_fr.php', 'smiley_pack_fr_smilies');
|
||||
}
|
||||
|
||||
|
||||
|
||||
function smiley_pack_fr_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'][] = ':fleurslapin';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/bunnyflowers.gif' . '" alt="' . ':fleurslapin' . '" />';
|
||||
|
||||
$b['texts'][] = ':poussin';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/chick.gif' . '" alt="' . ':poussin' . '" />';
|
||||
|
||||
$b['texts'][] = ':bourdon';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/bee.gif' . '" alt="' . ':bourdon' . '" />';
|
||||
|
||||
$b['texts'][] = ':coccinelle';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/ladybird.gif' . '" alt="' . ':coccinelle' . '" />';
|
||||
|
||||
$b['texts'][] = ':araignée';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/bigspider.gif' . '" alt="' . ':araignée' . '" />';
|
||||
|
||||
$b['texts'][] = ':chat';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/cat.gif' . '" alt="' . ':chat' . '" />';
|
||||
|
||||
$b['texts'][] = ':lapin';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/bunny.gif' . '" alt="' . ':lapin' . '" />';
|
||||
|
||||
$b['texts'][] = ':poussin';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/chick.gif' . '" alt="' . ':poussin' . '" />';
|
||||
|
||||
$b['texts'][] = ':vache';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/cow.gif' . '" alt="' . ':vache' . '" />';
|
||||
|
||||
$b['texts'][] = ':crabe';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/crab.gif' . '" alt="' . ':crabe' . '" />';
|
||||
|
||||
$b['texts'][] = ':dauphin';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/dolphin.gif' . '" alt="' . ':dauphin' . '" />';
|
||||
|
||||
$b['texts'][] = ':libellule';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/dragonfly.gif' . '" alt="' . ':libellule' . '" />';
|
||||
|
||||
$b['texts'][] = ':grenouille';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/frog.gif' . '" alt="' . ':grenouille' . '" />';
|
||||
|
||||
$b['texts'][] = ':hamster';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/hamster.gif' . '" alt="' . ':hamster' . '" />';
|
||||
|
||||
$b['texts'][] = ':singe';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/monkey.gif' . '" alt="' . ':singe' . '" />';
|
||||
|
||||
$b['texts'][] = ':cheval';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/horse.gif' . '" alt="' . ':cheval' . '" />';
|
||||
|
||||
$b['texts'][] = ':perroquet';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/parrot.gif' . '" alt="' . ':perroquet' . '" />';
|
||||
|
||||
$b['texts'][] = ':tux';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/tux.gif' . '" alt="' . ':tux' . '" />';
|
||||
|
||||
$b['texts'][] = ':escargot';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/snail.gif' . '" alt="' . ':escargot' . '" />';
|
||||
|
||||
$b['texts'][] = ':mouton';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/sheep.gif' . '" alt="' . ':mouton' . '" />';
|
||||
|
||||
$b['texts'][] = ':chien';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/dog.gif' . '" alt="' . ':chien' . '" />';
|
||||
|
||||
$b['texts'][] = ':éléphant';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/elephant.gif' . '" alt="' . ':éléphant' . '" />';
|
||||
|
||||
$b['texts'][] = ':poisson';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/fish.gif' . '" alt="' . ':poisson' . '" />';
|
||||
|
||||
$b['texts'][] = ':girafe';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/giraffe.gif' . '" alt="' . ':girafe' . '" />';
|
||||
|
||||
$b['texts'][] = ':cochon';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/pig.gif' . '" alt="' . ':cochon' . '" />';
|
||||
|
||||
|
||||
|
||||
#Baby Smileys
|
||||
|
||||
$b['texts'][] = ':bébé';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/babies/baby.gif' . '" alt="' . ':bébé' . '" />';
|
||||
|
||||
$b['texts'][] = ':litbébé';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/babies/babycot.gif' . '" alt="' . ':litbébé' . '" />';
|
||||
|
||||
|
||||
$b['texts'][] = ':enceinte';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/babies/pregnant.gif' . '" alt="' . ':enceinte' . '" />';
|
||||
|
||||
$b['texts'][] = ':cigogne';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/babies/stork.gif' . '" alt="' . ':cigogne' . '" />';
|
||||
|
||||
|
||||
#Confused Smileys
|
||||
$b['texts'][] = ':paumé';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/confused/confused.gif' . '" alt="' . ':paumé' . '" />';
|
||||
|
||||
$b['texts'][] = ':hausseépaules';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/confused/shrug.gif' . '" alt="' . ':hausseépaules' . '" />';
|
||||
|
||||
$b['texts'][] = ':stupide';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/confused/stupid.gif' . '" alt="' . ':stupide' . '" />';
|
||||
|
||||
$b['texts'][] = ':hébété';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/confused/dazed.gif' . '" alt="' . ':hébété' . '" />';
|
||||
|
||||
|
||||
#Cool Smileys
|
||||
|
||||
$b['texts'][] = ':afro';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/cool/affro.gif' . '" alt="' . ':afro' . '" />';
|
||||
|
||||
$b['texts'][] = ':cool';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/cool/cool.gif' . '" alt="' . ':cool' . '" />';
|
||||
|
||||
#Devil/Angel Smileys
|
||||
|
||||
$b['texts'][] = ':ange';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/devilangel/angel.gif' . '" alt="' . ':ange' . '" />';
|
||||
|
||||
$b['texts'][] = ':chérubin';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/devilangel/cherub.gif' . '" alt="' . ':chérubin' . '" />';
|
||||
|
||||
$b['texts'][] = ':démonange';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/devilangel/blondedevil.gif' . '" alt="' . ':démonange' . '" />';
|
||||
|
||||
$b['texts'][] = ':diablechat';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/devilangel/catdevil.gif' . '" alt="' . ':diablechat' . '" />';
|
||||
|
||||
$b['texts'][] = ':démoniaque';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/devilangel/devil.gif' . '" alt="' . ':démoniaque' . '" />';
|
||||
|
||||
$b['texts'][] = ':bascule';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/devilangel/daseesaw.gif' . '" alt="' . ':bascule' . '" />';
|
||||
|
||||
$b['texts'][] = ':possédé';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/devilangel/turnevil.gif' . '" alt="' . ':possédé' . '" />';
|
||||
|
||||
$b['texts'][] = ':saint';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/devilangel/saint.gif' . '" alt="' . ':saint' . '" />';
|
||||
|
||||
$b['texts'][] = ':tombe';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/devilangel/graveside.gif' . '" alt="' . ':tombe' . '" />';
|
||||
|
||||
#Unpleasent smileys.
|
||||
|
||||
$b['texts'][] = ':toilettes';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/disgust/toilet.gif' . '" alt="' . ':toilettes' . '" />';
|
||||
|
||||
$b['texts'][] = ':pèteaulit';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/disgust/fartinbed.gif' . '" alt="' . ':pèteaulit' . '" />';
|
||||
|
||||
$b['texts'][] = ':vomit';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/disgust/vomit.gif' . '" alt="' . ':vomit' . '" />';
|
||||
|
||||
$b['texts'][] = ':pet';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/disgust/fartblush.gif' . '" alt="' . ':pet' . '" />';
|
||||
|
||||
#Drinks
|
||||
|
||||
$b['texts'][] = ':thé';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/drink/tea.gif' . '" alt="' . ':thé' . '" />';
|
||||
|
||||
$b['texts'][] = ':salive';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/drool/drool.gif' . '" alt="' . ':salive' . '" />';
|
||||
|
||||
#Sad smileys
|
||||
|
||||
$b['texts'][] = ':pleure';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sad/crying.png' . '" alt="' . ':pleure' . '" />';
|
||||
|
||||
$b['texts'][] = ':prisonnier';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sad/prisoner.gif' . '" alt="' . ':prisonnier' . '" />';
|
||||
|
||||
$b['texts'][] = ':soupir';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sad/sigh.gif' . '" alt="' . ':soupir' . '" />';
|
||||
|
||||
#Smoking - only one smiley in here, maybe it needs moving elsewhere?
|
||||
|
||||
$b['texts'][] = ':fume';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/smoking/smoking.gif' . '" alt="' . ':fume' . '" />';
|
||||
|
||||
#Sport smileys
|
||||
|
||||
$b['texts'][] = ':basket';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/basketball.gif' . '" alt="' . ':basket' . '" />';
|
||||
|
||||
$b['texts'][] = ':bowling';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/bowling.gif' . '" alt="' . ':bowling' . '" />';
|
||||
|
||||
$b['texts'][] = ':vélo';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/cycling.gif' . '" alt="' . ':vélo' . '" />';
|
||||
|
||||
$b['texts'][] = ':fléchettes';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/darts.gif' . '" alt="' . ':fléchettes' . '" />';
|
||||
|
||||
$b['texts'][] = ':escrime';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/fencing.gif' . '" alt="' . ':escrime' . '" />';
|
||||
|
||||
$b['texts'][] = ':golf';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/golf.gif' . '" alt="' . ':golf' . '" />';
|
||||
|
||||
$b['texts'][] = ':jonglage';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/juggling.gif' . '" alt="' . ':jonglage' . '" />';
|
||||
|
||||
$b['texts'][] = ':sautàlacorde';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/skipping.gif' . '" alt="' . ':sautàlacorde' . '" />';
|
||||
|
||||
$b['texts'][] = ':arc';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/archery.gif' . '" alt="' . ':arc' . '" />';
|
||||
|
||||
$b['texts'][] = ':football';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/football.gif' . '" alt="' . ':football' . '" />';
|
||||
|
||||
$b['texts'][] = ':surf';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/surfing.gif' . '" alt="' . ':surf' . '" />';
|
||||
|
||||
$b['texts'][] = ':billard';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/snooker.gif' . '" alt="' . ':billard' . '" />';
|
||||
|
||||
$b['texts'][] = ':tennis';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/tennis.gif' . '" alt="' . ':tennis' . '" />';
|
||||
|
||||
$b['texts'][] = ':équitation';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sport/horseriding.gif' . '" alt="' . ':équitation' . '" />';
|
||||
|
||||
#Love smileys
|
||||
|
||||
$b['texts'][] = ':jetaime';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/love/iloveyou.gif' . '" alt="' . ':jetaime' . '" />';
|
||||
|
||||
$b['texts'][] = ':amoureux';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/love/inlove.gif' . '" alt="' . ':amoureux' . '" />';
|
||||
|
||||
$b['texts'][] = ':love';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/love/love.gif' . '" alt="' . ':love' . '" />';
|
||||
|
||||
$b['texts'][] = ':oursamour';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/love/lovebear.gif' . '" alt="' . ':oursamour' . '" />';
|
||||
|
||||
$b['texts'][] = ':amourlit';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/love/lovebed.gif' . '" alt="' . ':amourlit' . '" />';
|
||||
|
||||
$b['texts'][] = ':coeur';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/love/loveheart.gif' . '" alt="' . ':coeur' . '" />';
|
||||
|
||||
#Tired/Sleep smileys
|
||||
|
||||
$b['texts'][] = ':comptemoutons';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/tired/countsheep.gif' . '" alt="' . ':comptemoutons' . '" />';
|
||||
|
||||
$b['texts'][] = ':hamac';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/tired/hammock.gif' . '" alt="' . ':hamac' . '" />';
|
||||
|
||||
$b['texts'][] = ':oreiller';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/tired/pillow.gif' . '" alt="' . ':oreiller' . '" />';
|
||||
|
||||
$b['texts'][] = ':bâille';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/tired/yawn.gif' . '" alt="' . ':bâille' . '" />';
|
||||
|
||||
#Fight/Flame/Violent smileys
|
||||
|
||||
$b['texts'][] = ':2pistolets';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/2guns.gif' . '" alt="' . ':2pistolets' . '" />';
|
||||
|
||||
$b['texts'][] = ':combatalien';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/alienfight.gif' . '" alt="' . ':combatalien' . '" />';
|
||||
|
||||
$b['texts'][] = ':alpha';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/alpha.png' . '" alt="' . ':alpha' . '" />';
|
||||
|
||||
$b['texts'][] = ':armée';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/army.gif' . '" alt="' . ':armée' . '" />';
|
||||
|
||||
$b['texts'][] = ':flèche';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/arrowhead.gif' . '" alt="' . ':flèche' . '" />';
|
||||
|
||||
$b['texts'][] = ':bfg';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/bfg.gif' . '" alt="' . ':bfg' . '" />';
|
||||
|
||||
$b['texts'][] = ':archer';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/bowman.gif' . '" alt="' . ':archer' . '" />';
|
||||
|
||||
$b['texts'][] = ':tronçonneuse';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/chainsaw.gif' . '" alt="' . ':tronçonneuse' . '" />';
|
||||
|
||||
$b['texts'][] = ':arbalète';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/crossbow.gif' . '" alt="' . ':arbalète' . '" />';
|
||||
|
||||
$b['texts'][] = ':croisé';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/crusader.gif' . '" alt="' . ':croisé' . '" />';
|
||||
|
||||
$b['texts'][] = ':mort';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/dead.gif' . '" alt="' . ':mort' . '" />';
|
||||
|
||||
$b['texts'][] = ':marteau';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/hammersplat.gif' . '" alt="' . ':marteau' . '" />';
|
||||
|
||||
$b['texts'][] = ':pistoletlaser';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/lasergun.gif' . '" alt="' . ':pistoletlaser' . '" />';
|
||||
|
||||
$b['texts'][] = ':mitrailleuse';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/machinegun.gif' . '" alt="' . ':mitrailleuse' . '" />';
|
||||
|
||||
$b['texts'][] = ':marine';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/marine.gif' . '" alt="' . ':marine' . '" />';
|
||||
|
||||
$b['texts'][] = ':sabre';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/sabre.gif' . '" alt="' . ':sabre' . '" />';
|
||||
|
||||
$b['texts'][] = ':tank';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/tank.gif' . '" alt="' . ':tank' . '" />';
|
||||
|
||||
$b['texts'][] = ':viking';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/viking.gif' . '" alt="' . ':viking' . '" />';
|
||||
|
||||
$b['texts'][] = ':gangs';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/gangs.gif' . '" alt="' . ':gangs' . '" />';
|
||||
|
||||
$b['texts'][] = ':acide';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/acid.gif' . '" alt="' . ':acide' . '" />';
|
||||
|
||||
#Fantasy smileys - monsters and dragons fantasy. The other type of fantasy belongs in adult smileys
|
||||
|
||||
$b['texts'][] = ':monstrealien';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fantasy/alienmonster.gif' . '" alt="' . ':monstrealien' . '" />';
|
||||
|
||||
$b['texts'][] = ':barbare';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fantasy/barbarian.gif' . '" alt="' . ':barbare' . '" />';
|
||||
|
||||
$b['texts'][] = ':dinosaure';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fantasy/dinosaur.gif' . '" alt="' . ':dinosaure' . '" />';
|
||||
|
||||
$b['texts'][] = ':dragon';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fantasy/dragon.gif' . '" alt="' . ':dragon' . '" />';
|
||||
|
||||
$b['texts'][] = ':petitdragon';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fantasy/dragonwhelp.gif' . '" alt="' . ':petitdragon' . '" />';
|
||||
|
||||
$b['texts'][] = ':fantôme';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fantasy/ghost.gif' . '" alt="' . ':fantôme' . '" />';
|
||||
|
||||
$b['texts'][] = ':momie';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fantasy/mummy.gif' . '" alt="' . ':momie' . '" />';
|
||||
|
||||
#Food smileys
|
||||
|
||||
$b['texts'][] = ':pomme';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/food/apple.gif' . '" alt="' . ':pomme' . '" />';
|
||||
|
||||
$b['texts'][] = ':brocoli';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/food/broccoli.gif' . '" alt="' . ':brocoli' . '" />';
|
||||
|
||||
$b['texts'][] = ':gâteau';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/food/cake.gif' . '" alt="' . ':gâteau' . '" />';
|
||||
|
||||
$b['texts'][] = ':carotte';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/food/carrot.gif' . '" alt="' . ':carotte' . '" />';
|
||||
|
||||
$b['texts'][] = ':popcorn';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/food/popcorn.gif' . '" alt="' . ':popcorn' . '" />';
|
||||
|
||||
$b['texts'][] = ':tomate';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/food/tomato.gif' . '" alt="' . ':tomate' . '" />';
|
||||
|
||||
$b['texts'][] = ':banane';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/food/banana.gif' . '" alt="' . ':banane' . '" />';
|
||||
|
||||
$b['texts'][] = ':cuisine';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/food/cooking.gif' . '" alt="' . ':cuisine' . '" />';
|
||||
|
||||
$b['texts'][] = ':oeufauplat';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/food/fryegg.gif' . '" alt="' . ':oeufauplat' . '" />';
|
||||
|
||||
#Happy smileys
|
||||
|
||||
$b['texts'][] = ':nuage';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/happy/cloud9.gif' . '" alt="' . ':nuage' . '" />';
|
||||
|
||||
$b['texts'][] = ':larmesdejoie';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/happy/tearsofjoy.gif' . '" alt="' . ':larmesdejoie' . '" />';
|
||||
|
||||
#Repsect smileys
|
||||
|
||||
$b['texts'][] = ':courbette';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/respect/bow.gif' . '" alt="' . ':courbette' . '" />';
|
||||
|
||||
$b['texts'][] = ':bravo';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/respect/bravo.gif' . '" alt="' . ':bravo' . '" />';
|
||||
|
||||
$b['texts'][] = ':viveleroi';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/respect/hailking.gif' . '" alt="' . ':viveleroi' . '" />';
|
||||
|
||||
$b['texts'][] = ':numéro1';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/respect/number1.gif' . '" alt="' . ':numéro1' . '" />';
|
||||
|
||||
#Laugh smileys
|
||||
|
||||
$b['texts'][] = ':hahaha';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/laugh/hahaha.gif' . '" alt="' . ':hahaha' . '" />';
|
||||
|
||||
$b['texts'][] = ':loltv';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/laugh/loltv.gif' . '" alt="' . ':loltv' . '" />';
|
||||
|
||||
$b['texts'][] = ':rofl';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/laugh/rofl.gif' . '" alt="' . ':rofl' . '" />';
|
||||
|
||||
#Music smileys
|
||||
|
||||
$b['texts'][] = ':dj';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/music/dj.gif' . '" alt="' . ':dj' . '" />';
|
||||
|
||||
$b['texts'][] = ':batterie';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/music/drums.gif' . '" alt="' . ':batterie' . '" />';
|
||||
|
||||
$b['texts'][] = ':elvis';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/music/elvis.gif' . '" alt="' . ':elivs' . '" />';
|
||||
|
||||
$b['texts'][] = ':guitare';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/music/guitar.gif' . '" alt="' . ':guitare' . '" />';
|
||||
|
||||
$b['texts'][] = ':trompette';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/music/trumpet.gif' . '" alt="' . ':trompette' . '" />';
|
||||
|
||||
$b['texts'][] = ':violon';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/music/violin.gif' . '" alt="' . ':violon' . '" />';
|
||||
|
||||
#Smileys that used to be in core
|
||||
|
||||
$b['texts'][] = ':cognetête';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/headbang.gif' . '" alt="' . ':cognetête' . '" />';
|
||||
|
||||
$b['texts'][] = ':barbu';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/beard.png' . '" alt="' . ':barbu' . '" />';
|
||||
|
||||
$b['texts'][] = ':barbeblanche';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/whitebeard.png' . '" alt="' . ':barbeblanche' . '" />';
|
||||
|
||||
$b['texts'][] = ':shaka';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/shaka.gif' . '" alt="' . ':shaka' . '" />';
|
||||
|
||||
$b['texts'][] = ':\\.../';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/shaka.gif' . '" alt="' . ':\\.../' . '" />';
|
||||
|
||||
$b['texts'][] = ':\\ooo/';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/shaka.gif' . '" alt="' . ':\\ooo/' . '" />';
|
||||
|
||||
$b['texts'][] = ':tête';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/headbang.gif' . '" alt="' . ':tête' . '" />';
|
||||
|
||||
#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'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/laughing.gif' . '" alt="' . ':-d' . '" />';
|
||||
|
||||
$b['texts'][] = ':-o';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/surprised.gif' . '" alt="' . ':-o' . '" />';
|
||||
|
||||
}
|
|
@ -2,13 +2,15 @@
|
|||
/*
|
||||
* Name: Smiley Pack
|
||||
* Description: Pack of smileys that make master too AOLish.
|
||||
* Version: 1.0
|
||||
* Version: 1.02
|
||||
* Author: Thomas Willingham (based on Mike Macgirvin's Adult Smile template)
|
||||
* All smileys from sites offering them as Public Domain
|
||||
*
|
||||
*
|
||||
*/
|
||||
|
||||
/**
|
||||
|
||||
*/
|
||||
|
||||
function smiley_pack_install() {
|
||||
register_hook('smilie', 'addon/smiley_pack/smiley_pack.php', 'smiley_pack_smilies');
|
||||
}
|
||||
|
@ -51,9 +53,6 @@ function smiley_pack_smilies(&$a,&$b) {
|
|||
$b['texts'][] = ':bunny';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/bunny.gif' . '" alt="' . ':bunny' . '" />';
|
||||
|
||||
$b['texts'][] = ':chick';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/chick.gif' . '" alt="' . ':chick' . '" />';
|
||||
|
||||
$b['texts'][] = ':cow';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/animals/cow.gif' . '" alt="' . ':cow' . '" />';
|
||||
|
||||
|
@ -204,6 +203,9 @@ function smiley_pack_smilies(&$a,&$b) {
|
|||
$b['texts'][] = ':prisoner';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sad/prisoner.gif' . '" alt="' . ':prisoner' . '" />';
|
||||
|
||||
$b['texts'][] = ':sigh';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/sad/sigh.gif' . '" alt="' . ':sigh' . '" />';
|
||||
|
||||
#Smoking - only one smiley in here, maybe it needs moving elsewhere?
|
||||
|
||||
$b['texts'][] = ':smoking';
|
||||
|
@ -295,6 +297,9 @@ function smiley_pack_smilies(&$a,&$b) {
|
|||
$b['texts'][] = ':alienfight';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/alienfight.gif' . '" alt="' . ':alienfight' . '" />';
|
||||
|
||||
$b['texts'][] = ':alpha';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/alpha.png' . '" alt="' . ':alpha' . '" />';
|
||||
|
||||
$b['texts'][] = ':army';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/fight/army.gif' . '" alt="' . ':army' . '" />';
|
||||
|
||||
|
@ -472,7 +477,7 @@ function smiley_pack_smilies(&$a,&$b) {
|
|||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/shaka.gif' . '" alt="' . ':\\ooo/' . '" />';
|
||||
|
||||
$b['texts'][] = ':headdesk';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/headdesk.gif' . '" alt="' . ':headdesk' . '" />';
|
||||
$b['icons'][] = '<img src="' . $a->get_baseurl() . '/addon/smiley_pack/icons/oldcore/headbang.gif' . '" alt="' . ':headdesk' . '" />';
|
||||
|
||||
#These two are still in core, so oldcore isn't strictly right, but we don't want too many directories
|
||||
|
||||
|
|
BIN
startpage.tgz
Normal file
BIN
startpage.tgz
Normal file
Binary file not shown.
16
startpage/startpage.css
Normal file
16
startpage/startpage.css
Normal file
|
@ -0,0 +1,16 @@
|
|||
|
||||
|
||||
|
||||
#startpage-page-label {
|
||||
float: left;
|
||||
width: 200px;
|
||||
margin-bottom: 25px;
|
||||
}
|
||||
|
||||
#startpage-page {
|
||||
float: left;
|
||||
}
|
||||
|
||||
#startpage-desc {
|
||||
margin-bottom: 10px;
|
||||
}
|
94
startpage/startpage.php
Normal file
94
startpage/startpage.php
Normal file
|
@ -0,0 +1,94 @@
|
|||
<?php
|
||||
/**
|
||||
* Name: Start Page
|
||||
* Description: Set a preferred page to load on login from home page
|
||||
* Version: 1.0
|
||||
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
function startpage_install() {
|
||||
register_hook('home_init', 'addon/startpage/startpage.php', 'startpage_home_init');
|
||||
register_hook('plugin_settings', 'addon/startpage/startpage.php', 'startpage_settings');
|
||||
register_hook('plugin_settings_post', 'addon/startpage/startpage.php', 'startpage_settings_post');
|
||||
}
|
||||
|
||||
|
||||
function startpage_uninstall() {
|
||||
unregister_hook('home_init', 'addon/startpage/startpage.php', 'startpage_home_init');
|
||||
unregister_hook('plugin_settings', 'addon/startpage/startpage.php', 'startpage_settings');
|
||||
unregister_hook('plugin_settings_post', 'addon/startpage/startpage.php', 'startpage_settings_post');
|
||||
}
|
||||
|
||||
|
||||
|
||||
function startpage_home_init($a, $b) {
|
||||
if(! local_user())
|
||||
return;
|
||||
|
||||
$page = get_pconfig(local_user(),'startpage','startpage');
|
||||
if(strlen($page)) {
|
||||
$slash = ((strpos($page,'/') === 0) ? true : false);
|
||||
if(stristr($page,'://'))
|
||||
goaway($page);
|
||||
goaway($a->get_baseurl() . (($slash) ? '' : '/') . $page);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* 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 startpage_settings_post($a,$post) {
|
||||
if(! local_user())
|
||||
return;
|
||||
if($_POST['startpage-submit'])
|
||||
set_pconfig(local_user(),'startpage','startpage',strip_tags(trim($_POST['startpage'])));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Called from the Plugin Setting form.
|
||||
* Add our own settings info to the page.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
|
||||
function startpage_settings(&$a,&$s) {
|
||||
|
||||
if(! local_user())
|
||||
return;
|
||||
|
||||
/* Add our stylesheet to the page so we can make our settings look nice */
|
||||
|
||||
$a->page['htmlhead'] .= '<link rel="stylesheet" type="text/css" href="' . $a->get_baseurl() . '/addon/startpage/startpage.css' . '" media="all" />' . "\r\n";
|
||||
|
||||
/* Get the current state of our config variable */
|
||||
|
||||
$page = get_pconfig(local_user(),'startpage','startpage');
|
||||
|
||||
|
||||
/* Add some HTML to the existing form */
|
||||
|
||||
$s .= '<div class="settings-block">';
|
||||
$s .= '<h3>' . t('Startpage Settings') . '</h3>';
|
||||
$s .= '<div id="startpage-page-wrapper">';
|
||||
$s .= '<label id="startpage-page-label" for="startpage-page">' . t('Home page to load after login - leave blank for profile wall') . '</label>';
|
||||
$s .= '<input id="startpage-page" type="text" name="startpage" value="' . $page . '" />';
|
||||
$s .= '</div><div class="clear"></div>';
|
||||
$s .= '<div id="startpage-desc">' . t('Examples: "network" or "notifications/system"') . '</div>';
|
||||
|
||||
/* provide a submit button */
|
||||
|
||||
$s .= '<div class="settings-submit-wrapper" ><input type="submit" name="startpage-submit" class="settings-submit" value="' . t('Submit') . '" /></div></div>';
|
||||
|
||||
}
|
BIN
testdrive.tgz
Normal file → Executable file
BIN
testdrive.tgz
Normal file → Executable file
Binary file not shown.
|
@ -14,6 +14,9 @@ function testdrive_install() {
|
|||
|
||||
register_hook('register_account', 'addon/testdrive/testdrive.php', 'testdrive_register_account');
|
||||
register_hook('cron', 'addon/testdrive/testdrive.php', 'testdrive_cron');
|
||||
register_hook('enotify','addon/testdrive/testdrive.php', 'testdrive_enotify');
|
||||
register_hook('globaldir_update','addon/testdrive/testdrive.php', 'testdrive_globaldir_update');
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@ -21,9 +24,15 @@ function testdrive_uninstall() {
|
|||
|
||||
unregister_hook('register_account', 'addon/testdrive/testdrive.php', 'testdrive_register_account');
|
||||
unregister_hook('cron', 'addon/testdrive/testdrive.php', 'testdrive_cron');
|
||||
unregister_hook('enotify','addon/testdrive/testdrive.php', 'testdrive_enotify');
|
||||
unregister_hook('globaldir_update','addon/testdrive/testdrive.php', 'testdrive_globaldir_update');
|
||||
|
||||
}
|
||||
|
||||
function testdrive_globaldir_update($a,&$b) {
|
||||
$b['url'] = '';
|
||||
}
|
||||
|
||||
function testdrive_register_account($a,$b) {
|
||||
|
||||
$uid = $b;
|
||||
|
|
Loading…
Reference in a new issue