From 6c1a20968c82d3a6fd4d44081b26fc79b93e3fa2 Mon Sep 17 00:00:00 2001 From: friendica Date: Mon, 24 Sep 2012 01:20:36 -0700 Subject: [PATCH] posted 3 seconds ago from _________ --- fromapp.tgz | Bin 0 -> 1144 bytes fromapp/fromapp.css | 14 ++++++++ fromapp/fromapp.php | 84 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 98 insertions(+) create mode 100644 fromapp.tgz create mode 100644 fromapp/fromapp.css create mode 100644 fromapp/fromapp.php diff --git a/fromapp.tgz b/fromapp.tgz new file mode 100644 index 0000000000000000000000000000000000000000..7cab4fda23644c1f8ad3323b198750b2fdb141ff GIT binary patch literal 1144 zcmV-;1c&<{iwFR~7hq5T1MOFBZ`(Ey_E-B?Ts5PTgT#_w6Qp&DVq3Ql-8vw_J}fN^ zTB2+slqir?Ua;oB??_2@RJ(JBrRj(2LEywk^5NZc$0HLcwp@%T7zLQ3WC9CIvurw!Eihrv|#czovM&4O(Z}oA>oqAYnFayUbdV} z2PY>dPvO%OA};e^{_bb1?9unwlmGE#Jo+U6<7sf*g5c3T*@5po|1V!*#ykGOK?e@t zcaqRkc!Q026e6ZFPVQ&~STmf3#LR#@kpqzwGNCj} zmtbnju>47-vJ8WMV7|Z3^-4%26iGtTh)VcNXdJ*Fztic&c^X>2vL@#&#T;?&_2BPL zr!DD{DNW^kCB&8In$6~1goL|?;F2g3slTJB&0xi6mzdRV@5MGB&zCHnE2>Ql>WfL& z3-)tb2mUj0u?pEcZ7!BeDm|wZ2GdYZc5wK9mxOs*7coyCTgGk1#}INK>;IK3*e33A8px5iP zu~u|0QRS{_ZNlrDloiKtdx%W)7Yc2mCW*bl%JNsZ&P!iwO6Gsbl>B>1XoYl0|$SP1)6y6AMzCM~p zu9v=<@uJSlqM1{b`HjR+D(kGAEGVx{vlhqrxwbjg&KDTT!z(7m8_M1@HzMZ|aE29y z0jrg`F=lD+9tA=&>=I;s3-v3H?Orv1SeoU!=8v^F4{FP?+isl09P^x(byg+B){iYC zzsB#QDrXNR4>={MNipD-m6b_x%_58yirxT=Tx*PXZ{CXOYpLO^45;wF82!ZmqsqFQ zs}>%n;Jj>BMTCCo_{RNRtz>;Ql)Z#$nwWM106Y2#lvsBaDCX6A>9ZMFnoBol*cLvs zs=Mc`!RD|*b=s=!yl(xtmF-(;$!Tf_d%K)%mu}fcjC-4j_6bmq-+${T-oIi;FMRYp z_Wl1i7#~;f|6wp0n)mCoph1HM4H`7~uJ8{! KT>JC@C;$L?)HZzp literal 0 HcmV?d00001 diff --git a/fromapp/fromapp.css b/fromapp/fromapp.css new file mode 100644 index 000000000..90aeec49e --- /dev/null +++ b/fromapp/fromapp.css @@ -0,0 +1,14 @@ + + + +#fromapp-label { + float: left; + width: 200px; + margin-bottom: 25px; +} + +#fromapp { + float: left; +} + + diff --git a/fromapp/fromapp.php b/fromapp/fromapp.php new file mode 100644 index 000000000..58eaa4693 --- /dev/null +++ b/fromapp/fromapp.php @@ -0,0 +1,84 @@ +page['htmlhead'] .= '' . "\r\n"; + + /* Get the current state of our config variable */ + + $fromapp = get_pconfig(local_user(),'fromapp','app'); + if($fromapp === false) + $fromapp = ''; + + /* Add some HTML to the existing form */ + + $s .= '
'; + $s .= '

' . t('FromApp Settings') . '

'; + $s .= '
'; + $s .= ''; + $s .= ''; + $s .= '
'; + + /* provide a submit button */ + + $s .= '
'; + +} + +function fromapp_post_hook(&$a,&$item) { + if(! local_user()) + return; + + if(local_user() != $item['uid']) + return; + + $app = get_pconfig(local_user(), 'fromapp', 'app'); + + if(($app === false) || (! strlen($app))) + return; + + $item['app'] = $app; + return; + +} \ No newline at end of file