From: Guillaume Bandet Date: Tue, 10 Jun 2008 09:59:48 +0000 (+0200) Subject: Adds icons for networking addresses X-Git-Tag: xorg/1.0.0~332^2~570 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=40176c6c47a68a98c0cf9f57d19fb426e49ee536;p=platal.git Adds icons for networking addresses --- diff --git a/htdocs/images/networking/aim.png b/htdocs/images/networking/aim.png new file mode 100644 index 0000000..c47703b Binary files /dev/null and b/htdocs/images/networking/aim.png differ diff --git a/htdocs/images/networking/bonjour.png b/htdocs/images/networking/bonjour.png new file mode 100644 index 0000000..8ff4740 Binary files /dev/null and b/htdocs/images/networking/bonjour.png differ diff --git a/htdocs/images/networking/facebook.png b/htdocs/images/networking/facebook.png new file mode 100644 index 0000000..2731863 Binary files /dev/null and b/htdocs/images/networking/facebook.png differ diff --git a/htdocs/images/networking/gadu-gadu.png b/htdocs/images/networking/gadu-gadu.png new file mode 100644 index 0000000..2d060a1 Binary files /dev/null and b/htdocs/images/networking/gadu-gadu.png differ diff --git a/htdocs/images/networking/gtalk.png b/htdocs/images/networking/gtalk.png new file mode 100644 index 0000000..e80b03b Binary files /dev/null and b/htdocs/images/networking/gtalk.png differ diff --git a/htdocs/images/networking/icq.png b/htdocs/images/networking/icq.png new file mode 100644 index 0000000..d08637c Binary files /dev/null and b/htdocs/images/networking/icq.png differ diff --git a/htdocs/images/networking/irc.png b/htdocs/images/networking/irc.png new file mode 100644 index 0000000..19d578d Binary files /dev/null and b/htdocs/images/networking/irc.png differ diff --git a/htdocs/images/networking/jabber.png b/htdocs/images/networking/jabber.png new file mode 100644 index 0000000..77a3f64 Binary files /dev/null and b/htdocs/images/networking/jabber.png differ diff --git a/htdocs/images/networking/lastfm.png b/htdocs/images/networking/lastfm.png new file mode 100644 index 0000000..d2e1075 Binary files /dev/null and b/htdocs/images/networking/lastfm.png differ diff --git a/htdocs/images/networking/linkedin.png b/htdocs/images/networking/linkedin.png new file mode 100644 index 0000000..3c796dc Binary files /dev/null and b/htdocs/images/networking/linkedin.png differ diff --git a/htdocs/images/networking/meanwhile.png b/htdocs/images/networking/meanwhile.png new file mode 100644 index 0000000..59b819c Binary files /dev/null and b/htdocs/images/networking/meanwhile.png differ diff --git a/htdocs/images/networking/msn.png b/htdocs/images/networking/msn.png new file mode 100644 index 0000000..896d90c Binary files /dev/null and b/htdocs/images/networking/msn.png differ diff --git a/htdocs/images/networking/myspace.png b/htdocs/images/networking/myspace.png new file mode 100644 index 0000000..040f3d1 Binary files /dev/null and b/htdocs/images/networking/myspace.png differ diff --git a/htdocs/images/networking/netvibes.png b/htdocs/images/networking/netvibes.png new file mode 100644 index 0000000..b464fff Binary files /dev/null and b/htdocs/images/networking/netvibes.png differ diff --git a/htdocs/images/networking/novell.png b/htdocs/images/networking/novell.png new file mode 100644 index 0000000..76ca119 Binary files /dev/null and b/htdocs/images/networking/novell.png differ diff --git a/htdocs/images/networking/qq.png b/htdocs/images/networking/qq.png new file mode 100644 index 0000000..d5f51ac Binary files /dev/null and b/htdocs/images/networking/qq.png differ diff --git a/htdocs/images/networking/silc.png b/htdocs/images/networking/silc.png new file mode 100644 index 0000000..2fb91eb Binary files /dev/null and b/htdocs/images/networking/silc.png differ diff --git a/htdocs/images/networking/simple.png b/htdocs/images/networking/simple.png new file mode 100644 index 0000000..14db36c Binary files /dev/null and b/htdocs/images/networking/simple.png differ diff --git a/htdocs/images/networking/viadeo.png b/htdocs/images/networking/viadeo.png new file mode 100644 index 0000000..ddf5aca Binary files /dev/null and b/htdocs/images/networking/viadeo.png differ diff --git a/htdocs/images/networking/web.gif b/htdocs/images/networking/web.gif new file mode 100644 index 0000000..9fad760 Binary files /dev/null and b/htdocs/images/networking/web.gif differ diff --git a/htdocs/images/networking/yahoo.png b/htdocs/images/networking/yahoo.png new file mode 100644 index 0000000..4cff5da Binary files /dev/null and b/htdocs/images/networking/yahoo.png differ diff --git a/htdocs/images/networking/youtube.png b/htdocs/images/networking/youtube.png new file mode 100644 index 0000000..5024200 Binary files /dev/null and b/htdocs/images/networking/youtube.png differ diff --git a/htdocs/images/networking/zephyr.png b/htdocs/images/networking/zephyr.png new file mode 100644 index 0000000..fcc40a8 Binary files /dev/null and b/htdocs/images/networking/zephyr.png differ diff --git a/modules/profile.php b/modules/profile.php index f21e463..5061c2c 100644 --- a/modules/profile.php +++ b/modules/profile.php @@ -35,6 +35,7 @@ class ProfileModule extends PLModule 'profile/ajax/address' => $this->make_hook('ajax_address', AUTH_COOKIE, 'user', NO_AUTH), 'profile/ajax/tel' => $this->make_hook('ajax_tel', AUTH_COOKIE, 'user', NO_AUTH), 'profile/ajax/medal' => $this->make_hook('ajax_medal', AUTH_COOKIE, 'user', NO_AUTH), + 'profile/networking' => $this->make_hook('networking', AUTH_PUBLIC), 'profile/ajax/job' => $this->make_hook('ajax_job', AUTH_COOKIE, 'user', NO_AUTH), 'profile/ajax/secteur' => $this->make_hook('ajax_secteur', AUTH_COOKIE, 'user', NO_AUTH), 'profile/ajax/skill' => $this->make_hook('ajax_skill', AUTH_COOKIE, 'user', NO_AUTH), @@ -125,6 +126,19 @@ class ProfileModule extends PLModule exit; } + function handler_networking(&$page, $mid) + { + $res = XDB::query("SELECT icon + FROM profile_networking_enum + WHERE network_type = {?}", + $mid); + $img = dirname(__FILE__) . '/../htdocs/images/networking/' . $res->fetchOneCell(); + $type = mime_content_type($img); + header("Content-Type: $type"); + echo file_get_contents($img); + exit; + } + function handler_photo_change(&$page) { $page->changeTpl('profile/trombino.tpl');