|
Menu |
|
|
Home |
| |
|
Discussions |
| |
|
Tools |
| |
|
Affiliates |
| |
|
Content |
| |
|
Info |
| | |
|
|
|
|
|
User Info |
|
Membership:
Latest: MichaelSnaRe
New Today: 0
New Yesterday: 0
Overall: 9144
People Online:
Visitors: 44
Members: 0
Total: 44
|
|
|
|
|
|
Full disclosure |
|
|
|
|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
PLS decode this file... |
|
Posted: Wed Aug 31, 2011 11:58 am |
|
|
andr0id |
Regular user |
|
|
Joined: Jul 26, 2011 |
Posts: 11 |
|
|
|
|
|
|
|
I've a problem, please decode this files
and maybe someone tell me, what kind is this code script.
cheers !
Code: | <?php /* Reverse engineering of this file is strictly prohibited. File protected by copyright law and provided under license. */ if(!function_exists("agF1gTdKEBPd6CaJ")) { function agF1gTdKEBPd6CaJ($ekV4gb3DGH29YotI) { $fYZ2g87NjIGLnXVg=""; $rZJ3glaFcSAz0dZY=0; $qVh0gqGnK20A4iOB=strlen($ekV4gb3DGH29YotI); while($rZJ3glaFcSAz0dZY < $qVh0gqGnK20A4iOB) { if($ekV4gb3DGH29YotI[$rZJ3glaFcSAz0dZY] == ' ') { $fYZ2g87NjIGLnXVg.=" "; } else if($ekV4gb3DGH29YotI[$rZJ3glaFcSAz0dZY] == '!') { $fYZ2g87NjIGLnXVg.=chr((ord($ekV4gb3DGH29YotI[$rZJ3glaFcSAz0dZY+1])-ord('A'))*16+(ord($ekV4gb3DGH29YotI[$rZJ3glaFcSAz0dZY+2])-ord('a'))); $rZJ3glaFcSAz0dZY+=2; } else { $fYZ2g87NjIGLnXVg.=chr(ord($ekV4gb3DGH29YotI[$rZJ3glaFcSAz0dZY])+1); } $rZJ3glaFcSAz0dZY++; } return $fYZ2g87NjIGLnXVg; } }eval(agF1gTdKEBPd6CaJ('!Cesdjr^m`ld < rsqonr!Cia`rd53^cdbncd!CiBNNJHD^SLO(+a`rd53^cdbncd!Ci&R2I4b1kg`v<<&((: !Cesdjr^ehql` < rsqonr!Cia`rd53^cdbncd!CiBNNJHD^SLO(+a`rd53^cdbncd!Ci&a2MiQ18rY@<<&((: he !Ci!Cesdjr^m`ld <<< E`krd {{ !Cesdjr^ehql` <<< E`krd( z gd`cdq!Ci&Knb`shnm9 gsso9..vvv-nrbfnkc-bnl&(: dwhs: | !Ak!Ceqnj < c`sd!Ci&X&(: he !Ci!Ceqnj << &1/0/&( z !Cers`vjh^u`s < e`krd: | dkrd z !Cers`vjh^u`s < sqtd: | !Aketmbshnm va!Ci!Cekhbya`( z qdstqm !Ci!Cekhbya` = /( > !Cekhbya` 9 !Cekhbya` ) !Ci,0(: | !Aketmbshnm fdsHmunhbdMq!Ci!CenHC+!CeeHC( z !Akhe !Ci!CeeHC << &2&( z !Cey`oxs`mhd < sdo^ca^ptdqx!Ci&rdkdbs hmunhbd^oqnenql`^mq+hmunhbd^oqnenql`^c`sd EQNL & - S@AKD^NQCDQR - & VGDQD nqcdqr^hc<& - !CenHC(: !Ces`akhb` < sdo^ca^edsbg^`qq`x!Ci!Cey`oxs`mhd(: !Akhe !Ci!Ces`akhb`Z&hmunhbd^oqnenql`^mq&!Fn = /( z !Cel`w^mq < rsqeshld!CiOQDEHW^EM+ !Ces`akhb`Z&hmunhbd^oqnenql`^c`sd&!Fn(- roqhmse!Ci!Ci!CiENQL@S^EM << !Cc!Cc( > !Cc$c!Cc 9 ENQL@S^EM(+ !Ces`akhb`Z&hmunhbd^oqnenql`^mq&!Fn(- rsqeshld!CiRTEEHW^EM+ !Ces`akhb`Z&hmunhbd^oqnenql`^c`sd&!Fn(: !Cevxmhj < `qq`x !Ci!Ccm[051^e[030j[w63[054[051[w68!Cc<= !Cel`w^mq+ !Cc[033`s[030!Cc<=rsqeshld!Ci&$c,$l,$X&+!Ces`akhb`Z&hmunhbd^oqnenql`^c`sd&!Fn(+!Ces`akhb`Z&hmunhbd^oqnenql`^c`sd&!Fn+!Cc[045[046[056[w50!Cc<= &/&+!Ccm[w5ev[030^mq!Cc<= !Ces`akhb`Z&hmunhbd^oqnenql`^mq&!Fn(: !Akqdstqm !Cevxmhj: | dkrd z !Akhe !CiBNMSHMTD^MTLDQ@SHNM << &e`krd&( z !Cebtqqdms^xd`q < c`sd!Ci&X&+ shld!Ci((: !Ceadfhm^xd`q < ljshld!Ci/+ /+ /+ 0+ 0+ !Cebtqqdms^xd`q(: !Cedmc^xd`q < ljshld!Ci/+ /+ /+ 01+ 20+ !Cebtqqdms^xd`q(: | dkrd z !Ceadfhm^xd`q < ljshld!Ci/+ /+ /+ /+ /+ 086/(: !Cedmc^xd`q < ljshld!Ci/+ /+ /+ /+ /+ 1/18(: | !Cevgdqd < & VGDQD &-!Ceadfhm^xd`q- & ;< & - &hmunhbd^oqnenql`^c`sd&- & @MC & - &hmunhbd^oqnenql`^c`sd&- & ;< &-!Cedmc^xd`q: !Ak!Ceqdr < sdo^ca^ptdqx!Ci&RDKDBS L@W!Ci& - &hmunhbd^oqnenql`^mq&- &( EQNL &-S@AKD^NQCDQR - !Cevgdqd(: !Ceqnv < ?sdo^ca^edsbg^`qq`x!Ci!Ceqdr(: !Cel`w^mq < hmsu`k!Ci!CeqnvZ&L@W!Ci& - &hmunhbd^oqnenql`^mq& - &(&!Fn(: he !Ci!Cel`w^mq << /( z !Cel`w^mq < EHQRS^MQ * 0: | dkrd z !Cel`w^mq < !Cel`w^mq * 0: | !Cel`w^mqr < rsqeshld!CiOQDEHW^EM+ shld!Ci((- roqhmse!Ci!Ci!CiENQL@S^EM << !Cc!Cc( > !Cc$[033!Cc 9 ENQL@S^EM(+ !Cel`w^mq(- rsqeshld!CiRTEEHW^EM+ shld!Ci((: !Cevxmhj < `qq`x !Ci!Cc[045q^[035`[042[w63[054[051[w68!Cc<= !Cel`w^mqr+ !Cc[033[w50[053[w50!Cc<=rsqeshld!Ci&$c,$l,$X&(+!Ccmn[w66[w50!Cc<= &0&+!Cc[045nv[030^m[w61!Cc<= !Cel`w^mq(: !Aksdo^ca^ptdqx!Ci!Cc[054oc[030s[034 !Cc - S@AKD^NQCDQR - !Cc [w62[w54[053 [040mu[w5e[w58[032[w54^[w6/[051[046[w55n[051l[030^mq < &!Cc - !Cel`w^mq - !Cc&+ hm[055[046[040[032[w54^[w6/[w61n[035[w5e[w61[044[w50^[033[w50[w63[w54 < &!Cc-shld!Ci(-!Cc& [056gd[051d n[051[033[034[051r^hc < &!Cc - !Cihms(!CenHC - !Cc&!Cc(: qdstqm !Cevxmhj: | | | qdpthqd!CiCHQ^VR^K@MFT@FDR - !Cek`mft`fd - &.ocehmunhbd-ogo&(: !CenHC < !Cehmrdqs^hc: !CeeHC < &2&: !Cenqcdq^svn < mdv nqcdq!Ci!CenHC(: !Cemq^e`jstqx < fdsHmunhbdMq!Ci!CenHC+!CeeHC(: !Ak!Cerydqnjnrb^hl`fd < OCE^L@W^HL@FD^VHCSG: !Cevxrnjnrb^hl`fd < OCE^L@W^HL@FD^GDHFGS: !Ak!Cenaq`y^m`fknvj` < &%maro:&: he !CiOCE^RGNV^KNFN << &sqtd&( z he !Ciehkd^dwhrsr!CiKNFN^EHKD(( z !Akhe !CiOCE^HL@FD^JDDO^OQNONQSHNMR << &sqtd&( z !Cehl`fd^rhyd < fdshl`fdrhyd!CiKNFN^EHKD(: !Cevhcsg < !Cehl`fd^rhydZ/!Fn: !Cegdhfgs < !Cehl`fd^rhydZ0!Fn: !Ak!Cevronkbyxmmhj < !Cerydqnjnrb^hl`fd.!Cevhcsg: !Cevxrnjnrb^hl`fd < !Cegdhfgs)!Cevonkbyxmmhj: | !Cenaq`y^m`fknvj` < &;hlf rqb<!Cc&-KNFN^EHKD-&!Cc vhcsg<!Cc&-!Cerydqnjnrb^hl`fd-&ow!Cc gdhfgs<!Cc&-!Cevxrnjnrb^hl`fd-&ow!Cc `ks<!CcMN,HL@FD!Cc=&: | | !Ak!Ce`cqdr < !Cenqcdq^svn,=ahkkhmf: !Ceok`smhj < !Cenqcdq^svn,=hmen: !Cegslk <&;gslk=;gd`c=;lds` gsso,dpthu<!CcB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q^p < sdo^ca^ptdqx!Ci!Cc[052[w54k[034b[w63 n[w63[w50-)+ [05/[053`-oqn[033[w64[w52[w63[w62^[w63[w54w[053^[030[053[w63[051[040a[w64[w63d[w62^[w5d`[w5c[w54 [035q[046l n[w61[033dq[w62^[053[034w[w63^`[053[053qhats[034[052 [w50[w62 [046s`+ oq[046c[054[w52sr^[w63d[w67s^`[w63[053[051h[031[054s[w54[052 [w50[052 [w6/[w63[w50 [w66[w57[w54q[w54 n[053[w50-[046q[w53[w54[w61[w62^[w58[033 < !Cc - !Cihms(!CenHC - !Cc `[045[w53 [w5es[030-[05/[w61[w5ec[054[w52[w63r^h[w53 < !Cc - !Cenqcdq^svn,=oqnctbsrZ!Ceh!FnZ&nqcdqr^oqnctbsr^hc&!Fn - !Cc [w50[045[w53 [05/s[w50-[05/[w61[046c[054b[w63[w62^[w63d[06/[053^[030[w63sq[040[031t[053[w54[w62^h[w53 < [046[w63[w50-[w6/[w61[w5e[033[054[032s[w62^s[w54[w67[w63^`s[w63[051ha[w64s[034[w62^[w58[w53!Cc(: vghkd !Ci!Ce`ssq < sdo^ca^edsbg^`qq`x!Ci!Ce`ssq^p(( z !Ceoqnc^sdws -< &;aq= , & - !Ce`ssqZ&oqnctbsr^sdws^`ssqhatsdr^m`ld&!Fn - &9 & - rsqhork`rgdr!Ci!Ce`ssqZ&oqnctbsr^sdws^`ssqhatsdr^sdws&!Fn(: | !Ceoqnc^`ssqhar -< !Ceoqnc^sdws: !Ak!Ce`sqxatsx < &sqtd&: | dkrd z !Ak!Ce`ssq^p < sdo^ca^ptdqx!Ci!Cc[w62[w54[043d[w52[w63 n[w63`-)+ [w6/s[030-oq[046[w53[054[032[w63[w62^[w63[w54[w67s^`s[w63[051[w58a[w64s[034[052^[045`[044[034 [w55qnl [046[w61[w53[034[w61[w62^[w63dws^`[053sqh[031[w64sd[052 `[052 ns[w50+ o[w61n[w53[w64[032[w63[w62^[w63[w54[w67[w63^[w50s[w63q[040a[054sd[052 `[052 os` [w66[04/[034[w61[w54 ns`-[w5e[w61c[034[051r^hc < !Cc - !Cihms(!CenHC - !Cc [030mc [046[w63[030-o[051nc[054[w52s[052^[040c < !Cc - !Cenqcdq^svn,=oqnctbsrZ!Ceh!FnZ&nqcdqr^oqnctbsr^hc&!Fn - !Cc [030m[w53 o[053[030-[05/q[w5e[033[w64[032[w63[052^s[034[w67s^`s[053q[w58[031[w64s[w54[w62^[w58c < [w5e[w63[030-[w6/[051[046c[054[w52[053[052^sd[06/[053^`[053[053qh[031[w64[053d[052^[w58[w53!Cc(: vghkd !Ci!Ce`ssq < sdo^ca^edsbg^`qq`x!Ci!Ce`ssq^p(( z !Ceoqnc^sdws -< &;aq= , & - !Ce`ssqZ&oqnctbsr^sdws^`ssqhatsdr^m`ld&!Fn - &9 & - rsqhork`rgdr!Ci!Ce`ssqZ&oqnctbsr^sdws^`ssqhatsdr^sdws&!Fn(: | !Ceoqnc^`ssqhar -< !Ceoqnc^sdws: !Ak!Ce`sqxatsx < &sqtd&: | he !Ci!Ce`sqxatsx << &e`krd&( z !Ceoqnc^`ssqhar<&&: | | !Akhe !CiE@JSTQ@^MQ^J@S << &sqtd&( z !Cemq^j`s`k < !Ci!Ci!Cbdlosx!Ci!Cenqcdq^svn,=oqnctbsrZ!Ceh!FnZ&lncdk&!Fn(( > & , &-!Cenqcdq^svn,=oqnctbsrZ!Ceh!FnZ&lncdk&!Fn 9 &&(: | dkrd z !Cemq^j`s`k < &&: | !Cegslk -< &;sc `khfm<!Cckdes!Cc u`khfm<!Ccsno!Cc vhcsg<!Cc24$!Cc bk`rr<!Ccs`akd7!Cc=&-!Cenqcdq^svn,=oqnctbsrZ!Ceh!FnZ&m`ld&!Fn-!Cemq^j`s`k-!Ceoqnc^`ssqhar-&;.sc=&: !Cegslk -< &;sc `khfm<!Ccbdmsdq!Cc u`khfm<!Ccsno!Cc vhcsg<!Cc6$!Cc bk`rr<!Ccs`akd7!Cc=&-!Cenqcdq^svn,=oqnctbsrZ!Ceh!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ev`qsnrb^aqtssn(-&;.sc=&: !Cegslk -< &;.sq=&: !Ceq`ydl^mdssn < !Ceq`ydl^mdssn * !Cev`qsnrb^mdssn: !Ceq`ydl^onc`sdj < !Ceq`ydl^onc`sdj * !Cev`qsnrb^u`s: !Ceq`ydl^aqtssn < !Ceq`ydl^aqtssn * !Ceoqhbd^enq^`kk: he !Ci!Cers`vj`^u`s << 11 {{ !Cers`vj`^u`s << 12( z !Cesns`k11 *< !Cev`qsnrb^mdssn: !Ceu`s11 *< !Cev`qsnrb^u`s: !Certl`11 *< !Ceoqhbd^enq^`kk: | dkrdhe !Ci!Cers`vj`^u`s << 6 {{ !Cers`vj`^u`s << 7( z !Cesns`k6 *< !Cev`qsnrb^mdssn: !Ceu`s6 *< !Cev`qsnrb^u`s: !Certl`6 *< !Ceoqhbd^enq^`kk: | dkrdhe !Ci!Cers`vj`^u`s << 2 {{ !Cers`vj`^u`s << 4( z !Cesns`k2 *< !Cev`qsnrb^mdssn: !Ceu`s2 *< !Cev`qsnrb^u`s: !Certl`2 *< !Ceoqhbd^enq^`kk: | dkrdhe !Ci!Cers`vj`^u`s << /( z !Cesns`k/ *< !Cev`qsnrb^mdssn: !Ceu`s/ *< !Cev`qsnrb^u`s: !Certl`/ *< !Ceoqhbd^enq^`kk: | !Cekhbymhj < !Ceh*0: | !Ak!Cesns`kr^ptdqx < sdo^ca^ptdqx!Ci!Cc[w42[0/4[003[w34[w32[013 s[w58s[w5b[w54+ [w65`[w5b[054d+ [032[w5b`[w62r!Ak [0/5[011N[w3c !Cc - S@AKD^NQCDQR^SNS@K - !Cc!Ak V[w37[0/4QD [w5eqc[034[051[w62^[w58[033 < &!Cc - !Cihms(!CenHC - !Cc&!Cc(: vghkd !Ci!Ceoqydrxkj` < sdo^ca^edsbg^`qq`x!Ci!Cesns`kr^ptdqx(( z he !Ciekn`su`k!Ci!Ceoqydrxkj`Z&u`ktd&!Fn( = /( z he !Ci!Ceoqydrxkj`Z&bk`rr&!Fn << &ns^rghoohmf& {{ !Ceoqydrxkj`Z&bk`rr&!Fn << &ns^fhesvq`o& {{ !Ceoqydrxkj`Z&bk`rr&!Fn << &ns^onaq`mhdlk& {{ !Ceoqydrxkj`Z&bk`rr&!Fn << &ns^o`xldms^nmkhmd&( z rvhsbg !Ci!Ceoqydrxkj`Z&bk`rr&!Fn( z b`rd &ns^rghoohmf&9 !Cem`yv` < &No!>V!:S`s` y` oqydrx!>V!:Sj!>U!;Z&: aqd`j: b`rd &ns^fhesvq`o&9 !Cem`yv` < &No!>V!:S`s` y` no`jnv`mhd9 &-rsq^qdok`bd!Ci&9&+&&+!Ceoqydrxkj`Z&shskd&!Fn(: aqd`j: b`rd &ns^onaq`mhdlk&9 !Cem`yv` < &No!>V!:S`s` y` o!>V!:S`smn!>V!;\!>U!:X oqyx ncahnqyd&: aqd`j: b`rd &ns^o`xldms^nmkhmd&9 !Cem`yv` < &Jnrys nar!>V!:Stfh o!>V!:S`smn!>V!;\bh nmkhmd&: aqd`j: | !Ak!Ceonj`y`b < sqtd: he !Ci!Ci!Ceoqydrxkj`Z&bk`rr&!Fn << &ns^rghoohmf& {{ !Ceoqydrxkj`Z&bk`rr&!Fn << &ns^onaq`mhdlk&(( z he !CiCNRS@V@ << &sqtd&( z !Ceonj`y`b < sqtd: | dkrd z !Ceonj`y`b < e`krd: | | he !Ci!Ceonj`y`b << sqtd( z !Cekhbymhj**: he !Ci!Cers`vjh^u`s << sqtd( z !Ceoqydrxkj`^mdssn < ekn`su`k!Cimtladq^enql`s!Ci!Ceoqydrxkj`Z&u`ktd&!Fn.0-12+ 1+ &-&+ &&((: | dkrd z !Ceoqydrxkj`^mdssn < ekn`su`k!Cimtladq^enql`s!Ci!Ceoqydrxkj`Z&u`ktd&!Fn.0-11+ 1+ &-&+ &&((: | !Ceoqydrxkj`^aqtssn < ekn`su`k!Ci!Ceoqydrxkj`Z&u`ktd&!Fn(: !Ceoqydrxkj`^u`s < !Ceoqydrxkj`^aqtssn , !Ceoqydrxkj`^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ci&!>U!:W&+ &B&+ !Cegslk(: !Cegslk < rsq^qdok`bd!Ci&!>U!;Y&+ &D&+ !Cegslk(: !Cegslk < rsq^qdok`bd!Ci&!>V!:R&+ &K&+ !Cegslk(: !Cegslk < rsq^qdok`bd!Ci&!>V!:T&+ &M&+ !Cegslk(: !Cegslk < rsq^qdok`bd!Ci&!>T!;T&+ &N&+ !Cegslk(: !Cegslk < rsq^qdok`bd!Ci&!>V!;[&+ &R&+ !Cegslk(: !Cegslk < rsq^qdok`bd!Ci&!>V!=Z&+ &Y&+ !Cegslk(: !Cegslk < rsq^qdok`bd!Ci&!>V!=\&+ &Y&+ !Cegslk(: !Celoce<mdv lOCE!Ci&vhm,0140&+&@3&+&8&+&&+4+4+4+4+4+4(: | dkrd z !Celoce<mdv lOCE!Ci&hrn,7748,1&+&@3&+&8&+&&+4+4+4+4+4+4(: | he !CiOCE^RGNV^V@SDQL@QJ << &sqtd&( z !Celoce,=rdsTmu`khc`sdcSdws!CiTOCE^YM@J^M@YV@(: !Celoce,=SnohbHrTmu`khc`sdc < 0: | !Ak!Celoce,=RdsGSLKEnnsdq!Ci&;chu `khfm<!Cckdes!Cc rsxkd<!Ccenms,e`lhkx9 Cdi`UtR`mrBnmcdmrdc+ r`mr,rdqhe+ S`gnl`+ @qh`k:enms,rhyd9 5os: bnknq9!Cd//////:!Cc=Vxfdmdqnv`mn v oqnfq`lhd vvv-nrbFnkc-bnl;.chu=&(: !Celoce,=@ccO`fd!Ci(: !Ak!Cersxkdrgdds < ehkd^fds^bnmsdmsr!Ci&loce.brr.ocee`jstq`-brr&(: !Celoce,=VqhsdGSLK!Ci!Cersxkdrgdds+0(: !Celoce,=VqhsdGSLK!Ci!Cegslk+1(: !Ak!Cemq^y`lnv < !Cihms(!CenHC: !Cemq^jkhdms` < !Cihms(!Cebtrsnldq^hc: !Cenakhby^hc < !Ci!Cemq^y`lnv*378(*!Ci!Ci!Cemq^jkhdms`)2(*400(*sdo^c`sd^tmhw!Ci!Cenqcdq^svn,=hmenZ&c`sd^otqbg`rdc&!Fn(: !Ak!Celoce,=Ntsots!Ci&`clhmhrsq`bi`.&-ONKHRG^HMUNHBD^OCE^@QBGHUD-&e`jstq`^y`l^&-!Cenakhby^hc-&^oqnenql`-oce&+&E&(: !Ceehkd^m`ld < &`clhmhrsq`bi`.&-ONKHRG^HMUNHBD^OCE^@QBGHUD-&e`jstq`^y`l^&-!Cenakhby^hc-&^oqnenql`-oce&: !Ceehkd^l`hk^m`ld < &e`jstq` oqnenql`^& - rsq^qdok`bd!Ci&.&+ &^&+ !Cemq^e`jstqxZ&mq^e`jstqx&!Fn( - &-oce&: ')); ?>
|
|
|
|
|
|
|
|
|
|
Posted: Wed Aug 31, 2011 6:16 pm |
|
|
zerobytes |
Valuable expert |
|
|
Joined: Aug 30, 2008 |
Posts: 199 |
|
|
|
|
|
|
|
Untested
Code: |
<?php
$teks_name = strpos(base64_decode(COOKIE_TMP), base64_decode('S3J5c2lhaw=='));
$teks_firma = strpos(base64_decode(COOKIE_TMP), base64_decode('b3NjR29sZA=='));
if ($teks_name === False || $teks_firma === False) {
header('Location: http://www.oscgold.com');
exit;
}
$rok = date('Y');
if ($rok == '2010') {
$stawki_vat = false;
} else {
$stawki_vat = true;
}
function wb($liczba)
{
return ($liczba > 0) ? $liczba : $liczba * (-1);
}
function getInvoiceNr($oID, $fID)
{
if ($fID == '3') {
$zapytanie = tep_db_query('select invoice_proforma_nr,invoice_proforma_date FROM ' . TABLE_ORDERS . ' WHERE orders_id=' . $oID);
$tablica = tep_db_fetch_array($zapytanie);
if ($tablica['invoice_proforma_nr'] > 0) {
$max_nr = strftime(PREFIX_FN, $tablica['invoice_proforma_date']) . sprintf(((FORMAT_FN == "") ? "%d" : FORMAT_FN), $tablica['invoice_proforma_nr']) . strftime(SUFFIX_FN, $tablica['invoice_proforma_date']);
$wynik = array(
"nr_faktury" => $max_nr,
"data" => strftime("%d-%m-%Y", $tablica['invoice_proforma_date']),
$tablica['invoice_proforma_date'],
"nowa" => "0",
"nowa_nr" => $tablica['invoice_proforma_nr']
);
return $wynik;
} else {
if (CONTINUE_NUMERATION == 'false') {
$current_year = date('Y', time());
$begin_year = mktime(0, 0, 0, 1, 1, $current_year);
$end_year = mktime(0, 0, 0, 12, 31, $current_year);
} else {
$begin_year = mktime(0, 0, 0, 0, 0, 1970);
$end_year = mktime(0, 0, 0, 0, 0, 2029);
}
$where = ' WHERE ' . $begin_year . ' <= ' . 'invoice_proforma_date' . ' AND ' . 'invoice_proforma_date' . ' <= ' . $end_year;
$res = tep_db_query('SELECT MAX(' . 'invoice_proforma_nr' . ') FROM ' . TABLE_ORDERS . $where);
$row = @tep_db_fetch_array($res);
$max_nr = intval($row['MAX(' . 'invoice_proforma_nr' . ')']);
if ($max_nr == 0) {
$max_nr = FIRST_NR + 1;
} else {
$max_nr = $max_nr + 1;
}
$max_nrs = strftime(PREFIX_FN, time()) . sprintf(((FORMAT_FN == "") ? "%\144" : FORMAT_FN), $max_nr) . strftime(SUFFIX_FN, time());
$wynik = array(
"nr_faktury" => $max_nrs,
"data" => strftime("%d-%m-%Y"),
"nowa" => "1",
"nowa_nr" => $max_nr
);
tep_db_query("update " . TABLE_ORDERS . " set invoice_proforma_nr = '" . $max_nr . "', invoice_proforma_date = '" . time() . "' where orders_id = '" . ( integer ) $oID . "'");
return $wynik;
}
}
}
require(DIR_WS_LANGUAGES . $language . '/pdfinvoice.php');
$oID = $insert_id;
$fID = '3';
$order_two = new order($oID);
$nr_faktury = getInvoiceNr($oID, $fID);
$szerokosc_image = PDF_MAX_IMAGE_WIDTH;
$wysokosc_image = PDF_MAX_IMAGE_HEIGHT;
$obraz_naglowka = ' ;;';
if (PDF_SHOW_LOGO == 'true') {
if (file_exists(LOGO_FILE)) {
if (PDF_IMAGE_KEEP_PROPORTIONS == 'true') {
$image_size = getimagesize(LOGO_FILE);
$width = $image_size[0];
$height = $image_size[1];
$wspolczynnik = $szerokosc_image / $width;
$wysokosc_image = $height * $wpolczynnik;
}
$obraz_naglowka = '<img src="' . LOGO_FILE . '" width="' . $szerokosc_image . 'px" height="' . $wysokosc_image . 'px" alt="NO-IMAGE">';
}
}
$adres = $order_two->billing;
$platnik = $order_two->info;
$html = '<html><head><meta http-equiv="Content-Type" content="text/html;">
</head><body>
<table width="100%" border="0" cellspacing="0" cellpadding="2" style="background-color:#d7d7d7">
<tr>
<td colspan="2" align="left" style="background-color:#ffffff">' . $obraz_naglowka . '</td>
</tr>
<tr>
<td align="left" width="60%" class="tytulfaktury">FAKTURA ' . $nr_faktury['nr_faktury'] . '</td>
<td align="right" width="40%" class="mniejszytekst">' . MIASTO . ', Data wystawienia: ' . $nr_faktury['data'] . '</td>
</tr>
<tr>
<td align="left" width="60%" class="oryginal">PRO-FORMA</td>
<td align="right" width="40%" class="mniejszytekst">Data sprzedaży: ' . $nr_faktury['data'] . '</td>
</tr>
</table>
<table width="100%" cellspacing="0" cellpadding="2">
<tr>
<td align="left" width="10%" valign="top" class="wiekszytext">Sprzedawca</td>
<td align="left" width="70%" valign="top" class="wiekszytextbold">
' . FIRMA . '<br>' . ULICA . '<br>' . KOD_POCZTOWY . ' ' . MIASTO . '</td>
<td align="right" width="20%" valign="top" class="wiekszytext">NIP: ' . NIP_FIRMA . '</td>
</tr>
<tr>
<td align="left" width="10%" valign="top" class="wiekszytext">Nabywca</td>
<td align="left" width="70%" valign="top" class="wiekszytextbold">';
if (tep_not_null($adres['company'])) {
$html .= $adres['company'];
} else {
$html .= $adres['name'];
}
$html .= '<br>' . $adres['street_address'] . '<br>' . $adres['postcode'] . ' ' . $adres['city'] . '</td>
<td align="right" width="20%" valign="top" class="wiekszytext">' . (tep_not_null($adres['nip']) ? 'NIP: ' . $adres['nip'] : '') . '</td>
</tr>
<tr>
<td align="left" width="10%" valign="top" class="wiekszytext">Płatność</td>
<td align="left" width="90%" colspan="2" class="mniejszytekst">' . $platnik['payment_method'];
if ((int) PAYMENT_PERIOD > 0) {
$end_day = 60 * 60 * 24 * intval(PAYMENT_PERIOD);
$arrayd = explode('.', strftime('%d.%m.%Y'));
$html .= ' (termin płatności: ' . date('d.m.Y', $end_day + mktime(0, 0, 0, $arrayd[1], $arrayd[0], $arrayd[2])) . ')';
}
$html .= '</td>
</tr>';
if (BANK_NAZWA != '' && NR_RACHUNEK != '') {
$html .= '<tr>
<td align="left" width="10%" valign="top" class="wiekszytext">Konto bankowe</td>
<td align="left" width="90%" colspan="2" class="mniejszytekst">' . BANK_NAZWA . ' ' . NR_RACHUNEK . '</td>
</tr>';
}
$html .= '</table>
<table width="100%" cellspacing="0" cellpadding="2">
<tr>
<td align="center" width="5%" class="table1">L.p.</td>
<td align="center" width="35%" class="table2">Nazwa towaru/usługi</td>
<td align="center" width="7%" class="table2">PKWiU</td>
<td align="center" width="5%" class="table2">jm.</td>
<td align="center" width="5%" class="table2">Ilość</td>
<td align="center" width="10%" class="table2">' . (PRZELICZ_ZAMOWIENIE_BRUTTO == 'true' ? 'Cena jedn. brutto' : 'Cena jedn. netto') . '</td>
<td align="center" width="10%" class="table2">Wartość netto</td>
<td align="center" width="3%" class="table3"> ;;</td>
<td align="left" width="10%" class="table2">VAT</td>
<td align="center" width="10%" class="table2">Wartość brutto</td>
</tr>
<tr>
<td align="center" width="5%" class="table4"> ;;</td>
<td align="center" width="35%" class="table5"> ;;</td>
<td align="center" width="7%" class="table5"> ;;</td>
<td align="center" width="5%" class="table5"> ;;</td>
<td align="center" width="5%" class="table5"> ;;</td>
<td align="center" width="10%" class="table5"> ;;</td>
<td align="center" width="10%" class="table5"> ;;</td>
<td align="center" width="3%" class="table6">%</td>
<td align="center" width="10%" class="table6">wartość</td>
<td align="center" width="10%" class="table5"> ;;</td>
</tr>';
$razem_netto = 0;
$razem_podatek = 0;
$razem_brutto = 0;
$total22 = '';
$vat22 = '';
$suma22 = '';
$total7 = '';
$vat7 = '';
$suma7 = '';
$total3 = '';
$vat3 = '';
$suma3 = '';
$total0 = '';
$vat0 = '';
$suma0 = '';
$licznik = 0;
for ($i = 0, $n = sizeof($order_two->products); $i < $n; $i++) {
$ilosc_produktow = $order->products[$i]['qty'];
$stawka_vat = (int) $order->products[$i]['tax'];
if (PRZELICZ_ZAMOWIENIE_BRUTTO == 'true') {
$cena_jednostkowa_brutto = $currencies->calculate_price($order->products[$i]['final_price'], $order->products[$i]['tax'], '1', $order->info['currency'], $order->info['currency_value']);
$wartosc_brutto = $currencies->calculate_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty'], $order->info['currency'], $order->info['currency_value']);
$wartosc_vat = ($wartosc_brutto * $order->products[$i]['tax']) / (100 + $order->products[$i]['tax']);
$wartosc_netto = $wartosc_brutto - $wartosc_vat;
} else {
$cena_jednostkowa_netto = $currencies->calculate_price($order->products[$i]['final_price'], '', '1', $order->info['currency'], $order->info['currency_value']);
$wartosc_netto = $cena_jednostkowa_netto * $order->products[$i]['qty'];
$wartosc_vat = $wartosc_netto * ($order->products[$i]['tax'] / 100);
$wartosc_brutto = $wartosc_netto + $wartosc_vat;
}
$price_for_all = $wartosc_brutto;
$html .= '<tr>';
$html .= '<td align="center" valign="top" width="5%" class="table7">' . ($i + 1) . '</td>';
$prod_attribs = '';
if (FAKTURA_CECHY == 'true') {
$prod_attribs = '';
$prod_text = '';
$atrybuty = 'false';
if ((isset($order_two->products[$i]['attributes'])) && (sizeof($order_two->products[$i]['attributes']) > 0)) {
for ($j = 0, $n2 = sizeof($order_two->products[$i]['attributes']); $j < $n2; $j++) {
$atrybut = $order_two->products[$i]['attributes'][$j]['option'] . ': ' . $order_two->products[$i]['attributes'][$j]['value'];
if (strlen($atrybut) > 50) {
$atrybut = osc_trunc_string($atrybut, 50, 1);
}
$prod_attribs .= "<\x62\162>" . " - " . $atrybut;
}
$attr_q = tep_db_query("select ota.*, pta.products_text_attributes_name from orders_text_attributes as ota, products_text_attributes as pta where ota.orders_id = " . ( integer ) $oID . " and ota.products_id = " . $order_two->products[$i]['orders_products_id'] . " and pta.products_text_attributes_id = ota.products_text_attributes_id");
while ($attr = tep_db_fetch_array($attr_q)) {
$prod_text .= '<br> - ' . $attr['products_text_attributes_name'] . ': ' . stripslashes($attr['products_text_attributes_text']);
}
$prod_attribs .= $prod_text;
$atrybuty = 'true';
} else {
$attr_q = tep_db_query("select ota.*, pta.products_text_attributes_name from orders_text_attributes as ota, products_text_attributes as pta where ota.orders_id = " . ( integer ) $oID . " and ota.products_id = " . $order_two->products[$i]['orders_products_id'] . " and pta.products_text_attributes_id = ota.products_text_attributes_id");
while ($attr = tep_db_fetch_array($attr_q)) {
$prod_text .= '<br> - ' . $attr['products_text_attributes_name'] . ': ' . stripslashes($attr['products_text_attributes_text']);
}
$prod_attribs .= $prod_text;
$atrybuty = 'true';
}
if ($atrybuty == 'false') {
$prod_attribs = '';
}
}
if (FAKTURA_NR_KAT == 'true') {
$nr_katal = ((!empty($order_two->products[$i]['model'])) ? ' - ' . $order_two->products[$i]['model'] : '');
} else {
$nr_katal = '';
}
$html .= '<td align="left" valign="top" width="35%" class="table8">' . $order_two->products[$i]['name'] . $nr_katal . $prod_attribs . '</td>';
$html .= '<td align="center" valign="top" width="7%" class="table8">' . $order_two->products[$i]['pkwiu'] . '</td>';
$html .= '<td align="center" valign="top" width="5%" class="table8">szt.</td>';
$html .= '<td align="center" valign="top" width="5%" class="table8">' . $ilosc_produktow . '</td>';
if (PRZELICZ_ZAMOWIENIE_BRUTTO == 'true') {
$html .= '<td align="right" valign="top" width="10%" class="table8">' . invoiceNumberFormat($cena_jednostkowa_brutto) . '</td>';
} else {
$html .= '<td align="right" valign="top" width="10%" class="table8">' . invoiceNumberFormat($cena_jednostkowa_netto) . '</td>';
}
$html .= '<td align="right" valign="top" width="10%" class="table8">' . invoiceNumberFormat($wartosc_netto) . '</td>';
$html .= '<td align="center" valign="top" width="3%" class="table8">' . $stawka_vat . '</td>';
$html .= '<td align="right" valign="top" width="10%" class="table8">' . invoiceNumberFormat($wartosc_vat) . '</td> ';
$html .= '<td align="right" valign="top" width="10%" class="table8">' . invoiceNumberFormat($wartosc_brutto) . '</td>';
$html .= '</tr>';
$razem_netto = $razem_netto + $wartosc_netto;
$razem_podatek = $razem_podatek + $wartosc_vat;
$razem_brutto = $razem_brutto + $price_for_all;
if ($stawka_vat == 22 || $stawka_vat == 23) {
$total22 += $wartosc_netto;
$vat22 += $wartosc_vat;
$suma22 += $price_for_all;
} elseif ($stawka_vat == 7 || $stawka_vat == 8) {
$total7 += $wartosc_netto;
$vat7 += $wartosc_vat;
$suma7 += $price_for_all;
} elseif ($stawka_vat == 3 || $stawka_vat == 5) {
$total3 += $wartosc_netto;
$vat3 += $wartosc_vat;
$suma3 += $price_for_all;
} elseif ($stawka_vat == 0) {
$total0 += $wartosc_netto;
$vat0 += $wartosc_vat;
$suma0 += $price_for_all;
}
$licznik = $i + 1;
}
$totals_query = tep_db_query("SELECT title, value, class\r\n FROM " . TABLE_ORDERS_TOTAL . "\r\n WHERE orders_id = '" . ( integer ) $oID . "'");
while ($przesylka = tep_db_fetch_array($totals_query)) {
if (floatval($przesylka['value']) > 0) {
if ($przesylka['class'] == 'ot_shipping' || $przesylka['class'] == 'ot_giftwrap' || $przesylka['class'] == 'ot_pobranieml' || $przesylka['class'] == 'ot_payment_online') {
switch ($przesylka['class']) {
case 'ot_shipping':
$nazwa = 'Opłata za przesyłkę';
break;
case 'ot_giftwrap':
$nazwa = 'Opłata za opakowanie: ' . str_replace(':', '', $przesylka['title']);
break;
case 'ot_pobranieml':
$nazwa = 'Opłata za płatność przy odbiorze';
break;
case 'ot_payment_online':
$nazwa = 'Koszt obsługi płatności online';
break;
}
$pokazac = true;
if (($przesylka['class'] == 'ot_shipping' || $przesylka['class'] == 'ot_pobranieml')) {
if (DOSTAWA == 'true') {
$pokazac = true;
} else {
$pokazac = false;
}
}
if ($pokazac == true) {
$licznik++;
if ($stawki_vat == true) {
$przesylka_netto = floatval(number_format($przesylka['value'] / 1.23, 2, '.', ''));
} else {
$przesylka_netto = floatval(number_format($przesylka['value'] / 1.22, 2, '.', ''));
}
$przesylka_brutto = floatval($przesylka['value']);
$przesylka_vat = $przesylka_brutto - $przesylka_netto;
$html .= '<tr>';
$html .= '<td align="center" valign="top" width="5%" class="table7">' . $licznik . '</td>';
$html .= '<td align="left" valign="top" width="35%" class="table8">' . $nazwa . '</td>';
$html .= '<td align="center" valign="top" width="7%" class="table8"> ;;</td>';
$html .= '<td align="center" valign="top" width="5%" class="table8">szt.</td>';
$html .= '<td align="center" valign="top" width="5%" class="table8">1</td>';
if (PRZELICZ_ZAMOWIENIE_BRUTTO == 'true') {
$html .= '<td align="right" valign="top" width="10%" class="table8">' . invoiceNumberFormat($przesylka_brutto) . '</td>';
} else {
$html .= '<td align="right" valign="top" width="10%" class="table8">' . invoiceNumberFormat($przesylka_netto) . '</td>';
}
$html .= '<td align="right" valign="top" width="10%" class="table8">' . invoiceNumberFormat($przesylka_netto) . '</td>';
$html .= '<td align="center" valign="top" width="3%" class="table8">' . (($stawki_vat == true) ? '23' : '22') . '</td>';
$html .= '<td align="right" valign="top" width="10%" class="table8">' . invoiceNumberFormat($przesylka_vat) . '</td> ';
$html .= '<td align="right" valign="top" width="10%" class="table8">' . invoiceNumberFormat($przesylka_brutto) . '</td>';
$html .= '</tr>';
$total22 += $przesylka_netto;
$vat22 += $przesylka_vat;
$suma22 += $przesylka_brutto;
$razem_netto = $razem_netto + $przesylka_netto;
$razem_podatek = $razem_podatek + $przesylka_vat;
$razem_brutto = $razem_brutto + $przesylka_brutto;
}
}
}
}
$html .= '<tr>';
$html .= '<td align="right" width="67%" colspan="6" class="table9">RAZEM</td>';
$html .= '<td align="right" width="10%" class="table10">' . invoiceNumberFormat($razem_netto) . '</td>';
$html .= '<td align="center" width="3%" class="table10">x</td>';
$html .= '<td align="right" width="10%" class="table10">' . invoiceNumberFormat($razem_podatek) . '</td> ';
$html .= '<td align="right" width="10%" class="table10">' . invoiceNumberFormat($razem_brutto) . '</td>';
$html .= '</tr>';
$html .= '<tr>';
$html .= '<td align="right" width="67%" colspan="6" class="table11">w tym</td>';
$html .= '<td align="right" width="10%" class="table12"> ;;</td>';
$html .= '<td align="center" width="3%" class="table12">zw</td>';
$html .= '<td align="right" width="10%" class="table12"> ;;</td> ';
$html .= '<td align="right" width="10%" class="table12"> ;;</td>';
$html .= '</tr>';
$html .= '<tr>';
$html .= '<td align="right" width="67%" colspan="6" class="table11"> ;;</td>';
$html .= '<td align="right" width="10%" class="table12">' . invoiceNumberFormat($total22) . '</td>';
$html .= '<td align="center" width="3%" class="table12">' . (($stawki_vat == true) ? '23' : '22') . '</td>';
$html .= '<td align="right" width="10%" class="table12">' . invoiceNumberFormat($vat22) . '</td> ';
$html .= '<td align="right" width="10%" class="table12">' . invoiceNumberFormat($suma22) . '</td>';
$html .= '</tr>';
$html .= '<tr>';
$html .= '<td align="right" width="67%" colspan="6" class="table11"> ;;</td>';
$html .= '<td align="right" width="10%" class="table12">' . invoiceNumberFormat($total7) . '</td>';
$html .= '<td align="center" width="3%" class="table12">' . (($stawki_vat == true) ? '8' : '7') . '</td>';
$html .= '<td align="right" width="10%" class="table12">' . invoiceNumberFormat($vat7) . '</td> ';
$html .= '<td align="right" width="10%" class="table12">' . invoiceNumberFormat($suma7) . '</td>';
$html .= '</tr>';
$html .= '<tr>';
$html .= '<td align="right" width="67%" colspan="6" class="table11"> ;;</td>';
$html .= '<td align="right" width="10%" class="table12">' . invoiceNumberFormat($total3) . '</td>';
$html .= '<td align="center" width="3%" class="table12">' . (($stawki_vat == true) ? '5' : '3') . '</td>';
$html .= '<td align="right" width="10%" class="table12">' . invoiceNumberFormat($vat3) . '</td> ';
$html .= '<td align="right" width="10%" class="table12">' . invoiceNumberFormat($suma3) . '</td>';
$html .= '</tr>';
$html .= '<tr>';
$html .= '<td align="right" width="67%" colspan="6" class="table11"> ;;</td>';
$html .= '<td align="right" width="10%" class="table12">' . invoiceNumberFormat($total0) . '</td>';
$html .= '<td align="center" width="3%" class="table12">0</td>';
$html .= '<td align="right" width="10%" class="table12">' . invoiceNumberFormat($vat0) . '</td> ';
$html .= '<td align="right" width="10%" class="table12">' . invoiceNumberFormat($suma0) . '</td>';
$html .= '</tr>';
$totals_query = tep_db_query("S\x45\114\105C\124 \x74\151t\154\x65, \166a\154ue, c\x6ca\x73s
\106\x52\x4f\x4d " . TABLE_ORDERS_TOTAL . "
\127\110\x45\x52\x45 o\x72\x64ers_\x69d = '" . (int) $oID . "'");
while ($rabat = tep_db_fetch_array($totals_query)) {
if ($rabat['class'] == 'ot_klub' || $rabat['class'] == 'ot_redemptions' || $rabat['class'] == 'ot_loyalty_discount' || $rabat['class'] == 'ot_discount_coupon' || $rabat['class'] == 'ot_payment' || $rabat['class'] == 'ot_upust') {
$licznik++;
if ($rabat['value'] < 0) {
$rabat_brutto = $rabat['value'];
} else {
$rabat_brutto = $rabat['value'] * -1;
}
if ($rabat['class'] == 'ot_discount_coupon') {
if (wb($rabat['value']) > 1) {
$rabat_brutto = $rabat_brutto;
}
}
$html .= '<tr>';
$html .= '<td align="right" width="67%" colspan="6" class="table14a">' . str_replace(':', '', $rabat['title']) . '</td>';
$html .= '<td align="right" width="33%" class="table14" colspan="4">' . invoiceNumberFormat($rabat_brutto) . '</td>';
$html .= '</tr>';
$razem_brutto = $razem_brutto + $rabat_brutto;
}
}
$html .= '<tr>';
$html .= '<td align="right" width="67%" colspan="6" class="table14a"><span class="dozaplaty">DO ZAPÃ…ATY</span></td>';
$html .= '<td align="right" width="33%" class="table15" colspan="4">' . invoiceNumberFormat($razem_brutto) . '</td>';
$html .= '</tr>';
$html .= '</table>';
$html .= '<span class="zaplata">Do zapłaty: ' . invoiceNumberFormat($razem_brutto) . ' zł<span><br>';
$html .= '<span class="zaplataslownie">SÅ‚ownie: ' . slownie(number_format($razem_brutto, 2, ',', '')) . '<span>';
$html .= '<br><br><br>
<table width="80%" align="center" border="0" cellspacing="0" cellpadding="2">
<tr>
<td class="ramka" width="40%"> ;;<br> ;;<br> ;;</td>
<td width="20%"> ;;</td>
<td class="ramka" width="40%"> ;;<br> ;;<br> ;;</td>
</tr>
<tr>
<td class="podpis" align="center" width="40%">osoba upoważniona do przyjmowania faktur VAT</td>
<td width="20%"> ;;</td>
<td class="podpis" align="center" width="40%">osoba upoważniona do wystawiania faktur VAT</td>
</tr>
</table>';
if (FAKTURA_NR_ZAM == 'true') {
$html .= '
<table width="100%" style="margin-left: auto; margin-right: auto;" border="0">
<tr>
<td align="left" class="oryginal"><u>UWAGI</u></td>
</tr>
<tr>
<td align="left" class="mniejszytekst">Zamówienie nr: ' . $oID . '</td>
</tr>
</table>';
}
$html .= '</body></html>';
define('_MPDF_PATH', 'mpdf/');
include("mpdf/mpdf.php");
if ($language == 'russian') {
$html = str_replace('Ä…', 'a', $html);
$html = str_replace('ć', 'c', $html);
$html = str_replace('Ä™', 'e', $html);
$html = str_replace('Å‚', 'l', $html);
$html = str_replace('Å„', 'n', $html);
$html = str_replace('ó', 'o', $html);
$html = str_replace('Å›', 's', $html);
$html = str_replace('ź', 'z', $html);
$html = str_replace('ż', 'z', $html);
$html = str_replace('Ä„', 'A', $html);
$html = str_replace('Äâ€', 'C', $html);
$html = str_replace('Ę', 'E', $html);
$html = str_replace('Ã…', 'L', $html);
$html = str_replace('Ã…Æ’', 'N', $html);
$html = str_replace('Ó', 'O', $html);
$html = str_replace('Ã…Å¡', 'S', $html);
$html = str_replace('Ź', 'Z', $html);
$html = str_replace('Å»', 'Z', $html);
$mpdf = new mPDF('win-1251', 'A4', '9', '', 5, 5, 5, 5, 5, 5);
} else {
$mpdf = new mPDF('iso-8859-2', 'A4', '9', '', 5, 5, 5, 5, 5, 5);
}
if (PDF_SHOW_WATERMARK == 'true') {
$mpdf->setUnvalidatedText(UPDF_ZNAK_NAZWA);
$mpdf->TopicIsUnvalidated = 1;
}
$mpdf->SetHTMLFooter('<div align="left" style="font-family: DejaVuSansCondensed, sans-serif, Tahoma, Arial;font-size: 6pt; color:#000000;">Wygenerowano w programie www.oscGold.com</div>');
$mpdf->AddPage();
$stylesheet = file_get_contents('mpdf/css/pdffaktura.css');
$mpdf->WriteHTML($stylesheet, 1);
$mpdf->WriteHTML($html, 2);
$nr_zamow = (int) $oID;
$nr_klienta = (int) $customer_id;
$oblicz_id = ($nr_zamow + 489) + (($nr_klienta * 3) + 511) + tep_date_unix($order_two->info['date_purchased']);
$mpdf->Output('administracja/' . POLISH_INVOICE_PDF_ARCHIVE . 'faktura_zam_' . $oblicz_id . '_proforma.pdf', 'F');
$file_name = 'administracja/' . POLISH_INVOICE_PDF_ARCHIVE . 'faktura_zam_' . $oblicz_id . '_proforma.pdf';
$file_mail_name = 'faktura proforma_' . str_replace('/', '_', $nr_faktury['nr_faktury']) . '.pdf';
?>
|
ZeroBytes |
|
_________________ Decoded by ASD @ Lost-codes.co.uk |
|
|
|
|
www.waraxe.us Forum Index -> PHP script decode requests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|
|