From 586cf854a2f2ab7877fb418e5dccc89bd8df03ef Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 14 Oct 2005 10:41:15 +0000 Subject: [PATCH] phpgw --> egw and removed some obsolete files --- filemanager/CHANGELOG | 0 filemanager/images/folder-home.gif | Bin 1249 -> 0 bytes filemanager/images/folder-home.png | Bin 1617 -> 0 bytes filemanager/images/folder-open.gif | Bin 1225 -> 0 bytes filemanager/images/folder-open.png | Bin 1542 -> 0 bytes filemanager/images/folder-up.gif | Bin 772 -> 0 bytes filemanager/images/folder-up.png | Bin 1128 -> 0 bytes filemanager/images/folder.gif | Bin 1184 -> 0 bytes filemanager/images/folder.png | Bin 1373 -> 0 bytes filemanager/images/locked.gif | Bin 606 -> 0 bytes filemanager/images/locked.png | Bin 719 -> 0 bytes filemanager/images/navbar.gif | Bin 1625 -> 0 bytes filemanager/images/navbar.png | Bin 2879 -> 0 bytes filemanager/inc/class.bofilemanager.inc.php | 24 +- filemanager/inc/class.sofilemanager.inc.php | 20 +- filemanager/inc/class.uifilemanager.inc.php | 66 +- filemanager/inc/hook_add_def_pref.inc.php | 34 - filemanager/inc/hook_admin.inc.php | 3 - filemanager/inc/hook_deleteaccount.inc.php | 26 +- filemanager/inc/hook_preferences.inc.php | 22 +- filemanager/inc/hook_sidebox_menu.inc.php | 24 +- filemanager/index.php | 38 +- filemanager/indexold.php | 1785 ------------------- filemanager/preferences.php | 156 -- filemanager/setup/setup.inc.php | 3 - 25 files changed, 111 insertions(+), 2090 deletions(-) delete mode 100644 filemanager/CHANGELOG delete mode 100755 filemanager/images/folder-home.gif delete mode 100644 filemanager/images/folder-home.png delete mode 100755 filemanager/images/folder-open.gif delete mode 100644 filemanager/images/folder-open.png delete mode 100755 filemanager/images/folder-up.gif delete mode 100644 filemanager/images/folder-up.png delete mode 100755 filemanager/images/folder.gif delete mode 100644 filemanager/images/folder.png delete mode 100755 filemanager/images/locked.gif delete mode 100644 filemanager/images/locked.png delete mode 100755 filemanager/images/navbar.gif delete mode 100755 filemanager/images/navbar.png delete mode 100755 filemanager/inc/hook_add_def_pref.inc.php delete mode 100644 filemanager/inc/hook_admin.inc.php delete mode 100755 filemanager/indexold.php delete mode 100644 filemanager/preferences.php diff --git a/filemanager/CHANGELOG b/filemanager/CHANGELOG deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/filemanager/images/folder-home.gif b/filemanager/images/folder-home.gif deleted file mode 100755 index e0b88cb102e7a2cbca0f95151552260b4ecae593..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1249 zcmV<71RncGNk%w1VHN-u0O$AsO;1dFI}xg{vDH^YgGM~JZ9CD^(9?Dvqik2iMF4++ ze&V^Cr&|6NAla}X>O6b$prbR!@WE=BW3fti0#>mBY7y@ogL;rRd{;rDC zzpmUxC!=XZ|9d6#^66}DYwJ-0;?TwaS^&{%VeXq+uUQ$ci+aX?N}-#k_I5qp-`wcx z=ea`w^`KbhJOK3f^M`_gw2yiIdKucGcjrFk z-!%aLi#_1HssBp@|CLFVjFRv1?%i`_mY9|LaUHmqi^yCE%Ys0%rl#>d0kU#b-`wHR zXcp4Iwf?Va(zT&mU0UPi;s2^{wV8#YGAo500RCg#t$JPI=IM)#ipo#}{-RvzHUPSfbNKc8|BgP^oSogx$o*{)x4E|K@bi+Ck^YrW z+1uCU;NJgI0PpPa@ayU7hm4Q^k2ms00Q`DiT|l#yp?&} zav;BSLFU8C;NIf+{{O75tDkLA`K@)MN)+sHO2ns=>(tTtTmyY20{*Ro+QY1(Vmh6h zpZ|(A;JKmQY+Ik9p47FQ`S0xs`p~p`-Up0OL6V)YjAB;@|lC_ww}d=IG_z-rMBq?Cb98-{Icw z^Y-|oTmO9>|8Nz*n0)8$@8##@|6%~*I05nV@cjS#|CdqQ-P-?D0Mpgd|DIgq=K~fuwgR)VF2Ja0P;Tr z`~CXj=j!S=0QvU&|BpZH@$~_CX>@2HRA^-&M@dakEFgDjbZ8)RZ*65DZ)PBAZggdG zW@U0^ZewL2VtF7?X>A}=Ze?r$A^8LW3IP8AEC2ui02Tli06+--0RIUbNbujHf(Qj> zDY6WPEH=Gt*-G|G9ke7D6BI=DPT0LY*_vPoS0cxuLSP6HQ;_iA9V(A9D4C&7U66HZ z60*QG!qz)QmR@W^@P!MR3dz2~xiX62EK}f2RRL!N&k7(O7%`G0sY=U%aUz|W;ZEJx zflq4GfDwy>2?wlvS(rP;O~C?_w0Xh>O3?%wyHG8N@c{%6J{$rNlxVBXJ6nMe8N-zA zP&;Dc7zii`NJt=O3{K2(;^csq6Tl1@AXMh8z(+NhxGpG5p0*n_g9J(8TF$muz^T#9 zy{<#TA8RnKSw_!>u2y+!%$r_AR6!1W_)r*dDN`nUwlaS`aIvk(iWLMoHAvO#-KtJ1 z-t5qVV^y~k5+aPzA&>wGB#gn*LNj_0ae)|qIOBsc3{;Q?LA5m2#s}} zCm=%%I0d0#%N~dvQ%C{fgcAl4;t*m$N^cY-fGxrxVucwZ(4qk?pNLZkN{0a8+7MNk L(#0$-1q1*)I-8!Y diff --git a/filemanager/images/folder-home.png b/filemanager/images/folder-home.png deleted file mode 100644 index 3afa8033793bf26a827c15aa228b88a23a902ff2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1617 zcmV-X2Cn&uP)z@;j(q!3lK=n!AY({UO#lFTB>(_`g8%^e{{R4h=>PzA zFaQARU;qF*m;eA5Z<1fdMgRZ>$4Nv%RCwBA{Qv(y10y3N0|+EYF)*m}F)&DRFfiCtz%bvQ!S?zahRn#*3{_tk7#=VX0005RgijJ^C&Rzr3=Gk_3}Nza zK5O08xFWaeF>KRfWUwS;FhBs|H25FTP(CIGR$VpD#`MgH$>0tmxk87>ABYbl1^=CVv~4Bvk;F#P<+!0;DH|NF_n1~iTZ=sqTpE}#Wp z{xLA*s4!$M*JN1728?TDa{vMe#b9Y}2G<0AhJCE;47v<&fpP!g2?N+|e?BmL*?)-P z;W?nwfI%TFz`(!{Of9@X4780QT!q2&h&980NnoOanFSC)C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i;Ty0hz5V3%r=!c3ykz?Sj|plpsM2ITfByVUm{|Y;#E4v(0s$uw3n7>L zEKE#dtqo1fc({24d3bsM@bU6+t=qVM%i7Ac|Sl5fB*vkh~y@@65K`O P00000NkvXXu0mjf7SPcf diff --git a/filemanager/images/folder-open.gif b/filemanager/images/folder-open.gif deleted file mode 100755 index 6050f3a8ae6caa7a435fc8c5bba11db18dfac0f1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1225 zcmYk5eK^zy0LOoX)lZKoOu5z1u39(|F{L(#b*HN()RSd(mwvd6dYrheDa^dDn_PR^ zx~rzkbKRcaygcb5qY`zBJVHhYciqEzS#;>}ojvW7c%ZH|p*P;sgf2)J&26pDp z3eQgQ^Wkv_#FA>l`gTzr3hp52gjQY$`BMmr!I!=}rJUnsg0UY|BrM(Ai6!NP>5iPr zY27povuGQ|`6nn)<5nlqs~}Y1yQ|>K;gyOtLNE`4`Wh7PEnz+Hq6^iN06GkKG>ALB zP_;u`fwWSjmV#4=^{3!2hHD&FAH>QCIP#_zEUzI2o+0@<T!nB9h0SLpi`TUg3(l7`8uimq_drqy*#qR);EOZZnhT$FcqD_lA0Ki? zNngE{#{gkb?i_L9J?Jl1#0)CU7*3jQ@_A<$Un5z znjyH?g^?LF>v66DvPLLcASy>hF}zdZ9*?#AjVpL>NngXqoS_rBFCW#v*dtKvJ6YLo zfV3X91E}al?tLWO1m_I=vam4)Zn3i~!;CAoPtd7DRrg*tJ!#W4v}Q>fdL~dm2-OR; zzr&Rm$f-sA4eY&$APF{Sz*96I?|XLKR7sh>tE0E|d3TehGq3Q$O4sCk)$6_~oNd6f zab(xv$Tft^5Lf`O@8OmJp~TqQKB67e_H++vn);53)dU&7CQz)Mg}f2>wJ2^yW;LQ! z*!3%XGO=5NipH7o(YK=`<9gkw@_NU5zZ`;KUc76l=|kCkFVAsOjmXR3NpV_@kqKaK zc6MfFU|=#awVJTxu3?KcgHSZ#aw|k-NUubT7S#`jz1VqlPFrak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ufLId{j>Ep*wA3l5jN?iOW5CA*b CEku<7 diff --git a/filemanager/images/folder-up.png b/filemanager/images/folder-up.png deleted file mode 100644 index 8ec228df6ba4867cb2d9fc2f0dcd11067cd6b0c2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1128 zcmV-u1eg1XP)rNc+{54@fiM&V zSQywDOn9Rh{{H_9R|mpgRt5|VtPCIr27uH71P}{Uy+4C21A`ooG{f`XkHG@ZA3SGB zS8ioc7k9@9TNXx624}$nh9xiZ8IHa`%5dY$bB1f*zA%8yV7Lb~i-BPQKmaj8)f%YE zurj>+^Pb`PFQB5kHz9^fy5o#EHbx$XFwquVl+50}ufaKrn+9 z7}yvXp8k3b#^I9ja6`ZUd&e;CQY75KRnLnUZhqMbX7jK}GEC80hOmtlY8DUx1Q5(% zh9AIye)#(x7&8e#guniM&5(1~is90?%W%D~em-SzIp+g6{PUkzSbYQ#K(H`=@Z#HF zg>OHn+3WpI;eVf5{;g0zjYr{mbBT-iN`GR}vTu&lwnC&if0` z@(ch01T*-;?>7tzA7uW6HG;~7Rqq}${QV0~F${nH{zWkun1UFd0#n7BPfs9X%uqQ< z@&=V73;+QHvuh*B9u}Y>EPtUi5VHdfVFzkrWI~iBpv(jk!-g3iLd^mKfB=HIcmu;P zhJKEli~{^xOc>$C@s}0BX5wTJXJ*Dw^YPk0hM&Lwe*l{W1ONd9F$Gfe6@I(rofMvs#ua_|7L3%)Xp(P!-7zGF*)ItbYO0lyuB$#^eG4Keo z6IGypdH<8)^o~yqKYyYYLI44TSsnuo=L8zAq07mjX&{c*(CZgoGTgZQo#8u@p)i91 z0tkCSpARhQfQ1$pJA;6>1~-F*6fXlC8zfwR{rb!B;@M}0t2e$feEW&Jpa%#b+*MOP uyg>1XW>W=NnkS}e0tg^RT2-b10R{kaI-(Rk&-2y*0000 diff --git a/filemanager/images/folder.gif b/filemanager/images/folder.gif deleted file mode 100755 index bc825c5313bfd2b23977029139254e91b7aa592b..0000000000000000000000000000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Tq9xYd$Y=piq<(*5V0iuT*Y_KDzkay;>D%|aPquA;vAe8;;m?OB$mRe95Q>Z0*w}=DK`>iL zNJs$0Km34!;RVo87NGS%elalo{RJ|afq{pUnN>xelUGfgSMc-&!T%owyj2+fz537a z<@RluSpWgVgluqPVq$`_va&pgeH|Ej_ueot2y#LU1tp$;e}RSr4gUR;f#DC3{o=!4 zhCi%=LJY4J`F)etw42BGcLTNZfb;_d5IiV=;VF9a=FKzm^73-mUokM81$s=HpMl}! zdj^J&Ux0@FhPamD8v_F~&>|LKxU4(!nc?UoUIsT428LDD4FCTyGB7qTzIv*)I4&O` zfS8fOHYYMNGUWRoU=ZA8U{IH0VEFWvf#J({h>QRIff@{SEh|vhTcB&VU0`64mt&&9w9GR#R|O#1MB9zlQr0tW>rC#QH>Sy>*4{pssp21%exIe@Bu0uB1}8{+MM z(4hDaj6^n|t~0lPFz^U)Fs!I$V2}|)1n0bcpMLLMGj$C>05L&bn=B(EBmMv1FQDc> z3_pP`{PhQ7=-#92|fmf2d|jG zVf^L;P!kZp2PV6(z)1W8G}y)HA45qHB0+&Xl-;)P>a}$R`5;3e~d1A&IU`wWf1ACO2?1$w5){iBK5|EU!h<-*h(4n5hs0Iii fMp{*-009O7=B4KCwp@#S00000NkvXXu0mjff8dI~ diff --git a/filemanager/images/locked.gif b/filemanager/images/locked.gif deleted file mode 100755 index 0e04e1d78ad7d628b9e98efebb1302be3b329d9a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 606 zcmZ?wbhEHb6k`x$I2OdPXwjk%A3of@dw1Qsb#LChNl#C&uCD&_`2S+f|4a4%FO>iPus6a* zb7q0_|2@|KmdgBJZ}5MI%m4kp|M$E9-{<`Q*}O z>wM|&Yb<{44ElE>=l`X~|M#Zz@;j(q!3lK=n!AY({UO#lFTB>(_`g8%^e{{R4h=>PzA zFaQARU;qF*m;eA5Z<1fdMgRZ;MM*?KRCwBA{Qv(y11$hR05LJp2mk~S%?t(zAetEr z5I{6D7$AUXW-vei(ad0g0HT?}00BfZg8>4FWP=$Q8NpahO-*F+;>CR*KYo0F@7}%V zK|w+JKyfyhJU{?3fN~xw7z$X|ty{O}&6_v>)6>(BRaaM^`|{<>|CE%JewYG)03yp^ zJv}|g*RNmy*V59O0^|w+u^`aU)yIw<`w3(#fz$v55LsbtU}UU$ec<! zAb?0VcwV{R{-pLQ2ZlEv85r1Dp=pa5=yss{K}PYZFho08b^`Nicse$o72mynDf$7bMZ=arhX4ni6U;rN&?lf}AysQ8K002ovPDHLkV1n0y BC%gav diff --git a/filemanager/images/navbar.gif b/filemanager/images/navbar.gif deleted file mode 100755 index be338b17c04003d5f93e5db2e33af93c0fab7cf2..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1625 zcmV-f2B!H(Nk%w1VITk?0O$Vz06w`gl>d2-zX~XIn$rI%a>mK_{Qxz>QlIA`fB!;O ziNVFyCS=8Dv-Z5{{*}Y=M_-;5K#k$$^&)%DIFjba%I5+r+VJx4WOl53x907)zMq|NXwj=!D7t06V@w zU!$I_&6TCZs?Yz+=l?51fL5jdd8_4hvi@{{r5$$G1$h4eH;`DP?3uy+8!&urd%3CL z|G?n>H;mu_G0fN7>u-R!ovhLyJ%2V(j!}c#Oq~Dt{{Kpo>1w$2m8i|1&iqks&NGPq z@&ErlS*jLL+;OVu06d~tYnR#e|5%CC<>v4yPr!?_?|#7k)BXMxQmh z+wsQl{S`23h{yR>VupWuyrhNaHhsOdEQ}alx3>%M~n81$Nxrs%|?^qDNK}gfwNGL;NkiHiN5lj zq|%MT_2%pQ0VZoeT9Xkj)fQ5@=lK36Ov~Kh@DMrP5jx|H<_CX>@2HRA^-&M@dakEFgDjbZ8)RZ*65DZ)PBAZggdG zW@U0^ZewL2VtF7?X>A}=Ze?r$A^8LW3IP8AEC2ui03ZM$000R70RIUbNU)&6XU_~O zT&QqQs7XiuN#ek;V!=>ff|=;$4Nydj71<5q1IvVyL6ZcP$N^HJDr1CJz*3^e-yv(! zN^G-8!5G0CXh^Z)^Gna49SKB@3IsIrLnnkZv4cIBc=C=X zLVzNN9PjM%&NAr)C(tl41Xj%wWPsp+4}|c6&Kwm8u|On|q!QvTBzWRU7*W(WP%D{j z5km^q97f0vkGPV}KKr;pgfvOKgM}x{NFanOJP-r~G*B#&1Q*G{h>RNF^kaqqj(Bol z5+Y{F%?U;nqzn{fEW(8WFA|W!9IjM>!JuIfmdo~?j_RRJ#!FKM;&v-BXc(`v_MP*7NIdk%85ur zM-hs|gTWBr2q3@^n8d>hNNwCef_s`Upn*UNeBg!~C!7!qCL^@;k1F7-as>(omElV< XzLep$Kwaoj$kc1cE%)4V2Lu2+yJkKB diff --git a/filemanager/images/navbar.png b/filemanager/images/navbar.png deleted file mode 100755 index 0644f13170bab112a3f4a4ec75e19f4c54e08d27..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2879 zcmWkwdpy$%8~<&yjr_1Ew!(%&M>Usv5!sfGs9e%bCFVNS331%*A{j?Qkto?tPUXCZ zD4jzm*%)11_rCE~r~6k`6a;bfZn=I>i_`I z^YPvvsA1A~Xk#=nF+F`*Lpt%^rxF1`*XTPC!0k%BCaJ}s`O*O3abc$NNXhq#2=72& z07%~o0Gw<9ScNtG832;(0pJTA0QQsvfJxkq&`vJ^Sof#Te%i6rf5IdAj>YRf)+u1( zQ4vof$Y~uKDqa2B_4F21Drp`-Y2kGL++ODIVl9`g)LWig|LAmzn;!R%rVyuDR&~PZ zo;WiJ3|CH4LPNV0Ki`A?HQ)e;tpUiqicMv9*2F{OQ_;iH*y{0USxsO3l9ih%+eU(K zRYj-t=>N}gfAM`PB*$V6IEGigtFY4!O2bz>vp*z{YzYZ93(4qv{1AZy?3bTU#4XH_8GCA(O?fq3C; zg%vrw1&0zb_}eI1J`<{w7%tO9-~g$VytcsXJ5nn#gUBh9d8n$gloA6BC2USUR$oACYAY zqc*L;#4B7Bi8n^k6-}`VT0nLX+i9Vu#_B#Q{sVxc9;WBOu_u*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.inc.php index 93350ef5bb..f1b7d411e8 100755 --- a/filemanager/inc/class.bofilemanager.inc.php +++ b/filemanager/inc/class.bofilemanager.inc.php @@ -1,15 +1,15 @@ so = CreateObject('filemanager.sofilemanager'); + $this->so =& CreateObject('filemanager.sofilemanager'); $this->so->db_init(); - $this->vfs = CreateObject('phpgwapi.vfs'); + $this->vfs =& CreateObject('phpgwapi.vfs'); error_reporting(4); diff --git a/filemanager/inc/class.sofilemanager.inc.php b/filemanager/inc/class.sofilemanager.inc.php index 2b6fa23af8..99639c4ee4 100755 --- a/filemanager/inc/class.sofilemanager.inc.php +++ b/filemanager/inc/class.sofilemanager.inc.php @@ -1,15 +1,15 @@ browser = CreateObject('phpgwapi.browser'); + $GLOBALS['egw']->browser =& CreateObject('phpgwapi.browser'); $this->now = date('Y-m-d'); - $this->bo = CreateObject('filemanager.bofilemanager'); + $this->bo =& CreateObject('filemanager.bofilemanager'); $this->t = $GLOBALS['egw']->template; // here local vars are created from the HTTP vars - @reset($GLOBALS['HTTP_POST_VARS']); - while(list($name,) = @each($GLOBALS['HTTP_POST_VARS'])) + @reset($_POST); + while(list($name,) = @each($_POST)) { - $this->$name = $GLOBALS['HTTP_POST_VARS'][$name]; + $this->$name = $_POST[$name]; } - @reset($GLOBALS['HTTP_GET_VARS']); - while(list($name,) = @each($GLOBALS['HTTP_GET_VARS'])) + @reset($_GET); + while(list($name,) = @each($_GET)) { - $$name = $GLOBALS['HTTP_GET_VARS'][$name]; + $$name = $_GET[$name]; } $to_decode = array @@ -156,7 +156,7 @@ } // get appl. and user prefs - $pref = CreateObject('phpgwapi.preferences', $this->bo->userinfo['username']); + $pref =& CreateObject('phpgwapi.preferences', $this->bo->userinfo['username']); $pref->read_repository(); // $GLOBALS['egw']->hooks->single('add_def_pref', $GLOBALS['appname']); $pref->save_repository(True); @@ -262,7 +262,7 @@ 'enable_browser_class' => True ); - $GLOBALS['egw']->common->phpgw_header(); + $GLOBALS['egw']->common->egw_header(); } # Page to process users @@ -346,7 +346,7 @@ { $group_id = $GLOBALS['egw']->accounts->name2id($group_array['account_name']); - $applications = CreateObject('phpgwapi.applications', $group_id); + $applications =& CreateObject('phpgwapi.applications', $group_id); $this->groups_applications[$group_array['account_name']] = $applications->read_account_specific(); } @@ -367,8 +367,8 @@ $this->messages[]= $GLOBALS['egw']->common->error_list(array(lang('You do not have access to %1', $this->path))); $this->html_link('/index.php','menuaction=filemanager.uifilemanager.index','path='.$this->homedir, lang('Go to your home directory')); - $GLOBALS['egw']->common->phpgw_footer(); - $GLOBALS['egw']->common->phpgw_exit(); + $GLOBALS['egw']->common->egw_footer(); + $GLOBALS['egw']->common->egw_exit(); } $this->bo->userinfo['working_id'] = $this->bo->vfs->working_id; @@ -412,8 +412,8 @@ $this->messages[] = $GLOBALS['egw']->common->error_list(array(lang('Directory %1 does not exist', $this->path))); $this->html_link('/index.php','menuaction=filemanager.uifilemanager.index','path='.$this->bo->homedir, lang('Go to your home directory')); - $GLOBALS['egw']->common->phpgw_footer(); - $GLOBALS['egw']->common->phpgw_exit(); + $GLOBALS['egw']->common->egw_footer(); + $GLOBALS['egw']->common->egw_exit(); } } @@ -861,8 +861,8 @@ $this->t->set_var($vars); $this->t->pparse('out','filemanager_footer'); - $GLOBALS['egw']->common->phpgw_footer(); - $GLOBALS['egw']->common->phpgw_exit(); + $GLOBALS['egw']->common->egw_footer(); + $GLOBALS['egw']->common->egw_exit(); } function readFilesInfo() @@ -1672,8 +1672,8 @@ } $this->html_table_end(); - $GLOBALS['egw']->common->phpgw_footer(); - $GLOBALS['egw']->common->phpgw_exit(); + $GLOBALS['egw']->common->egw_footer(); + $GLOBALS['egw']->common->egw_exit(); } else { @@ -1723,7 +1723,7 @@ 'string' => $this->path.'/'.$this->file,//FIXME 'relatives' => array(RELATIVE_NONE) )); - $GLOBALS['egw']->common->phpgw_exit(); + $GLOBALS['egw']->common->egw_exit(); } } @@ -1736,10 +1736,10 @@ continue; } - $download_browser = CreateObject('phpgwapi.browser'); + $download_browser =& CreateObject('phpgwapi.browser'); $download_browser->content_header($this->fileman[$i]); echo $this->bo->vfs->read(array('string' => $this->fileman[$i])); - $GLOBALS['egw']->common->phpgw_exit(); + $GLOBALS['egw']->common->egw_exit(); } } @@ -1949,7 +1949,7 @@ $href = SEP . $href; } - /* $phpgw->link requires that the extra vars be passed separately */ + /* $GLOBALS['egw']->link requires that the extra vars be passed separately */ // $link_parts = explode("?", $href); $address = $GLOBALS['egw']->link($href, $all_args); // $address = $GLOBALS['egw']->link($href); diff --git a/filemanager/inc/hook_add_def_pref.inc.php b/filemanager/inc/hook_add_def_pref.inc.php deleted file mode 100755 index e1051c836e..0000000000 --- a/filemanager/inc/hook_add_def_pref.inc.php +++ /dev/null @@ -1,34 +0,0 @@ -change('filemanager', 'name', 'True'); - $pref->change('filemanager', 'mime_type', 'True'); - $pref->change('filemanager', 'size', 'True'); - $pref->change('filemanager', 'created', 'True'); - $pref->change('filemanager', 'modified', 'True'); - //$pref->change('filemanager', 'owner', 'False'); - $pref->change('filemanager', 'createdby_id', 'True'); - $pref->change('filemanager', 'modifiedby_id', 'True'); - //$pref->change('filemanager', 'app', 'False'); - $pref->change('filemanager', 'comment', 'True'); - //$pref->change('filemanager', 'viewinnewwin', 'False'); - //$pref->change('filemanager', 'viewonserver', 'False'); - $pref->change('filemanager', 'viewtextplain', True); - //$pref->change('filemanager', 'dotdot', 'False'); - //$pref->change('filemanager', 'dotfiles', 'False'); - //$pref->change('filemanager', 'show_help', 'False'); - $pref->change('filemanager', 'show_upload_boxes', '5'); - -?> diff --git a/filemanager/inc/hook_admin.inc.php b/filemanager/inc/hook_admin.inc.php deleted file mode 100644 index 62a2de0c86..0000000000 --- a/filemanager/inc/hook_admin.inc.php +++ /dev/null @@ -1,3 +0,0 @@ - diff --git a/filemanager/inc/hook_deleteaccount.inc.php b/filemanager/inc/hook_deleteaccount.inc.php index f5db560ab9..0a7a436404 100755 --- a/filemanager/inc/hook_deleteaccount.inc.php +++ b/filemanager/inc/hook_deleteaccount.inc.php @@ -1,16 +1,16 @@ vfs->working_id = $account_id; - $ls_array = $phpgw->vfs->ls ($phpgw->vfs->fakebase . "/" . $account_id, array (RELATIVE_NONE)); + $GLOBALS['egw']->vfs->working_id = $account_id; + $ls_array = $GLOBALS['egw']->vfs->ls ($GLOBALS['egw']->vfs->fakebase . "/" . $account_id, array (RELATIVE_NONE)); while (list ($num, $entry) = each ($ls_array)) { - $phpgw->vfs->rm ($entry["dir"] . "/" . $entry["name"], array (RELATIVE_NONE)); + $GLOBALS['egw']->vfs->rm ($entry["dir"] . "/" . $entry["name"], array (RELATIVE_NONE)); } */ ?> diff --git a/filemanager/inc/hook_preferences.inc.php b/filemanager/inc/hook_preferences.inc.php index 0f5795f54f..70d21b5a48 100644 --- a/filemanager/inc/hook_preferences.inc.php +++ b/filemanager/inc/hook_preferences.inc.php @@ -1,16 +1,16 @@ * - * -------------------------------------------- * - * This program is free software; you can redistribute it and/or modify it * - * under the terms of the GNU General Public License as published by the * - * Free Software Foundation; either version 2 of the License, or (at your * - * option) any later version. * - \**************************************************************************/ + /**************************************************************************\ + * eGroupWare * + * http://www.egroupware.org * + * Written by Joseph Engo * + * -------------------------------------------- * + * This program is free software; you can redistribute it and/or modify it * + * under the terms of the GNU General Public License as published by the * + * Free Software Foundation; either version 2 of the License, or (at your * + * option) any later version. * + \**************************************************************************/ - /* $Id$ */ + /* $Id$ */ { // Only Modify the $file and $title variables..... $title = $appname; diff --git a/filemanager/inc/hook_sidebox_menu.inc.php b/filemanager/inc/hook_sidebox_menu.inc.php index c03724bb08..1bf6b54d39 100755 --- a/filemanager/inc/hook_sidebox_menu.inc.php +++ b/filemanager/inc/hook_sidebox_menu.inc.php @@ -1,16 +1,16 @@ * - * -------------------------------------------- * - * This program is free software; you can redistribute it and/or modify it * - * under the terms of the GNU General Public License as published by the * - * Free Software Foundation; either version 2 of the License, or (at your * - * option) any later version. * - \**************************************************************************/ + /**************************************************************************\ + * eGroupWare - Filemanager Sidebox-Menu for idots-template * + * http://www.egroupware.org * + * Written by Pim Snel * + * -------------------------------------------- * + * This program is free software; you can redistribute it and/or modify it * + * under the terms of the GNU General Public License as published by the * + * Free Software Foundation; either version 2 of the License, or (at your * + * option) any later version. * + \**************************************************************************/ - /* $Id$ */ + /* $Id$ */ { /* @@ -23,7 +23,7 @@ display_sidebox can be called as much as you like */ - $menu_title = $GLOBALS['phpgw_info']['apps'][$appname]['title'] . ' '. lang('Menu'); + $menu_title = $GLOBALS['egw_info']['apps'][$appname]['title'] . ' '. lang('Menu'); $file = Array( array( '', diff --git a/filemanager/index.php b/filemanager/index.php index 0438684603..51568d9664 100755 --- a/filemanager/index.php +++ b/filemanager/index.php @@ -1,23 +1,25 @@ 'filemanager', - 'noheader' => True, - 'nonavbar' => True, - 'noappheader' => True, - 'noappfooter' => True, - 'nofooter' => True + $GLOBALS['egw_info'] = array( + 'flags' => array( + 'currentapp' => 'filemanager', + 'noheader' => True, + 'nonavbar' => True, + 'noappheader' => True, + 'noappfooter' => True, + 'nofooter' => True, + ), ); include('../header.inc.php'); diff --git a/filemanager/indexold.php b/filemanager/indexold.php deleted file mode 100755 index f01ae50f5d..0000000000 --- a/filemanager/indexold.php +++ /dev/null @@ -1,1785 +0,0 @@ - array ('op' => ''), - 'path' => array ('path' => ''), - 'file' => array ('file' => ''), - 'sortby' => array ('sortby' => ''), - 'fileman' => array ('fileman' => ''), - 'messages' => array ('messages' => ''), - 'help_name' => array ('help_name' => ''), - 'renamefiles' => array ('renamefiles' => ''), - 'comment_files' => array ('comment_files' => ''), - 'show_upload_boxes' => array ('show_upload_boxes' => '') -); - -reset ($to_decode); -while (list ($var, $conditions) = each ($to_decode)) -{ - while (list ($condvar, $condvalue) = each ($conditions)) - { - if (isset ($$condvar) && ($condvar == $var || $$condvar == $condvalue)) - { - if (is_array ($$var)) - { - $temp = array (); - //some fixes in this section were supplied by Michael Totschnig - while (list ($varkey, $varvalue) = each ($$var)) - { - if (is_int ($varkey)) - { - $temp[$varkey] = stripslashes (base64_decode(urldecode(($varvalue)))); - } - else - { - $temp[stripslashes (base64_decode(urldecode(($varkey))))] = $varvalue; - } - } - $$var = $temp; - } - elseif (isset ($$var)) - { - $$var = stripslashes (base64_decode(urldecode ($$var))); - } - } - } -} - -if ($noheader || $nofooter || ($download && (count ($fileman) > 0)) || ($op == 'view' && $file) || ($op == 'history' && $file) || ($op == 'help' && $help_name)) -{ - $noheader = True; - $nofooter = True; -} - -$GLOBALS['phpgw_info']['flags'] = array -( - 'currentapp' => 'filemanager', - 'noheader' => $noheader, - 'nofooter' => $nofooter, - 'noappheader' => False, - 'enable_vfs_class' => True, - 'enable_browser_class' => True -); - -include ('../header.inc.php'); - -if ($execute && $command_line) -{ - if ($result = $GLOBALS['phpgw']->vfs->command_line (array ('command_line' => stripslashes ($command_line)))) - { - $messages = html_text_bold (lang('Command sucessfully run'),1); - if ($result != 1 && strlen ($result) > 0) - { - $messages .= html_break (2, NULL, 1) . $result; - } - } - else - { - $messages = $GLOBALS['phpgw']->common->error_list (array (lang('Error running command'))); - } -} - -### -# Page to process users -# Code is fairly hackish at the beginning, but it gets better -# Highly suggest turning wrapping off due to long SQL queries -### - -### -# Some hacks to set and display directory paths correctly -### - -if ($go) -{ - $path = $todir; -} - -if (!$path) -{ - $path = $GLOBALS['phpgw']->vfs->pwd (); - - if (!$path || $GLOBALS['phpgw']->vfs->pwd (array ('full' => False)) == '') - { - $path = $GLOBALS['homedir']; - } -} - -$GLOBALS['phpgw']->vfs->cd (array ('string' => False, 'relatives' => array (RELATIVE_NONE), 'relative' => False)); -$GLOBALS['phpgw']->vfs->cd (array ('string' => $path, 'relatives' => array (RELATIVE_NONE), 'relative' => False)); - -$pwd = $GLOBALS['phpgw']->vfs->pwd (); - -if (!$cwd = substr ($path, strlen ($GLOBALS['homedir']) + 1)) -{ - $cwd = '/'; -} -else -{ - $cwd = substr ($pwd, strrpos ($pwd, '/') + 1); -} - -$disppath = $path; - -/* This just prevents // in some cases */ -if ($path == '/') - $dispsep = ''; -else - $dispsep = '/'; - -if (!($lesspath = substr ($path, 0, strrpos ($path, '/')))) - $lesspath = '/'; - -$now = date ('Y-m-d'); - -if ($phpwh_debug) -{ - echo "PHPWebHosting debug:
- path: $path
- disppath: $disppath
- cwd: $cwd
- lesspath: $lesspath -

- phpGW debug:
- real getabsolutepath: " . $GLOBALS['phpgw']->vfs->getabsolutepath (array ('target' => False, 'mask' => False, 'fake' => False)) . "
- fake getabsolutepath: " . $GLOBALS['phpgw']->vfs->getabsolutepath (array ('target' => False)) . "
- appsession: " . $GLOBALS['phpgw']->session->appsession ('vfs','') . "
- pwd: " . $GLOBALS['phpgw']->vfs->pwd () . "
"; -} - -### -# Get their readable groups to be used throughout the script -### - -$groups = array (); - -$groups = $GLOBALS['phpgw']->accounts->get_list ('groups'); - -$readable_groups = array (); - -while (list ($num, $account) = each ($groups)) -{ - if ($GLOBALS['phpgw']->vfs->acl_check (array ( - 'owner_id' => $account['account_id'], - 'operation' => PHPGW_ACL_READ - )) - ) - { - $readable_groups[$account['account_lid']] = Array('account_id' => $account['account_id'], 'account_name' => $account['account_lid']); - } -} - -$groups_applications = array (); - -while (list ($num, $group_array) = each ($readable_groups)) -{ - $group_id = $GLOBALS['phpgw']->accounts->name2id ($group_array['account_name']); - - $applications = CreateObject('phpgwapi.applications', $group_id); - $groups_applications[$group_array['account_name']] = $applications->read_account_specific (); -} - -### -# We determine if they're in their home directory or a group's directory, -# and set the VFS working_id appropriately -### - -if ((preg_match ('+^'.$GLOBALS['fakebase'].'\/(.*)(\/|$)+U', $path, $matches)) && $matches[1] != $GLOBALS['userinfo']['account_lid']) -{ - $GLOBALS['phpgw']->vfs->working_id = $GLOBALS['phpgw']->accounts->name2id ($matches[1]); -} -else -{ - $GLOBALS['phpgw']->vfs->working_id = $GLOBALS['userinfo']['username']; -} - -if ($path != $GLOBALS['homedir'] - && $path != $GLOBALS['fakebase'] - && $path != '/' - && !$GLOBALS['phpgw']->vfs->acl_check (array ( - 'string' => $path, - 'relatives' => array (RELATIVE_NONE), - 'operation' => PHPGW_ACL_READ - )) -) -{ - echo $GLOBALS['phpgw']->common->error_list (array (lang('You do not have access to %1', $path))); - html_break (2); - html_link ($GLOBALS['appname'].'/index.php?path='.$GLOBALS['homedir'], lang('Go to your home directory')); - html_page_close (); -} - -$GLOBALS['userinfo']['working_id'] = $GLOBALS['phpgw']->vfs->working_id; -$GLOBALS['userinfo']['working_lid'] = $GLOBALS['phpgw']->accounts->id2name ($GLOBALS['userinfo']['working_id']); - -### -# If their home directory doesn't exist, we create it -# Same for group directories -### - -if (($path == $GLOBALS['homedir']) - && !$GLOBALS['phpgw']->vfs->file_exists (array ( - 'string' => $GLOBALS['homedir'], - 'relatives' => array (RELATIVE_NONE) - )) -) -{ - $GLOBALS['phpgw']->vfs->override_acl = 1; - - if (!$GLOBALS['phpgw']->vfs->mkdir (array ('string' => $GLOBALS['homedir'], 'relatives' => array (RELATIVE_NONE)))) - { - $p = $phpgw->vfs->path_parts (array ('string' => $GLOBALS['homedir'], 'relatives' => array (RELATIVE_NONE))); - echo $GLOBALS['phpgw']->common->error_list (array (lang('Could not create directory %1', $GLOBALS['homedir'] . ' (' . $p->real_full_path . ')'))); - } - - $GLOBALS['phpgw']->vfs->override_acl = 0; -} - -### -# Verify path is real -### - -if ($path != $GLOBALS['homedir'] && $path != '/' && $path != $GLOBALS['fakebase']) -{ - if (!$GLOBALS['phpgw']->vfs->file_exists (array ('string' => $path, 'relatives' => array (RELATIVE_NONE)))) - { - echo $GLOBALS['phpgw']->common->error_list (array (lang('Directory %1 does not exist', $path))); - html_break (2); - html_link ($GLOBALS['appname'].'/index.php?path='.$GLOBALS['homedir'], lang('Go to your home directory')); - html_break (2); - html_link_back (); - html_page_close (); - } -} - -/* Update if they request it, or one out of 20 page loads */ -srand ((double) microtime() * 1000000); -if ($update || rand (0, 19) == 4) -{ - $GLOBALS['phpgw']->vfs->update_real (array ('string' => $path, 'relatives' => array (RELATIVE_NONE))); -} - -### -# Check available permissions for $path, so we can disable unusable operations in user interface -### - -if ($GLOBALS['phpgw']->vfs->acl_check (array ( - 'string' => $path, - 'relatives' => array (RELATIVE_NONE), - 'operation' => PHPGW_ACL_ADD - )) -) -{ - $can_add = True; -} - -### -# Default is to sort by name -### - -if (!$sortby) -{ - $sortby = 'name'; -} - -### -# Decide how many upload boxes to show -### - -if (!$show_upload_boxes || $show_upload_boxes <= 0) -{ - if (!$show_upload_boxes = $GLOBALS['settings']['show_upload_boxes']) - { - $show_upload_boxes = 5; - } -} - - -### -# Read in file info from database to use in the rest of the script -# $fakebase is a special directory. In that directory, we list the user's -# home directory and the directories for the groups they're in -### - -$numoffiles = 0; -if ($path == $GLOBALS['fakebase']) -{ - if (!$GLOBALS['phpgw']->vfs->file_exists (array ('string' => $GLOBALS['homedir'], 'relatives' => array (RELATIVE_NONE)))) - { - $GLOBALS['phpgw']->vfs->mkdir (array ('string' => $GLOBALS['homedir'], 'relatives' => array (RELATIVE_NONE))); - } - - $ls_array = $GLOBALS['phpgw']->vfs->ls (array ( - 'string' => $GLOBALS['homedir'], - 'relatives' => array (RELATIVE_NONE), - 'checksubdirs' => False, - 'nofiles' => True - ) - ); - $files_array[] = $ls_array[0]; - $numoffiles++; -// $files_array = $ls_array; -// $numoffiles = count($ls_array); - - reset ($readable_groups); - while (list ($num, $group_array) = each ($readable_groups)) - { - ### - # If the group doesn't have access to this app, we don't show it - ### - - if (!$groups_applications[$group_array['account_name']][$GLOBALS['appname']]['enabled']) - { - continue; - } - - if (!$GLOBALS['phpgw']->vfs->file_exists (array ( - 'string' => $GLOBALS['fakebase'].'/'.$group_array['account_name'], - 'relatives' => array (RELATIVE_NONE) - )) - ) - { - $GLOBALS['phpgw']->vfs->override_acl = 1; - $GLOBALS['phpgw']->vfs->mkdir (array ( - 'string' => $GLOBALS['fakebase'].'/'.$group_array['account_name'], - 'relatives' => array (RELATIVE_NONE) - ) - ); - $GLOBALS['phpgw']->vfs->override_acl = 0; - - $GLOBALS['phpgw']->vfs->set_attributes (array ( - 'string' => $GLOBALS['fakebase'].'/'.$group_array['account_name'], - 'relatives' => array (RELATIVE_NONE), - 'attributes' => array ( - 'owner_id' => $group_array['account_id'], - 'createdby_id' => $group_array['account_id'] - ) - ) - ); - } - - $ls_array = $GLOBALS['phpgw']->vfs->ls (array ( - 'string' => $GLOBALS['fakebase'].'/'.$group_array['account_name'], - 'relatives' => array (RELATIVE_NONE), - 'checksubdirs' => False, - 'nofiles' => True - ) - ); - - $files_array[] = $ls_array[0]; - - $numoffiles++; - } -} -else -{ - $ls_array = $GLOBALS['phpgw']->vfs->ls (array ( - 'string' => $path, - 'relatives' => array (RELATIVE_NONE), - 'checksubdirs' => False, - 'nofiles' => False, - 'orderby' => $sortby - ) - ); - - if ($phpwh_debug) - { - echo '# of files found in "'.$path.'" : '.count($ls_array).'
'."\n"; - } - - while (list ($num, $file_array) = each ($ls_array)) - { - $numoffiles++; - $files_array[] = $file_array; - if ($phpwh_debug) - { - echo 'Filename: '.$file_array['name'].'
'."\n"; - } - } -} - -if (!is_array ($files_array)) -{ - $files_array = array (); -} - -if ($download) -{ - for ($i = 0; $i != $numoffiles; $i++) - { - if (!$fileman[$i]) - { - continue; - } - - $download_browser = CreateObject ('phpgwapi.browser'); - $download_browser->content_header ($fileman[$i]); - echo $GLOBALS['phpgw']->vfs->read (array ('string' => $fileman[$i])); - $GLOBALS['phpgw']->common->phpgw_exit (); - } -} - -if ($op == 'view' && $file) -{ - $ls_array = $GLOBALS['phpgw']->vfs->ls (array ( - 'string' => $path.'/'.$file, - 'relatives' => array (RELATIVE_ALL), - 'checksubdirs' => False, - 'nofiles' => True - ) - ); - - if ($ls_array[0]['mime_type']) - { - $mime_type = $ls_array[0]['mime_type']; - } - elseif ($GLOBALS['settings']['viewtextplain']) - { - $mime_type = 'text/plain'; - } - - header('Content-type: ' . $mime_type); - echo $GLOBALS['phpgw']->vfs->read (array ( - 'string' => $path.'/'.$file, - 'relatives' => array (RELATIVE_NONE) - ) - ); - $GLOBALS['phpgw']->common->phpgw_exit (); -} - -if ($op == 'history' && $file) -{ - $journal_array = $GLOBALS['phpgw']->vfs->get_journal (array ( - 'string' => $file, - 'relatives' => array (RELATIVE_ALL) - ) - ); - - if (is_array ($journal_array)) - { - html_table_begin (); - html_table_row_begin (); - html_table_col_begin (); - html_text_bold (lang('Date')); - html_table_col_end (); - html_table_col_begin (); - html_text_bold (lang('Version')); - html_table_col_end (); - html_table_col_begin (); - html_text_bold (lang('Who')); - html_table_col_end (); - html_table_col_begin (); - html_text_bold (lang('Operation')); - html_table_col_end (); - html_table_row_end (); - - while (list ($num, $journal_entry) = each ($journal_array)) - { - html_table_row_begin (); - html_table_col_begin (); - html_text ($journal_entry['created'] . html_nbsp (3, 1)); - html_table_col_end (); - html_table_col_begin (); - html_text ($journal_entry['version'] . html_nbsp (3, 1)); - html_table_col_end (); - html_table_col_begin (); - html_text ($GLOBALS['phpgw']->accounts->id2name ($journal_entry['owner_id']) . html_nbsp (3, 1)); - html_table_col_end (); - html_table_col_begin (); - html_text ($journal_entry['comment']); - html_table_col_end (); - } - - html_table_end (); - html_page_close (); - } - else - { - html_text_bold (lang('No version history for this file/directory')); - } - -} - -if ($newfile && $createfile) -{ - if ($badchar = bad_chars ($createfile, True, True)) - { - echo $GLOBALS['phpgw']->common->error_list (array (html_encode (lang('File names cannot contain "%1"',$badchar), 1))); - html_break (2); - html_link_back (); - html_page_close (); - } - - if ($GLOBALS['phpgw']->vfs->file_exists (array ( - 'string' => $createfile, - 'relatives' => array (RELATIVE_ALL) - )) - ) - { - echo $GLOBALS['phpgw']->common->error_list (array (lang('File %1 already exists. Please edit it or delete it first.', $createfile))); - html_break (2); - html_link_back (); - html_page_close (); - } - - if ($GLOBALS['phpgw']->vfs->touch (array ( - 'string' => $createfile, - 'relatives' => array (RELATIVE_ALL) - )) - ) - { - $fileman = array (); - $fileman[0] = $createfile; - $edit = 1; - $numoffiles++; - } - else - { - echo $GLOBALS['phpgw']->common->error_list (array (lang('File %1 could not be created.', $createfile))); - } -} - -if ($op == 'help' && $help_name) -{ - while (list ($num, $help_array) = each ($help_info)) - { - if ($help_array[0] != $help_name) - continue; - - $help_array[1] = preg_replace ("/\[(.*)\|(.*)\]/Ue", "html_help_link ('\\1', '\\2', False, True)", $help_array[1]); - $help_array[1] = preg_replace ("/\[(.*)\]/Ue", "html_help_link ('\\1', '\\1', False, True)", $help_array[1]); - - html_font_set ('4'); - $title = ereg_replace ('_', ' ', $help_array[0]); - $title = ucwords ($title); - html_text ($title); - html_font_end (); - - html_break (2); - - html_font_set ('2'); - html_text ($help_array[1]); - html_font_end (); - } - - $GLOBALS['phpgw']->common->phpgw_exit (); -} - -### -# Start Main Page -### - -html_page_begin (lang('Users').' :: '.$GLOBALS['userinfo']['username']); -html_page_body_begin (HTML_PAGE_BODY_COLOR); - -if ($messages) -{ - html_text ($messages); -} - -if (!count ($GLOBALS['settings'])) -{ - $pref = CreateObject ('phpgwapi.preferences', $GLOBALS['userinfo']['username']); - $pref->read_repository (); - $GLOBALS['phpgw']->hooks->single ('add_def_pref', $GLOBALS['appname']); - $pref->save_repository (True); - $pref_array = $pref->read_repository (); - $GLOBALS['settings'] = $pref_array[$GLOBALS['appname']]; -} - -### -# Start Main Table -### - -if (!$op && !$delete && !$createdir && !$renamefiles && !$move && !$copy && !$edit && !$comment_files) -{ - html_table_begin ('100%'); - html_table_row_begin (); - html_table_col_begin ('center', NULL, 'top'); - html_align ('center'); - html_form_begin ($GLOBALS['appname'].'/index.php?path='.$path); - if ($numoffiles || $cwd) - { - while (list ($num, $name) = each ($GLOBALS['settings'])) - { - if ($name) - { - $columns++; - } - } - $columns++; - html_table_begin (); - html_table_row_begin (NULL, NULL, NULL, HTML_TABLE_FILES_HEADER_BG_COLOR); - html_table_col_begin ('center', NULL, NULL, NULL, $columns); - html_table_begin ('100%'); - html_table_row_begin (); - html_table_col_begin ('left'); - - if ($path != '/') - { - html_link ($GLOBALS['appname'].'/index.php?path='.$lesspath, html_image ('images/folder-up.png', lang('Up'), 'left', 0, NULL, 1)); - html_help_link ('up'); - } - - html_table_col_end (); - html_table_col_begin ('center'); - - if ($cwd) - { - if ($path == $GLOBALS['homedir']) - { - html_image ('images/folder-home.png', lang('Folder'), 'center'); - } - else - { - html_image ('images/folder.png', lang('Folder'), 'center'); - } - } - else - { - html_image ('images/folder-home.png', lang('Home')); - } - - html_font_set (4, HTML_TABLE_FILES_HEADER_TEXT_COLOR); - html_text_bold ($disppath); - html_font_end (); - html_help_link ('directory_name'); - html_table_col_end (); - html_table_col_begin ('right'); - - if ($path != $GLOBALS['homedir']) - { - html_link ($GLOBALS['appname'].'/index.php?path='.$GLOBALS['homedir'], html_image ('images/folder-home.png', lang('Home'), 'right', 0, NULL, 1)); - html_help_link ('home'); - } - - html_table_col_end (); - html_table_row_end (); - html_table_end (); - html_table_col_end (); - html_table_row_end (); - html_table_row_begin (NULL, NULL, NULL, HTML_TABLE_FILES_COLUMN_HEADER_BG_COLOR); - - ### - # Start File Table Column Headers - # Reads values from $file_attributes array and preferences - ### - - html_table_col_begin (); - html_text (lang('Sort by:') . html_nbsp (1, 1), NULL, NULL, 0); - html_help_link ('sort_by'); - html_table_col_end (); - - reset ($file_attributes); - while (list ($internal, $displayed) = each ($file_attributes)) - { - if ($GLOBALS['settings'][$internal]) - { - html_table_col_begin (); - html_link ($GLOBALS['appname'].'/index.php?path='.$path.'&sortby='.$internal, html_text_bold ($displayed, 1, 0)); - html_help_link (strtolower (ereg_replace (' ', '_', $displayed))); - html_table_col_end (); - } - } - - html_table_col_begin (); - html_table_col_end (); - html_table_row_end (); - - if ($GLOBALS['settings']['dotdot'] && $GLOBALS['settings']['name'] && $path != '/') - { - html_table_row_begin (); - html_table_col_begin (); - html_table_col_end (); - - /* We can assume the next column is the name */ - html_table_col_begin (); - html_image ('images/folder.png', lang('Folder')); - html_link ($GLOBALS['appname'].'/index.php?path='.$lesspath, '..'); - html_table_col_end (); - - if ($GLOBALS['settings']['mime_type']) - { - html_table_col_begin (); - html_text (lang('Directory')); - html_table_col_end (); - } - - html_table_row_end (); - } - - ### - # List all of the files, with their attributes - ### - - reset ($files_array); - for ($i = 0; $i != $numoffiles; $i++) - { - $files = $files_array[$i]; - - if ($rename || $edit_comments) - { - unset ($this_selected); - unset ($renamethis); - unset ($edit_this_comment); - - for ($j = 0; $j != $numoffiles; $j++) - { - if ($fileman[$j] == $files['name']) - { - $this_selected = 1; - break; - } - } - - if ($rename && $this_selected) - { - $renamethis = 1; - } - elseif ($edit_comments && $this_selected) - { - $edit_this_comment = 1; - } - } - - if (!$GLOBALS['settings']['dotfiles'] && ereg ("^\.", $files['name'])) - { - continue; - } - - html_table_row_begin (NULL, NULL, NULL, HTML_TABLE_FILES_BG_COLOR); - - ### - # Checkboxes - ### - - html_table_col_begin ('right'); - - if (!$rename && !$edit_comments && $path != $GLOBALS['fakebase'] && $path != '/') - { - html_form_input ('checkbox', 'fileman['.$i.']', base64_encode ($files['name'])); - } - elseif ($renamethis) - { - html_form_input ('hidden', 'fileman[' . base64_encode ($files['name']) . ']', $files['name'], NULL, NULL, 'checked'); - } - else - { - html_nbsp(); - } - - html_table_col_end (); - - ### - # File name and icon - ### - - if ($GLOBALS['settings']['name']) - { - if ($phpwh_debug) - { - echo 'Setting file name: '.$files['name'].'
'."\n"; - } - - html_table_col_begin (); - - if ($renamethis) - { - if ($files['mime_type'] == 'Directory') - { - html_image ('images/folder.png', lang('Folder')); - } - html_form_input ('text', 'renamefiles[' . base64_encode ($files['name']) . ']', $files['name'], 255); - } - else - { - if ($files['mime_type'] == 'Directory') - { - html_image ('images/folder.png', lang('Folder')); - html_link ($GLOBALS['appname'].'/index.php?path='.$path.$dispsep.$files['name'], $files['name']); - } - else - { - if ($GLOBALS['settings']['viewonserver'] && isset ($GLOBALS['filesdir']) && !$files['link_directory']) - { - $clickview = $GLOBALS['filesdir'].$pwd.'/'.$files['name']; - - if ($phpwh_debug) - { - echo 'Setting clickview = '.$clickview.'
'."\n"; - } - } - else - { - $clickview = $GLOBALS['appname'].'/index.php?op=view&file='.$files['name'].'&path='.$path; - } - - if ($GLOBALS['settings']['viewinnewwin']) - { - $target = '_new'; - } - - html_link ($clickview, $files['name'], 0, 1, 0, $target); - } - } - - html_table_col_end (); - } - - ### - # MIME type - ### - - if ($GLOBALS['settings']['mime_type']) - { - html_table_col_begin (); - html_text ($files['mime_type']); - html_table_col_end (); - } - - ### - # File size - ### - - if ($GLOBALS['settings']['size']) - { - html_table_col_begin (); - - $size = $GLOBALS['phpgw']->vfs->get_size (array ( - 'string' => $files['directory'] . '/' . $files['name'], - 'relatives' => array (RELATIVE_NONE) - ) - ); - - borkb ($size); - - html_table_col_end (); - } - - ### - # Date created - ### - if ($GLOBALS['settings']['created']) - { - html_table_col_begin (); - html_text ($files['created']); - html_table_col_end (); - } - - ### - # Date modified - ### - - if ($GLOBALS['settings']['modified']) - { - html_table_col_begin (); - if ($files['modified'] != '0000-00-00') - { - html_text ($files['modified']); - } - html_table_col_end (); - } - - ### - # Owner name - ### - - if ($GLOBALS['settings']['owner']) - { - html_table_col_begin (); - html_text ($GLOBALS['phpgw']->accounts->id2name ($files['owner_id'])); - html_table_col_end (); - } - - ### - # Creator name - ### - - if ($GLOBALS['settings']['createdby_id']) - { - html_table_col_begin (); - if ($files['createdby_id']) - { - html_text ($GLOBALS['phpgw']->accounts->id2name ($files['createdby_id'])); - } - html_table_col_end (); - } - - ### - # Modified by name - ### - - if ($GLOBALS['settings']['modifiedby_id']) - { - html_table_col_begin (); - if ($files['modifiedby_id']) - { - html_text ($GLOBALS['phpgw']->accounts->id2name ($files['modifiedby_id'])); - } - html_table_col_end (); - } - - ### - # Application - ### - - if ($GLOBALS['settings']['app']) - { - html_table_col_begin (); - html_text ($files['app']); - html_table_col_end (); - } - - ### - # Comment - ### - - if ($GLOBALS['settings']['comment']) - { - html_table_col_begin (); - if ($edit_this_comment) - { - html_form_input ('text', 'comment_files[' . base64_encode ($files['name']) . ']', html_encode ($files['comment'], 1), 255); - } - else - { - html_text ($files['comment']); - } - html_table_col_end (); - } - - ### - # Version - ### - - if ($GLOBALS['settings']['version']) - { - html_table_col_begin (); - html_link ($GLOBALS['appname'].'/index.php?op=history&file='.$files['name'].'&path='.$path, $files['version'], NULL, True, NULL, '_new'); - html_table_col_end (); - } - - ### - # Deleteable (currently not used) - ### - - if ($GLOBALS['settings']['deleteable']) - { - if ($files['deleteable'] == 'N') - { - html_table_col_begin (); - html_image ('images/locked.png', lang('Locked')); - html_table_col_end (); - } - else - { - html_table_col_begin (); - html_table_col_end (); - } - } - - html_table_row_end (); - - if ($files['mime_type'] == 'Directory') - { - $usedspace += $fileinfo[0]; - } - else - { - $usedspace += $files['size']; - } - } - - html_table_end (); - html_break (2); - - if ($path != '/' && $path != $GLOBALS['fakebase']) - { - if (!$rename && !$edit_comments) - { - html_form_input ('submit', 'edit', lang('Edit')); - html_help_link ('edit'); - html_nbsp (3); - } - - if (!$edit_comments) - { - html_form_input ('submit', 'rename', lang('Rename')); - html_help_link ('rename'); - html_nbsp (3); - } - - if (!$rename && !$edit_comments) - { - html_form_input ('submit', 'delete', lang('Delete')); - html_help_link ('delete'); - html_nbsp (3); - } - - if (!$rename) - { - html_form_input ('submit', 'edit_comments', lang('Edit comments')); - html_help_link ('edit_comments'); - } - } - } - - ### - # Display some inputs and info, but not when renaming or editing comments - ### - - if (!$rename && !$edit_comments) - { - ### - # Begin Copy to/Move to selection - ### - - html_break (1); - html_form_input ('submit', 'go', lang('Go to:')); - html_help_link ('go_to'); - - if ($path != '/' && $path != $GLOBALS['fakebase']) - { - html_form_input ('submit', 'copy', lang('Copy to:')); - html_help_link ('copy_to'); - html_form_input ('submit', 'move', lang('Move to:')); - html_help_link ('move_to'); - } - - html_form_select_begin ('todir'); - - html_break (1); - - ### - # First we get the directories in their home directory - ### - - $dirs = array (); - $dirs[] = array ('directory' => $GLOBALS['fakebase'], 'name' => $GLOBALS['userinfo']['account_lid']); - - $ls_array = $GLOBALS['phpgw']->vfs->ls (array ( - 'string' => $GLOBALS['homedir'], - 'relatives' => array (RELATIVE_NONE), - 'checksubdirs' => True, - 'mime_type' => 'Directory' - ) - ); - - while (list ($num, $dir) = each ($ls_array)) - { - $dirs[] = $dir; - } - - - ### - # Then we get the directories in their readable groups' home directories - ### - - reset ($readable_groups); - while (list ($num, $group_array) = each ($readable_groups)) - { - ### - # Don't list directories for groups that don't have access - ### - - if (!$groups_applications[$group_array['account_name']][$GLOBALS['appname']]['enabled']) - { - continue; - } - - $dirs[] = array ('directory' => $GLOBALS['fakebase'], 'name' => $group_array['account_name']); - - $ls_array = $phpgw->vfs->ls (array ( - 'string' => $GLOBALS['fakebase'].'/'.$group_array['account_name'], - 'relatives' => array (RELATIVE_NONE), - 'checksubdirs' => True, - 'mime_type' => 'Directory' - ) - ); - while (list ($num, $dir) = each ($ls_array)) - { - $dirs[] = $dir; - } - } - - reset ($dirs); - while (list ($num, $dir) = each ($dirs)) - { - if (!$dir['directory']) - { - continue; - } - - ### - # So we don't display // - ### - - if ($dir['directory'] != '/') - { - $dir['directory'] .= '/'; - } - - ### - # No point in displaying the current directory, or a directory that doesn't exist - ### - - if ((($dir['directory'] . $dir['name']) != $path) - && $GLOBALS['phpgw']->vfs->file_exists (array ( - 'string' => $dir['directory'] . $dir['name'], - 'relatives' => array (RELATIVE_NONE) - )) - ) - { - html_form_option ($dir['directory'] . $dir['name'], $dir['directory'] . $dir['name']); - } - } - - html_form_select_end (); - html_help_link ('directory_list'); - - if ($path != '/' && $path != $GLOBALS['fakebase']) - { - html_break (1); - - html_form_input ('submit', 'download', lang('Download')); - html_help_link ('download'); - html_nbsp (3); - - if ($can_add) - { - html_form_input ('text', 'createdir', NULL, 255, 15); - html_form_input ('submit', 'newdir', lang('Create Folder')); - html_help_link ('create_folder'); - } - } - - html_break (1); - html_form_input ('submit', 'update', lang('Update')); - html_help_link ('update'); - - if ($path != '/' && $path != $GLOBALS['fakebase'] && $can_add) - { - html_nbsp (3); - html_form_input ('text', 'createfile', NULL, 255, 15); - html_form_input ('submit', 'newfile', lang('Create File')); - html_help_link ('create_file'); - } - - if ($GLOBALS['settings']['show_command_line']) - { - html_break (2); - html_form_input ('text', 'command_line', NULL, NULL, 50); - html_help_link ('command_line'); - - html_break (1); - html_form_input ('submit', 'execute', lang('Execute')); - html_help_link ('execute'); - } - - html_form_end (); - - html_help_link ('file_stats'); - html_break (1); - html_text_bold (lang('Files').': '); - html_text ($numoffiles); - html_nbsp (3); - - html_text_bold (lang('Used space').': '); - html_text (borkb ($usedspace, NULL, 1)); - html_nbsp (3); - - if ($path == $GLOBALS['homedir'] || $path == $GLOBALS['fakebase']) - { - html_text_bold (lang('Unused space').': '); - html_text (borkb ($GLOBALS['userinfo']['hdspace'] - $usedspace, NULL, 1)); - - $ls_array = $GLOBALS['phpgw']->vfs->ls (array ( - 'string' => $path, - 'relatives' => array (RELATIVE_NONE) - ) - ); - - $i = count ($ls_array); - - html_break (2); - html_text_bold (lang('Total Files').': '); - html_text ($i); - } - - ### - # Show file upload boxes. Note the last argument to html (). Repeats $show_upload_boxes times - ### - - if ($path != '/' && $path != $GLOBALS['fakebase'] && $can_add) - { - html_break (2); - html_form_begin ($GLOBALS['appname'].'/index.php?op=upload&path='.$path, 'post', 'multipart/form-data'); - html_table_begin (); - html_table_row_begin ('center'); - html_table_col_begin (); - html_text_bold (lang('File')); - html_help_link ('upload_file'); - html_table_col_end (); - html_table_col_begin (); - html_text_bold (lang('Comment')); - html_help_link ('upload_comment'); - html_table_col_end (); - html_table_row_end (); - - html_table_row_begin (); - html_table_col_begin (); - html_form_input ('hidden', 'show_upload_boxes', base64_encode ($show_upload_boxes)); - html (html_form_input ('file', 'upload_file[]', NULL, 255, NULL, NULL, NULL, 1) . html_break (1, NULL, 1), $show_upload_boxes); - html_table_col_end (); - html_table_col_begin (); - html (html_form_input ('text', 'upload_comment[]', NULL, NULL, NULL, NULL, NULL, 1) . html_break (1, NULL, 1), $show_upload_boxes); - html_table_col_end (); - html_table_row_end (); - html_table_end (); - html_form_input ('submit', 'upload_files', lang('Upload files')); - html_help_link ('upload_files'); - html_break (2); - html_text (lang('Show') . html_nbsp (1, True)); - html_link ($GLOBALS['appname'].'/index.php?show_upload_boxes=5', '5'); - html_nbsp (); - html_link ($GLOBALS['appname'].'/index.php?show_upload_boxes=10', '10'); - html_nbsp (); - html_link ($GLOBALS['appname'].'/index.php?show_upload_boxes=20', '20'); - html_nbsp (); - html_link ($GLOBALS['appname'].'/index.php?show_upload_boxes=50', '50'); - html_nbsp (); - html_text (lang('upload fields')); - html_nbsp (); - html_help_link ('show_upload_fields'); - html_form_end (); - } - } - - html_table_col_end (); - html_table_row_end (); - html_table_end (); - html_page_close (); -} - -### -# Handle Editing files -### - -if ($edit) -{ - ### - # If $edit is "Edit", we do nothing, and let the for loop take over - ### - - if ($edit_file) - { - $edit_file_content = stripslashes ($edit_file_content); - } - - if ($edit_preview) - { - $content = $edit_file_content; - - html_break (1); - html_text_bold (lang('Preview of %1', $path.'/'.$edit_file)); - html_break (2); - - html_table_begin ('90%'); - html_table_row_begin (); - html_table_col_begin (); - html_text (nl2br ($content)); - html_table_col_end (); - html_table_row_end (); - html_table_end (); - } - elseif ($edit_save) - { - $content = $edit_file_content; - - if ($GLOBALS['phpgw']->vfs->write (array ( - 'string' => $edit_file, - 'relatives' => array (RELATIVE_ALL), - 'content' => $content - )) - ) - { - html_text_bold (lang('Saved %1', $path.'/'.$edit_file)); - html_break (2); - html_link_back (); - } - else - { - html_text_error (lang('Could not save %1', $path.'/'.$edit_file)); - html_break (2); - html_link_back (); - } - } - -/* This doesn't work just yet - elseif ($edit_save_all) - { - for ($j = 0; $j != $numoffiles; $j++) - { - $fileman[$j]; - - $content = $fileman[$j]; - echo 'fileman['.$j.']: '.$fileman[$j].'
'.$content.'
'; - continue; - - if ($GLOBALS['phpgw']->vfs->write (array ( - 'string' => $fileman[$j], - 'relatives' => array (RELATIVE_ALL), - 'content' => $content - )) - ) - { - html_text_bold (lang('Saved %1', $path.'/'.$fileman[$j])); - html_break (1); - } - else - { - html_text_error (lang('Could not save %1', $path.'/'.$fileman[$j])); - html_break (1); - } - } - - html_break (1); - } -*/ - - ### - # Now we display the edit boxes and forms - ### - - for ($j = 0; $j != $numoffiles; $j++) - { - ### - # If we're in preview or save mode, we only show the file - # being previewed or saved - ### - - if ($edit_file && ($fileman[$j] != $edit_file)) - { - continue; - } - - if ($fileman[$j] && $GLOBALS['phpgw']->vfs->file_exists (array ( - 'string' => $fileman[$j], - 'relatives' => array (RELATIVE_ALL) - )) - ) - { - if ($edit_file) - { - $content = stripslashes ($edit_file_content); - } - else - { - $content = $GLOBALS['phpgw']->vfs->read (array ('string' => $fileman[$j])); - } - - html_table_begin ('100%'); - html_form_begin ($GLOBALS['appname'].'/index.php?path='.$path); - html_form_input ('hidden', 'edit', True); - html_form_input ('hidden', 'edit_file', $fileman[$j]); - - ### - # We need to include all of the fileman entries for each file's form, - # so we loop through again - ### - - for ($i = 0; $i != $numoffiles; $i++) - { - html_form_input ('hidden', 'fileman['.$i.']', base64_encode ($fileman[$i])); - } - - html_table_row_begin (); - html_table_col_begin (); - html_form_textarea ('edit_file_content', 35, 75, $content); - html_table_col_end (); - html_table_col_begin ('center'); - html_form_input ('submit', 'edit_preview', lang('Preview %1', html_encode ($fileman[$j], 1))); - html_break (1); - html_form_input ('submit', 'edit_save', lang('Save %1', html_encode ($fileman[$j], 1))); -// html_break (1); -// html_form_input ('submit', 'edit_save_all', lang('Save all')); - html_table_col_end (); - html_table_row_end (); - html_break (2); - html_form_end (); - html_table_end (); - } - } -} - -### -# Handle File Uploads -### - -elseif ($op == 'upload' && $path != '/' && $path != $GLOBALS['fakebase']) -{ - for ($i = 0; $i != $show_upload_boxes; $i++) - { - if ($badchar = bad_chars ($_FILES['upload_file']['name'][$i], True, True)) - { - echo $GLOBALS['phpgw']->common->error_list (array (html_encode (lang('File names cannot contain "%1"', $badchar), 1))); - - continue; - } - - ### - # Check to see if the file exists in the database, and get its info at the same time - ### - - $ls_array = $GLOBALS['phpgw']->vfs->ls (array ( - 'string' => $path . '/' . $_FILES['upload_file']['name'][$i], - 'relatives' => array (RELATIVE_NONE), - 'checksubdirs' => False, - 'nofiles' => True - ) - ); - - $fileinfo = $ls_array[0]; - - if ($fileinfo['name']) - { - if ($fileinfo['mime_type'] == 'Directory') - { - echo $GLOBALS['phpgw']->common->error_list (array (lang('Cannot replace %1 because it is a directory', $fileinfo['name']))); - continue; - } - } - - if ($_FILES['upload_file']['size'][$i] > 0) - { - if ($fileinfo['name'] && $fileinfo['deleteable'] != 'N') - { - $GLOBALS['phpgw']->vfs->set_attributes (array ( - 'string' => $_FILES['upload_file']['name'][$i], - 'relatives' => array (RELATIVE_ALL), - 'attributes' => array ( - 'owner_id' => $GLOBALS['userinfo']['username'], - 'modifiedby_id' => $GLOBALS['userinfo']['username'], - 'modified' => $now, - 'size' => $_FILES['upload_file']['size'][$i], - 'mime_type' => $_FILES['upload_file']['type'][$i], - 'deleteable' => 'Y', - 'comment' => stripslashes ($upload_comment[$i]) - ) - ) - ); - - $GLOBALS['phpgw']->vfs->cp(array ( - 'from' => $_FILES['upload_file']['tmp_name'][$i], - 'to' => $_FILES['upload_file']['name'][$i], - 'relatives' => array (RELATIVE_NONE|VFS_REAL, RELATIVE_ALL) - ) - ); - - html_text_summary(lang('Replaced %1', $disppath.'/'.$_FILES['upload_file']['name'][$i]), $_FILES['upload_file']['size'][$i]); - } - else - { - $GLOBALS['phpgw']->vfs->cp (array ( - 'from' => $_FILES['upload_file']['tmp_name'][$i], - 'to' => $_FILES['upload_file']['name'][$i], - 'relatives' => array (RELATIVE_NONE|VFS_REAL, RELATIVE_ALL) - ) - ); - - $GLOBALS['phpgw']->vfs->set_attributes (array ( - 'string' => $_FILES['upload_file']['name'][$i], - 'relatives' => array (RELATIVE_ALL), - 'attributes' => array ( - 'mime_type' => $_FILES['upload_file']['type'][$i], - 'comment' => stripslashes ($upload_comment[$i]) - ) - ) - ); - - html_text_summary(lang('Created %1', $disppath.'/'.$_FILES['upload_file']['name'][$i]), $_FILES['upload_file']['size'][$i]); - } - } - elseif ($_FILES['upload_file']['name'][$i]) - { - $GLOBALS['phpgw']->vfs->touch (array ( - 'string' => $_FILES['upload_file']['name'][$i], - 'relatives' => array (RELATIVE_ALL) - ) - ); - - $GLOBALS['phpgw']->vfs->set_attributes (array ( - 'string' => $_FILES['upload_file']['name'][$i], - 'relatives' => array (RELATIVE_ALL), - 'attributes' => array ( - 'mime_type' => $_FILES['upload_file']['type'][$i], - 'comment' => $upload_comment[$i] - ) - ) - ); - - html_text_summary(lang('Created %1', $disppath.'/'.$_FILES['upload_file']['name'][$i]), $file_size[$i]); - } - } - - html_break (2); - html_link_back (); -} - -### -# Handle Editing comments -### - -elseif ($comment_files) -{ - while (list ($file) = each ($comment_files)) - { - if ($badchar = bad_chars ($comment_files[$file], False, True)) - { - echo $GLOBALS['phpgw']->common->error_list (array (html_text_italic ($file, 1) . html_encode (': ' . lang('Comments cannot contain "%1"', $badchar), 1))); - continue; - } - - $GLOBALS['phpgw']->vfs->set_attributes (array ( - 'string' => $file, - 'relatives' => array (RELATIVE_ALL), - 'attributes' => array ( - 'comment' => stripslashes ($comment_files[$file]) - ) - ) - ); - - html_text_summary (lang('Updated comment for %1', $path.'/'.$file)); - } - - html_break (2); - html_link_back (); -} - -### -# Handle Renaming Files and Directories -### - -elseif ($renamefiles) -{ - while (list ($from, $to) = each ($renamefiles)) - { - if ($badchar = bad_chars ($to, True, True)) - { - echo $GLOBALS['phpgw']->common->error_list (array (html_encode (lang('File names cannot contain "%1"', $badchar), 1))); - continue; - } - - if (ereg ("/", $to) || ereg ("\\\\", $to)) - { - echo $GLOBALS['phpgw']->common->error_list (array (lang("File names cannot contain \\ or /"))); - } - elseif (!$GLOBALS['phpgw']->vfs->mv (array ( - 'from' => $from, - 'to' => $to - )) - ) - { - echo $GLOBALS['phpgw']->common->error_list (array (lang('Could not rename %1 to %2', $disppath.'/'.$from, $disppath.'/'.$to))); - } - else - { - html_text_summary (lang('Renamed %1 to %2', $disppath.'/'.$from, $disppath.'/'.$to)); - } - } - - html_break (2); - html_link_back (); -} - -### -# Handle Moving Files and Directories -### - -elseif ($move) -{ - while (list ($num, $file) = each ($fileman)) - { - if ($GLOBALS['phpgw']->vfs->mv (array ( - 'from' => $file, - 'to' => $todir . '/' . $file, - 'relatives' => array (RELATIVE_ALL, RELATIVE_NONE) - )) - ) - { - $moved++; - html_text_summary (lang('Moved %1 to %2', $disppath.'/'.$file, $todir.'/'.$file)); - } - else - { - echo $GLOBALS['phpgw']->common->error_list (array (lang('Could not move %1 to %2', $disppath.'/'.$file, $todir.'/'.$file))); - } - } - - if ($moved) - { - html_break (2); - html_link ($GLOBALS['appname'].'/index.php?path='.$todir, lang('Go to %1', $todir)); - } - - html_break (2); - html_link_back (); -} - -### -# Handle Copying of Files and Directories -### - -elseif ($copy) -{ - while (list ($num, $file) = each ($fileman)) - { - if ($GLOBALS['phpgw']->vfs->cp (array ( - 'from' => $file, - 'to' => $todir . '/' . $file, - 'relatives' => array (RELATIVE_ALL, RELATIVE_NONE) - )) - ) - { - $copied++; - html_text_summary (lang('Copied %1 to %2', $disppath.'/'.$file, $todir.'/'.$file)); - } - else - { - echo $GLOBALS['phpgw']->common->error_list (array (lang('Could not copy %1 to %2', $disppath.'/'.$file, $todir.'/'.$file))); - } - } - - if ($copied) - { - html_break (2); - html_link ($GLOBALS['appname'].'/index.php?path='.$todir, lang('Go to %1', $todir)); - } - - html_break (2); - html_link_back (); -} - -### -# Handle Deleting Files and Directories -### - -elseif ($delete) -{ - for ($i = 0; $i != $numoffiles; $i++) - { - if ($fileman[$i]) - { - if ($GLOBALS['phpgw']->vfs->delete (array ('string' => $fileman[$i]))) - { - html_text_summary (lang('Deleted %1', $disppath.'/'.$fileman[$i]), $fileinfo['size']); - } - else - { - $GLOBALS['phpgw']->common->error_list (array (lang('Could not delete %1', $disppath.'/'.$fileman[$i]))); - } - } - } - - html_break (2); - html_link_back (); -} - -elseif ($newdir && $createdir) -{ - if ($badchar = bad_chars ($createdir, True, True)) - { - echo $GLOBALS['phpgw']->common->error_list (array (html_encode (lang('Directory names cannot contain "%1"', $badchar), 1))); - html_break (2); - html_link_back (); - html_page_close (); - } - - if ($createdir[strlen($createdir)-1] == ' ' || $createdir[0] == ' ') - { - echo $GLOBALS['phpgw']->common->error_list (array (lang('Cannot create directory because it begins or ends in a space'))); - html_break (2); - html_link_back (); - html_page_close (); - } - - $ls_array = $GLOBALS['phpgw']->vfs->ls (array ( - 'string' => $path . '/' . $createdir, - 'relatives' => array (RELATIVE_NONE), - 'checksubdirs' => False, - 'nofiles' => True - ) - ); - - $fileinfo = $ls_array[0]; - - if ($fileinfo['name']) - { - if ($fileinfo['mime_type'] != 'Directory') - { - echo $GLOBALS['phpgw']->common->error_list (array (lang('%1 already exists as a file', $fileinfo['name']))); - html_break (2); - html_link_back (); - html_page_close (); - } - else - { - echo $GLOBALS['phpgw']->common->error_list (array (lang('Directory %1 already exists', $fileinfo['name']))); - html_break (2); - html_link_back (); - html_page_close (); - } - } - else - { - if ($GLOBALS['phpgw']->vfs->mkdir (array ('string' => $createdir))) - { - html_text_summary (lang('Created directory %1', $disppath.'/'.$createdir)); - html_break (2); - html_link ($GLOBALS['appname'].'/index.php?path='.$disppath.'/'.$createdir, lang('Go to %1', $disppath.'/'.$createdir)); - } - else - { - echo $GLOBALS['phpgw']->common->error_list (array (lang('Could not create %1', $disppath.'/'.$createdir))); - } - } - - html_break (2); - html_link_back (); -} - -html_page_close (); - -?> diff --git a/filemanager/preferences.php b/filemanager/preferences.php deleted file mode 100644 index a585d72b8e..0000000000 --- a/filemanager/preferences.php +++ /dev/null @@ -1,156 +0,0 @@ - 'filemanager', - 'enable_nextmatchs_class' => True, - 'noheader' => True, - 'nonavbar' => True - ); - - //var_dump($file_attributes); - include('../header.inc.php'); - /* - To add an on/off preference, just add it here. Key is internal name, value is displayed name - */ - $other_checkboxes = array ("viewinnewwin" => lang("View documents in new window"), "viewonserver" => lang("View documents on server (if available)"), "viewtextplain" => lang("Unknown MIME-type defaults to text/plain when viewing"), "dotdot" => lang("Show .."), "dotfiles" => lang("Show .files"), "show_help" => lang("Show help"), "show_command_line" => lang("Show command line (EXPERIMENTAL. DANGEROUS.)")); - - /* - To add a dropdown preferences, add it here. Key is internal name, value key is - displayed name, value values are choices in the dropdown - */ - $other_dropdown = array ("show_upload_boxes" => array (lang("Default number of upload fields to show"), "5", "10", "20", "30")); - - if ($submit) - { - $GLOBALS['phpgw']->preferences->read_repository (); - - reset ($other_checkboxes); - while (list ($internal, $displayed) = each ($other_checkboxes)) - { - $GLOBALS['phpgw']->preferences->add ($GLOBALS['phpgw_info']["flags"]["currentapp"], $internal, $$internal); - } - - reset ($other_dropdown); - while (list ($internal, $displayed) = each ($other_dropdown)) - { - $GLOBALS['phpgw']->preferences->add ($GLOBALS['phpgw_info']["flags"]["currentapp"], $internal, $$internal); - } - - reset ($file_attributes); - while (list ($internal, $displayed) = each ($file_attributes)) - { - $GLOBALS['phpgw']->preferences->add ($GLOBALS['phpgw_info']["flags"]["currentapp"], $internal, $$internal); - } - - - $GLOBALS['phpgw']->preferences->save_repository (True); - - Header('Location: '.$GLOBALS['phpgw']->link('/preferences/index.php')); - $GLOBALS['phpgw']->common->phpgw_exit(); - } - - function display_item ($field,$data) - { - global $p, $tr_color; - - $tr_color = $GLOBALS['phpgw']->nextmatchs->alternate_row_color ($tr_color); - $var = array ( - 'bg_color' => $tr_color, - 'field' => $field, - 'data' => $data - ); - $p->set_var ($var); - $p->parse ('row', 'pref_list', True); - } - - $GLOBALS['phpgw']->common->phpgw_header (); - echo parse_navbar (); - - $p = CreateObject ('phpgwapi.Template', $GLOBALS['phpgw']->common->get_tpl_dir ('filemanager')); - $templates = array ( - 'pref' => 'pref.tpl', - 'pref_colspan' => 'pref_colspan.tpl', - 'pref_list' => 'pref_list.tpl' - ); - $p->set_file ($templates); - - $var = array ( - 'title' => lang ('FileManager preferences'), - 'action_url' => $GLOBALS['phpgw']->link ('/' . $GLOBALS['phpgw_info']['flags']['currentapp'] . '/preferences.php'), - 'bg_color' => $GLOBALS['phpgw_info']['theme']['th_bg'], - 'submit_lang' => lang ('submit') - ); - - $p->set_var ($var); - $p->set_var ('text', ' '); - $p->parse ('row', 'pref_colspan', True); - - if ($totalerrors) - { - echo '

' . $GLOBALS['phpgw']->common->error_list($errors) . '
'; - } - - - while (list ($internal, $displayed) = each ($file_attributes)) - { - unset ($checked); - if ($GLOBALS['phpgw_info']["user"]["preferences"]["filemanager"][$internal]) - { - $checked = 1; - } - - $str .= html_form_input ("checkbox", $internal, NULL, NULL, NULL, $checked, NULL, 1) . " $displayed" . html_break (1, NULL, 1); - } - - display_item (lang ('Display attributes'), $str); - - reset ($other_checkboxes); - while (list ($internal, $displayed) = each ($other_checkboxes)) - { - unset ($checked); - if ($GLOBALS['phpgw_info']["user"]["preferences"]["filemanager"][$internal]) - { - $checked = 1; - } - - $str = html_form_input ("checkbox", $internal, NULL, NULL, NULL, $checked, NULL, 1); - display_item ($displayed, $str); - } - - reset ($other_dropdown); - while (list ($internal, $value_array) = each ($other_dropdown)) - { - reset ($value_array); - unset ($options); - while (list ($num, $value) = each ($value_array)) - { - if ($num == 0) - { - $displayed = $value; - continue; - } - - $options .= html_form_option ($value, $value, $GLOBALS['phpgw_info']["user"]["preferences"]["filemanager"][$internal] == $value, True); - } - - $output = html_form_select_begin ($internal, True); - $output .= $options; - $output .= html_form_select_end (True); - - display_item ($displayed, $output); - } - - $p->pparse ('out', 'pref'); - $GLOBALS['phpgw']->common->phpgw_footer (); -?> diff --git a/filemanager/setup/setup.inc.php b/filemanager/setup/setup.inc.php index 46aa05e6df..547ca829b1 100755 --- a/filemanager/setup/setup.inc.php +++ b/filemanager/setup/setup.inc.php @@ -19,12 +19,9 @@ /* The hooks this app includes, needed for hooks registration */ $setup_info['filemanager']['hooks'] = array( - 'add_def_pref', - 'admin', 'deleteaccount', 'settings', 'sidebox_menu', - 'personalizer', 'preferences' );