100+ results results for 'php date' (1269 ms)
139 140print '<form action="'.$_SERVER["PHP_SELF"].'" method="post">'; 141 167print $HTML->box_nextitem(utils_get_alt_row_color($i)); 168print '<a href="editsshkeys.php">'; 169if ($keynum > 0) 209print sprintf(_("Account #%s"), $row_user['user_id']); 210print '<p class="smaller">'.sprintf(_("Your login is %s."), '<strong>'.$row_user['user_name'].'</strong>').' '.sprintf(_("You registered your account on %s."), '<strong>'.utils_format_date($row_user['add_date']).'</strong>').'</p>'; 211 255 256print '<span class="clearr" /><p class="center"><input type="submit" name="update" value="'._("Update").'" /></p></span>'; 257print "<br />\n"; 357 358print '<span class="clearr" /><p class="center"><input type="submit" name="update" value="'._("Update").'" /></p></span>'; 359UnitCheckProject.html git://git.savannah.nongnu.org/unitcheck.git | HTML | 447 lines
32 <p class="notes"> 33 Located in <a class="field" href="_UnitCheckProject.php.html">/UnitCheckProject.php</a> (line <span class="field">32</span>) 34 </p> 81 <span class="method-result">void</span> 82 <a href="#getProjectCreationDate" title="details" class="method-name">getProjectCreationDate</a> 83 () 101 <span class="method-result">void</span> 102 <a href="#getProjectModDate" title="details" class="method-name">getProjectModDate</a> 103 () 261 </div> 262<a name="methodgetProjectCreationDate" id="getProjectCreationDate"><!-- --></a> 263<div class="oddrow"> 443 <p class="notes" id="credit"> 444 Documentation generated on Tue, 18 Jan 2011 17:56:51 +1100 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a> 445 </p>AdvancedServerDatabaseConfig.cs https://openHistorian.svn.codeplex.com/svn | C# | 388 lines
10// 11// http://www.opensource.org/licenses/eclipse-1.0.php 12// 21// 11/25/2014 - J. Ritchie Carroll 22// Updated final staging file name to use database name as prefix instead of "stage(n)". 23// 293 294 ValidateExtension(IntermediateFileExtension, out intermediateFilePendingExtension, out intermediateFileFinalExtension); 295 ValidateExtension(FinalFileExtension, out finalFilePendingExtension, out finalFileFinalExtension); 358 359 ValidateExtension(IntermediateFileExtension, out intermediateFilePendingExtension, out intermediateFileFinalExtension); 360 ValidateExtension(FinalFileExtension, out finalFilePendingExtension, out finalFileFinalExtension); 371 372 private static void ValidateExtension(string extension, out string pending, out string final) 373 {SdwApi.java https://jonathan.svn.codeplex.com/svn | Java | 359 lines
31 * User: Jonathan Montiverdi 32 * Date: Sep 19, 2013 33 * 50 this.m_Client = Client.create (config); 51 this.m_Service = this.m_Client.resource (UriBuilder.fromUri ("http://seekdeepwithin.com/code/api.php").build ()); 52 } 202 book.setInfo (json.getString ("info")); 203 book.setDate (json.getString ("date")); 204 book.setSubTitle (json.optString ("subtitle"));AltBinaryRandomAccessList.fs git://github.com/dmohl/fsharpx.git | F# | 371 lines
59 60 member this.Update i y = AltBinRndAccList.fupdate ((fun x -> y), i, this) :> _ 61 184 | f, 0, One(x, ps) -> One(f x, ps) 185 | f, i, One (x, ps) -> AltBinRndAccList.cons x (AltBinRndAccList.fupdate (f, i-1, Zero ps)) 186 | f, i, Zero ps -> 193 | f, i, One (x, ps) -> 194 match (AltBinRndAccList.ftryUpdate (f, i-1, Zero ps)) with 195 | None -> None 291 292 member this.Update i y = AltBinRndAccList.fupdate ((fun x -> y), i, this) 293 367 ///returns random access list with element updated by index 368 let inline update i y (xs: AltBinRndAccList<'a>) = xs.Update i y 369 370 ///returns option random access list with element updated by index 371 let inline tryUpdate i y (xs: AltBinRndAccList<'a>) = xs.TryUpdate i yDateType.php https://bitbucket.org/tippycracker/autokraitis.git | PHP | 370 lines
83 $timeFormat, 84 // see https://bugs.php.net/bug.php?id=66323 85 class_exists('IntlTimeZone', false) ? \IntlTimeZone::createDefault() : null, 89 90 // new \IntlDateFormatter may return null instead of false in case of failure, see https://bugs.php.net/bug.php?id=66323 91 if (!$formatter) { 237 $format = function (Options $options) { 238 return 'single_text' === $options['widget'] ? DateType::HTML5_FORMAT : DateType::DEFAULT_FORMAT; 239 }; 241 $resolver->setDefaults(array( 242 'years' => range(date('Y') - 5, date('Y') + 5), 243 'months' => range(1, 12), 257 // If initialized with a \DateTime object, FormType initializes 258 // this option to "\DateTime". Since the internal, normalized 259 // representation is not \DateTime, but an array, we need to unsetbuild_class_from_table.php git://github.com/Dolibarr/dolibarr.git | PHP | 464 lines
30if (substr($sapi_type, 0, 3) == 'cgi') { 31 echo "Error: You are using PHP for CGI. To execute ".$script_file." from command line, you must use PHP for CLI mode.\n"; 32 exit; 168// Substitute class name 169$targetcontent=preg_replace('/skeleton_class\.class\.php/', $classmin.'.class.php', $targetcontent); 170$targetcontent=preg_replace('/\$element=\'skeleton\'/', '\$element=\''.$classmin.'\'', $targetcontent); 291 { 292 // (dol_strlen($this->datep)!=0 ? "'".$this->db->idate($this->datep)."'" : 'null') 293 $varprop.='".(dol_strlen($this->'.$prop['field'].')!=0 ? "\'".$this->db->idate('; 387$targetcontent=preg_replace('/skeleton_class\.class\.php/', $classmin.'.class.php', $targetcontent); 388$targetcontent=preg_replace('/skeleton_script\.php/', $classmin.'_script.php', $targetcontent); 389$targetcontent=preg_replace('/\$element=\'skeleton\'/', '\$element=\''.$classmin.'\'', $targetcontent); 433$targetcontent=preg_replace('/skeleton_class\.class\.php/', $classmin.'.class.php', $targetcontent); 434$targetcontent=preg_replace('/skeleton_script\.php/', $classmin.'_script.php', $targetcontent); 435$targetcontent=preg_replace('/\$element=\'skeleton\'/', '\$element=\''.$classmin.'\'', $targetcontent);index.php http://pixie-cms.googlecode.com/svn/trunk/ | PHP | 548 lines
43/* Check for config */ 44if ((!file_exists('admin/config.php')) or (filesize('admin/config.php') < 10)) { 45 /* redirect to installer */ 81extract($prefs); 82/* Timezone fix (php 5.1.0 or newer will set it's server timezone using function date_default_timezone_set!) */ 83define('TZ', "$timezone"); 88 } 89 /* New! Built in php function. Tell php what the server timezone is so that we can use php 5's rewritten time and date functions with the correct time and without error messages */ 90 date_default_timezone_set("$server_timezone"); 95/* Import the validate library */ 96include_once 'admin/lib/lib_validate.php'; 97/* Import the date library */ 110if (strnatcmp(phpversion(), '5.0.0') >= 0) { 111 /* Load the php5 version of simplepie if you are running php5 */ 112 include_once 'admin/lib/lib_simplepie_php5.php';board.controller.php http://xe-board.googlecode.com/svn/trunk/ | PHP | 354 lines
1<?php 2 /** 65 66 // update the document if it is existed 67 if($oDocument->isExists() && $oDocument->document_srl == $obj->document_srl) { 76 77 $output = $oDocumentController->updateDocument($oDocument, $obj); 78 $msg_code = 'success_updated'; 144 $document_srl = Context::get('document_srl'); 145 return $oDocumentController->updateVotedCount($document_srl); 146 } 226 227 // update the comment if it is not existed 228 } else { 232 $obj->parent_srl = $comment->parent_srl; 233 $output = $oCommentController->updateComment($obj, $this->grant->manager); 234 $comment_srl = $obj->comment_srl;jquery.validate.min.js http://flumpshop.googlecode.com/svn/trunk/ | JavaScript | 15 lines
8 * 9 * $Id: jquery.validate.js 6403 2009-06-17 14:27:16Z joern.zaefferer $ 10 * 11 * Dual licensed under the MIT and GPL licenses: 12 * http://www.opensource.org/licenses/mit-license.php 13 * http://www.gnu.org/licenses/gpl.html 14 */ 15eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(7($){$.H($.2L,{17:7(d){l(!6.F){d&&d.2q&&2T.1z&&1z.52("3y 3p, 4L\'t 17, 64 3y");8}p c=$.19(6[0],\'v\');l(c){8 c}c=2w $.v(d,6[0]);$.19(6[0],\'v\',c);l(c.q.3x){6.3s("1w, 3i").1o(".4E").3e(7(){c.3b=w});l(c.q.35){6.3s("1w, 3i").1o(":2s").3e(7(){c.1Z=6})}6.2s(7(b){l(c.q.2q)b.5J();7 1T(){l(c.q.35){l(c.1Z){p a=$("<1w 1V=\'5r\'/>").1s("u",c.1Z.u).33(c.1Z.Z).51(c.U)}c.q.35.V(c,c.U);l(c.1Z){a.3D()}8 N}8 w}l(c.3b){c.3b=N;8 1T()}l(c.L()){l(c.1b){c.1l=w;8 N}8 1T()}12{c.2l();8 N}})}8 c},J:7(){l($(6[0]).2W(\'L\')){8 6.17().L()}12{p b=w;p a=$(6[0].L).17();6.P(7(){b&=a.I(6)});8 b}},4D:7(c){p d={},$I=6;$.P(c.1I(/\\s/),7(a,b){d[b]=$I.1s(b);$I.6d(b)});8 d},1i:7(h,k){p f=6[0];l(h){p i=$.19(f.L,\'v\').q;p d=i.1i;p c=$.v.36(f);23(h){1e"1d":$.H(c,$.v.1X(k));d[f.u]=c;l(k.G)i.G[f.u]=$.H(i.G[f.u],k.G);31;1e"3D":l(!k){T d[f.u];8 c}p e={};$.P(k.1I(/\\s/),7(a,b){e[b]=c[b];T c[b]});8 e}}p g=$.v.41($.H({},$.v.3Y(f),$.v.3V(f),$.v.3T(f),$.v.36(f)),f);l(g.15){p j=g.15;T g.15;g=$.H({15:j},g)}8 g}});$.H($.5p[":"],{5n:7(a){8!$.1p(""+a.Z)},5g:7(a){8!!$.1p(""+a.Z)},5f:7(a){8!a.4h}});$.v=7(b,a){6.q=$.H(w,{},$.v.3d,b);6.U=a;6.3I()};$.v.W=7(c,b){l(R.F==1)8 7(){p a=$.3F(R);a.4V(c);8 $.v.W.1Q(6,a)};l(R.F>2&&b.2c!=3B){b=$.3F(R).4Q(1)}l(b.2c!=3B){b=[b]}$.P(b,7(i,n){c=c.1u(2w 3t("\\\\{"+i+"\\\\}","g"),n)});8 c};$.H($.v,{3d:{G:{},2a:{},1i:{},1c:"3r",28:"J",2F:"4P",2l:w,3o:$([]),2D:$([]),3x:w,3l:[],3k:N,4O:7(a){6.3U=a;l(6.q.4K&&!6.4J){6.q.1K&&6.q.1K.V(6,a,6.q.1c,6.q.28);6.1M(a).2A()}},4C:7(a){l(!6.1E(a)&&(a.u 11 6.1a||!6.K(a))){6.I(a)}},6c:7(a){l(a.u 11 6.1a||a==6.4A){6.I(a)}},68:7(a){l(a.u 11 6.1a)6.I(a);12 l(a.4x.u 11 6.1a)6.I(a.4x)},39:7(a,c,b){$(a).22(c).2v(b)},1K:7(a,c,b){$(a).2v(c).22(b)}},63:7(a){$.H($.v.3d,a)},G:{15:"61 4r 2W 15.",1q:"M 2O 6 4r.",1J:"M O a J 1J 5X.",1B:"M O a J 5W.",1A:"M O a J 1A.",2j:"M O a J 1A (5Q).",1G:"M O a J 1G.",1P:"M O 5O 1P.",2f:"M O a J 5L 5I 1G.",2o:"M O 47 5F Z 5B.",43:"M O a Z 5z a J 5x.",18:$.v.W("M O 3K 5v 2X {0} 2V."),1y:$.v.W("M O 5t 5s {0} 2V."),2i:$.v.W("M O a Z 3W {0} 3O {1} 2V 5o."),2r:$.v.W("M O a Z 3W {0} 3O {1}."),1C:$.v.W("M O a Z 5j 2X 46 3M 3L {0}."),1t:$.v.W("M O a Z 5d 2X 46 3M 3L {0}.")},3J:N,5a:{3I:7(){6.24=$(6.q.2D);6.4t=6.24.F&&6.24||$(6.U);6.2x=$(6.q.3o).1d(6.q.2D);6.1a={};6.54={};6.1b=0;6.1h={};6.1f={};6.21();p f=(6.2a={});$.P(6.q.2a,7(d,c){$.P(c.1I(/\\s/),7(a,b){f[b]=d})});p e=6.q.1i;$.P(e,7(b,a){e[b]=$.v.1X(a)});7 2N(a){p b=$.19(6[0].L,"v"),3c="4W"+a.1V.1u(/^17/,"");b.q[3c]&&b.q[3c].V(b,6[0])}$(6.U).2K(":3E, :4U, :4T, 2e, 4S","2d 2J 4R",2N).2K(":3C, :3A, 2e, 3z","3e",2N);l(6.q.3w)$(6.U).2I("1f-L.17",6.q.3w)},L:7(){6.3v();$.H(6.1a,6.1v);6.1f=$.H({},6.1v);l(!6.J())$(6.U).3u("1f-L",[6]);6.1m();8 6.J()},3v:7(){6.2H();Q(p i=0,14=(6.2b=6.14());14[i];i++){6.29(14[i])}8 6.J()},I:7(a){a=6.2G(a);6.4A=a;6.2P(a);6.2b=$(a);p b=6.29(a);l(b){T 6.1f[a.u]}12{6.1f[a.u]=w}l(!6.3q()){6.13=6.13.1d(6.2x)}6.1m();8 b},1m:7(b){l(b){$.H(6.1v,b);6.S=[];Q(p c 11 b){6.S.27({1j:b[c],I:6.26(c)[0]})}6.1n=$.3n(6.1n,7(a){8!(a.u 11 b)})}6.q.1m?6.q.1m.V(6,6.1v,6.S):6.3m()},2S:7(){l($.2L.2S)$(6.U).2S();6.1a={};6.2H();6.2Q();6.14().2v(6.q.1c)},3q:7(){8 6.2k(6.1f)},2k:7(a){p b=0;Q(p i 11 a)b++;8 b},2Q:7(){6.2C(6.13).2A()},J:7(){8 6.3j()==0},3j:7(){8 6.S.F},2l:7(){l(6.q.2l){3Q{$(6.3h()||6.S.F&&6.S[0].I||[]).1o(":4N").3g().4M("2d")}3f(e){}}},3h:7(){p a=6.3U;8 a&&$.3n(6.S,7(n){8 n.I.u==a.u}).F==1&&a},14:7(){p a=6,2B={};8 $([]).1d(6.U.14).1o(":1w").1L(":2s, :21, :4I, [4H]").1L(6.q.3l).1o(7(){!6.u&&a.q.2q&&2T.1z&&1z.3r("%o 4G 3K u 4F",6);l(6.u 11 2B||!a.2k($(6).1i()))8 N;2B[6.u]=w;8 w})},2G:7(a){8 $(a)[0]},2z:7(){8 $(6.q.2F+"."+6.q.1c,6.4t)},21:7(){6.1n=[];6.S=[];6.1v={};6.1k=$([]);6.13=$([]);6.2b=$([])},2H:7(){6.21();6.13=6.2z().1d(6.2x)},2P:7(a){6.21();6.13=6.1M(a)},29:7(d){d=6.2G(d);l(6.1E(d)){d=6.26(d.u)[0]}p a=$(d).1i();p c=N;Q(Y 11 a){p b={Y:Y,2n:a[Y]};3Q{p f=$.v.1N[Y].V(6,d.Z.1u(/\\r/g,""),d,b.2n);l(f=="1S-1Y"){c=w;6g}c=N;l(f=="1h"){6.13=6.13.1L(6.1M(d));8}l(!f){6.4B(d,b);8 N}}3f(e){6.q.2q&&2T.1z&&1z.6f("6e 6b 6a 69 I "+d.4z+", 29 47 \'"+b.Y+"\' Y",e);67 e;}}l(c)8;l(6.2k(a))6.1n.27(d);8 w},4y:7(a,b){l(!$.1H)8;p c=6.q.3a?$(a).1H()[6.q.3a]:$(a).1H();8 c&&c.G&&c.G[b]},4w:7(a,b){p m=6.q.G[a];8 m&&(m.2c==4v?m:m[b])},4u:7(){Q(p i=0;i<R.F;i++){l(R[i]!==20)8 R[i]}8 20},2u:7(a,b){8 6.4u(6.4w(a.u,b),6.4y(a,b),!6.q.3k&&a.62||20,$.v.G[b],"<4s>60: 5Z 1j 5Y Q "+a.u+"</4s>")},4B:7(b,a){p c=6.2u(b,a.Y),37=/\\$?\\{(\\d+)\\}/g;l(1g c=="7"){c=c.V(6,a.2n,b)}12 l(37.16(c)){c=1F.W(c.1u(37,\'{$1}\'),a.2n)}6.S.27({1j:c,I:b});6.1v[b.u]=c;6.1a[b.u]=c},2C:7(a){l(6.q.2t)a=a.1d(a.4q(6.q.2t));8 a},3m:7(){Q(p i=0;6.S[i];i++){p a=6.S[i];6.q.39&&6.q.39.V(6,a.I,6.q.1c,6.q.28);6.2E(a.I,a.1j)}l(6.S.F){6.1k=6.1k.1d(6.2x)}l(6.q.1x){Q(p i=0;6.1n[i];i++){6.2E(6.1n[i])}}l(6.q.1K){Q(p i=0,14=6.4p();14[i];i++){6.q.1K.V(6,14[i],6.q.1c,6.q.28)}}6.13=6.13.1L(6.1k);6.2Q();6.2C(6.1k).4o()},4p:7(){8 6.2b.1L(6.4n())},4n:7(){8 $(6.S).4m(7(){8 6.I})},2E:7(a,c){p b=6.1M(a);l(b.F){b.2v().22(6.q.1c);b.1s("4l")&&b.4k(c)}12{b=$("<"+6.q.2F+"/>").1s({"Q":6.34(a),4l:w}).22(6.q.1c).4k(c||"");l(6.q.2t){b=b.2A().4o().5V("<"+6.q.2t+"/>").4q()}l(!6.24.5S(b).F)6.q.4j?6.q.4j(b,$(a)):b.5R(a)}l(!c&&6.q.1x){b.3E("");1g 6.q.1x=="1D"?b.22(6.q.1x):6.q.1x(b)}6.1k=6.1k.1d(b)},1M:7(a){p b=6.34(a);8 6.2z().1o(7(){8 $(6).1s(\'Q\')==b})},34:7(a){8 6.2a[a.u]||(6.1E(a)?a.u:a.4z||a.u)},1E:7(a){8/3C|3A/i.16(a.1V)},26:7(d){p c=6.U;8 $(4i.5P(d)).4m(7(a,b){8 b.L==c&&b.u==d&&b||4g})},1O:7(a,b){23(b.4f.4e()){1e\'2e\':8 $("3z:3p",b).F;1e\'1w\':l(6.1E(b))8 6.26(b.u).1o(\':4h\').F}8 a.F},4d:7(b,a){8 6.32[1g b]?6.32[1g b](b,a):w},32:{"5N":7(b,a){8 b},"1D":7(b,a){8!!$(b,a.L).F},"7":7(b,a){8 b(a)}},K:7(a){8!$.v.1N.15.V(6,$.1p(a.Z),a)&&"1S-1Y"},4c:7(a){l(!6.1h[a.u]){6.1b++;6.1h[a.u]=w}},4b:7(a,b){6.1b--;l(6.1b<0)6.1b=0;T 6.1h[a.u];l(b&&6.1b==0&&6.1l&&6.L()){$(6.U).2s();6.1l=N}12 l(!b&&6.1b==0&&6.1l){$(6.U).3u("1f-L",[6]);6.1l=N}},2h:7(a){8 $.19(a,"2h")||$.19(a,"2h",{2M:4g,J:w,1j:6.2u(a,"1q")})}},1R:{15:{15:w},1J:{1J:w},1B:{1B:w},1A:{1A:w},2j:{2j:w},4a:{4a:w},1G:{1G:w},49:{49:w},1P:{1P:w},2f:{2f:w}},48:7(a,b){a.2c==4v?6.1R[a]=b:$.H(6.1R,a)},3V:7(b){p a={};p c=$(b).1s(\'5H\');c&&$.P(c.1I(\' \'),7(){l(6 11 $.v.1R){$.H(a,$.v.1R[6])}});8 a},3T:7(c){p a={};p d=$(c);Q(Y 11 $.v.1N){p b=d.1s(Y);l(b){a[Y]=b}}l(a.18&&/-1|5G|5C/.16(a.18)){T a.18}8 a},3Y:7(a){l(!$.1H)8{};p b=$.19(a.L,\'v\').q.3a;8 b?$(a).1H()[b]:$(a).1H()},36:7(b){p a={};p c=$.19(b.L,\'v\');l(c.q.1i){a=$.v.1X(c.q.1i[b.u])||{}}8 a},41:7(d,e){$.P(d,7(c,b){l(b===N){T d[c];8}l(b.2R||b.2p){p a=w;23(1g b.2p){1e"1D":a=!!$(b.2p,e.L).F;31;1e"7":a=b.2p.V(e,e);31}l(a){d[c]=b.2R!==20?b.2R:w}12{T d[c]}}});$.P(d,7(a,b){d[a]=$.44(b)?b(e):b});$.P([\'1y\',\'18\',\'1t\',\'1C\'],7(){l(d[6]){d[6]=2Z(d[6])}});$.P([\'2i\',\'2r\'],7(){l(d[6]){d[6]=[2Z(d[6][0]),2Z(d[6][1])]}});l($.v.3J){l(d.1t&&d.1C){d.2r=[d.1t,d.1C];T d.1t;T d.1C}l(d.1y&&d.18){d.2i=[d.1y,d.18];T d.1y;T d.18}}l(d.G){T d.G}8 d},1X:7(a){l(1g a=="1D"){p b={};$.P(a.1I(/\\s/),7(){b[6]=w});a=b}8 a},5A:7(c,a,b){$.v.1N[c]=a;$.v.G[c]=b!=20?b:$.v.G[c];l(a.F<3){$.v.48(c,$.v.1X(c))}},1N:{15:7(c,d,a){l(!6.4d(a,d))8"1S-1Y";23(d.4f.4e()){1e\'2e\':p b=$(d).33();8 b&&b.F>0;1e\'1w\':l(6.1E(d))8 6.1O(c,d)>0;5y:8 $.1p(c).F>0}},1q:7(f,h,j){l(6.K(h))8"1S-1Y";p g=6.2h(h);l(!6.q.G[h.u])6.q.G[h.u]={};g.40=6.q.G[h.u].1q;6.q.G[h.u].1q=g.1j;j=1g j=="1D"&&{1B:j}||j;l(g.2M!==f){g.2M=f;p k=6;6.4c(h);p i={};i[h.u]=f;$.2U($.H(w,{1B:j,3Z:"2Y",3X:"17"+h.u,5w:"5u",19:i,1x:7(d){k.q.G[h.u].1q=g.40;p b=d===w;l(b){p e=k.1l;k.2P(h);k.1l=e;k.1n.27(h);k.1m()}12{p a={};p c=(g.1j=d||k.2u(h,"1q"));a[h.u]=$.44(c)?c(f):c;k.1m(a)}g.J=b;k.4b(h,b)}},j));8"1h"}12 l(6.1h[h.u]){8"1h"}8 g.J},1y:7(b,c,a){8 6.K(c)||6.1O($.1p(b),c)>=a},18:7(b,c,a){8 6.K(c)||6.1O($.1p(b),c)<=a},2i:7(b,d,a){p c=6.1O($.1p(b),d);8 6.K(d)||(c>=a[0]&&c<=a[1])},1t:7(b,c,a){8 6.K(c)||b>=a},1C:7(b,c,a){8 6.K(c)||b<=a},2r:7(b,c,a){8 6.K(c)||(b>=a[0]&&b<=a[1])},1J:7(a,b){8 6.K(b)||/^((([a-z]|\\d|[!#\\$%&\'\\*\\+\\-\\/=\\?\\^X`{\\|}~]|[\\E-\\B\\C-\\x\\A-\\y])+(\\.([a-z]|\\d|[!#\\$%&\'\\*\\+\\-\\/=\\?\\^X`{\\|}~]|[\\E-\\B\\C-\\x\\A-\\y])+)*)|((\\3S)((((\\2m|\\1W)*(\\30\\3R))?(\\2m|\\1W)+)?(([\\3P-\\5q\\45\\42\\5D-\\5E\\3N]|\\5m|[\\5l-\\5k]|[\\5i-\\5K]|[\\E-\\B\\C-\\x\\A-\\y])|(\\\\([\\3P-\\1W\\45\\42\\30-\\3N]|[\\E-\\B\\C-\\x\\A-\\y]))))*(((\\2m|\\1W)*(\\30\\3R))?(\\2m|\\1W)+)?(\\3S)))@((([a-z]|\\d|[\\E-\\B\\C-\\x\\A-\\y])|(([a-z]|\\d|[\\E-\\B\\C-\\x\\A-\\y])([a-z]|\\d|-|\\.|X|~|[\\E-\\B\\C-\\x\\A-\\y])*([a-z]|\\d|[\\E-\\B\\C-\\x\\A-\\y])))\\.)+(([a-z]|[\\E-\\B\\C-\\x\\A-\\y])|(([a-z]|[\\E-\\B\\C-\\x\\A-\\y])([a-z]|\\d|-|\\.|X|~|[\\E-\\B\\C-\\x\\A-\\y])*([a-z]|[\\E-\\B\\C-\\x\\A-\\y])))\\.?$/i.16(a)},1B:7(a,b){8 6.K(b)||/^(5h?|5M):\\/\\/(((([a-z]|\\d|-|\\.|X|~|[\\E-\\B\\C-\\x\\A-\\y])|(%[\\1U-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:)*@)?(((\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5])\\.(\\d|[1-9]\\d|1\\d\\d|2[0-4]\\d|25[0-5]))|((([a-z]|\\d|[\\E-\\B\\C-\\x\\A-\\y])|(([a-z]|\\d|[\\E-\\B\\C-\\x\\A-\\y])([a-z]|\\d|-|\\.|X|~|[\\E-\\B\\C-\\x\\A-\\y])*([a-z]|\\d|[\\E-\\B\\C-\\x\\A-\\y])))\\.)+(([a-z]|[\\E-\\B\\C-\\x\\A-\\y])|(([a-z]|[\\E-\\B\\C-\\x\\A-\\y])([a-z]|\\d|-|\\.|X|~|[\\E-\\B\\C-\\x\\A-\\y])*([a-z]|[\\E-\\B\\C-\\x\\A-\\y])))\\.?)(:\\d*)?)(\\/((([a-z]|\\d|-|\\.|X|~|[\\E-\\B\\C-\\x\\A-\\y])|(%[\\1U-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)+(\\/(([a-z]|\\d|-|\\.|X|~|[\\E-\\B\\C-\\x\\A-\\y])|(%[\\1U-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)*)*)?)?(\\?((([a-z]|\\d|-|\\.|X|~|[\\E-\\B\\C-\\x\\A-\\y])|(%[\\1U-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)|[\\5e-\\5T]|\\/|\\?)*)?(\\#((([a-z]|\\d|-|\\.|X|~|[\\E-\\B\\C-\\x\\A-\\y])|(%[\\1U-f]{2})|[!\\$&\'\\(\\)\\*\\+,;=]|:|@)|\\/|\\?)*)?$/i.16(a)},1A:7(a,b){8 6.K(b)||!/5U|5c/.16(2w 5b(a))},2j:7(a,b){8 6.K(b)||/^\\d{4}[\\/-]\\d{1,2}[\\/-]\\d{1,2}$/.16(a)},1G:7(a,b){8 6.K(b)||/^-?(?:\\d+|\\d{1,3}(?:,\\d{3})+)(?:\\.\\d+)?$/.16(a)},1P:7(a,b){8 6.K(b)||/^\\d+$/.16(a)},2f:7(b,e){l(6.K(e))8"1S-1Y";l(/[^0-9-]+/.16(b))8 N;p a=0,d=0,2g=N;b=b.1u(/\\D/g,"");Q(p n=b.F-1;n>=0;n--){p c=b.59(n);p d=58(c,10);l(2g){l((d*=2)>9)d-=9}a+=d;2g=!2g}8(a%10)==0},43:7(b,c,a){a=1g a=="1D"?a.1u(/,/g,\'|\'):"57|56?g|55";8 6.K(c)||b.65(2w 3t(".("+a+")$","i"))},2o:7(c,d,a){p b=$(a).66(".17-2o").2I("3H.17-2o",7(){$(d).J()});8 c==b.33()}}});$.W=$.v.W})(1F);(7($){p c=$.2U;p d={};$.2U=7(a){a=$.H(a,$.H({},$.53,a));p b=a.3X;l(a.3Z=="2Y"){l(d[b]){d[b].2Y()}8(d[b]=c.1Q(6,R))}8 c.1Q(6,R)}})(1F);(7($){l(!1F.1r.38.2d&&!1F.1r.38.2J&&4i.3G){$.P({3g:\'2d\',3H:\'2J\'},7(b,a){$.1r.38[a]={50:7(){6.3G(b,2y,w)},4Z:7(){6.4Y(b,2y,w)},2y:7(e){R[0]=$.1r.2O(e);R[0].1V=a;8 $.1r.1T.1Q(6,R)}};7 2y(e){e=$.1r.2O(e);e.1V=a;8 $.1r.1T.V(6,e)}})};$.H($.2L,{2K:7(d,e,c){8 6.2I(e,7(a){p b=$(a.4X);l(b.2W(d)){8 c.1Q(b,R)}})}})})(1F);',62,389,'||||||this|function|return|||||||||||||if||||var|settings||||name|validator|true|uFDCF|uFFEF||uFDF0|uD7FF|uF900||u00A0|length|messages|extend|element|valid|optional|form|Please|false|enter|each|for|arguments|errorList|delete|currentForm|call|format|_|method|value||in|else|toHide|elements|required|test|validate|maxlength|data|submitted|pendingRequest|errorClass|add|case|invalid|typeof|pending|rules|message|toShow|formSubmitted|showErrors|successList|filter|trim|remote|event|attr|min|replace|errorMap|input|success|minlength|console|date|url|max|string|checkable|jQuery|number|metadata|split|email|unhighlight|not|errorsFor|methods|getLength|digits|apply|classRuleSettings|dependency|handle|da|type|x09|normalizeRule|mismatch|submitButton|undefined|reset|addClass|switch|labelContainer||findByName|push|validClass|check|groups|currentElements|constructor|focusin|select|creditcard|bEven|previousValue|rangelength|dateISO|objectLength|focusInvalid|x20|parameters|equalTo|depends|debug|range|submit|wrapper|defaultMessage|removeClass|new|containers|handler|errors|hide|rulesCache|addWrapper|errorLabelContainer|showLabel|errorElement|clean|prepareForm|bind|focusout|validateDelegate|fn|old|delegate|fix|prepareElement|hideErrors|param|resetForm|window|ajax|characters|is|than|abort|Number|x0d|break|dependTypes|val|idOrName|submitHandler|staticRules|theregex|special|highlight|meta|cancelSubmit|eventType|defaults|click|catch|focus|findLastActive|button|size|ignoreTitle|ignore|defaultShowErrors|grep|errorContainer|selected|numberOfInvalids|error|find|RegExp|triggerHandler|checkForm|invalidHandler|onsubmit|nothing|option|checkbox|Array|radio|remove|text|makeArray|addEventListener|blur|init|autoCreateRanges|no|to|equal|x7f|and|x01|try|x0a|x22|attributeRules|lastActive|classRules|between|port|metadataRules|mode|originalMessage|normalizeRules|x0c|accept|isFunction|x0b|or|the|addClassRules|numberDE|dateDE|stopRequest|startRequest|depend|toLowerCase|nodeName|null|checked|document|errorPlacement|html|generated|map|invalidElements|show|validElements|parent|field|strong|errorContext|findDefined|String|customMessage|parentNode|customMetaMessage|id|lastElement|formatAndAdd|onfocusout|removeAttrs|cancel|assigned|has|disabled|image|blockFocusCleanup|focusCleanup|can|trigger|visible|onfocusin|label|slice|keyup|textarea|file|password|unshift|on|target|removeEventListener|teardown|setup|appendTo|warn|ajaxSettings|valueCache|gif|jpe|png|parseInt|charAt|prototype|Date|NaN|greater|uE000|unchecked|filled|https|x5d|less|x5b|x23|x21|blank|long|expr|x08|hidden|least|at|json|more|dataType|extension|default|with|addMethod|again|524288|x0e|x1f|same|2147483647|class|card|preventDefault|x7e|credit|ftp|boolean|only|getElementsByName|ISO|insertAfter|append|uF8FF|Invalid|wrap|URL|address|defined|No|Warning|This|title|setDefaults|returning|match|unbind|throw|onclick|checking|when|occured|onkeyup|removeAttr|exception|log|continue'.split('|'),0,{}))box_graph_invoices_permonth.php git://github.com/Dolibarr/dolibarr.git | PHP | 293 lines
1<?php 2/* Copyright (C) 2013 Laurent Destailleur <eldy@users.sourceforge.net> 18/** 19 * \file htdocs/core/boxes/box_graph_invoices_permonth.php 20 * \ingroup factures 22 */ 23include_once DOL_DOCUMENT_ROOT.'/core/boxes/modules_boxes.php'; 24 75 76 //include_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facture.class.php'; 77 //$facturestatic=new Facture($this->db); 112 113 include_once DOL_DOCUMENT_ROOT.'/core/class/dolgraph.class.php'; 114 include_once DOL_DOCUMENT_ROOT.'/compta/facture/class/facturestats.class.php'; 129 } 130 $nowarray = dol_getdate(dol_now(), true); 131 if (empty($endyear)) {auto_search_table_shell.php http://prohits.googlecode.com/svn/trunk/ | PHP | 376 lines
28 7. get searched resuts file. 29 8. shell > php auto_search_table_shell.php tableName taskID thisScriptURL sleepSec 30 9. check shell process 59 60$php_command_location = PHP_PATH; 61//maybe it is remote connect prohits server--------- 76 $theURL = $_SERVER['argv'][3]; 77 $frm_theURL = str_replace("autoSearch/auto_search_table_shell.php","",$theURL) . "autoBackup/download_raw_file.php"; 78 237 //} 238 $tpp_theURL = str_replace("autoSearch/auto_search_table_shell.php","",$tpp_theURL) . "tppTask/tpp_task_shell.php"; 239 $tpp_theURL .='?tableName='.$tableName.'&tppTaskID='.$theTask_arr['RunTPP']; 338 writeLog("Get new created files from $tableName machine to Prohits."); 339 $com_backup = PHP_PATH. " " .dirname(dirname(__FILE__))."/autoBackup/raw_backup_shell.php"." 0 ". $tableName; 340 system($com_backup);tools_webftp.php git://github.com/FSB/Fire-Soft-Board-2.git | PHP | 555 lines
64 */ 65 public $edit_file = array('php', 'php3', 'php4', 'php5', 'htm', 'html', 'tpl', 'txt', 'css', 'js', 'xml', 'rss', 'htaccess'); 66 137 'U_WEBFTP_PERMS' => sid('index.' . PHPEXT . '?p=tools_webftp&dir=' . $this->dir . '&order=perms&order_direction=' . (($this->order == 'perms') ? (($this->order_direction == 'asc') ? 'desc' : 'asc') : 'asc')), 138 'U_WEBFTP_DATE' => sid('index.' . PHPEXT . '?p=tools_webftp&dir=' . $this->dir . '&order=date&order_direction=' . (($this->order == 'date') ? (($this->order_direction == 'asc') ? 'desc' : 'asc') : 'asc')), 139 )); 192 { 193 $u_dir = sid('index.' . PHPEXT . '?p=tools_webftp&mode=highlight_php&dir=' . $this->dir . '&phpfile=' . $value['name']); 194 } 205 'PERMS' => $value['perms'], 206 'DATE' => date('d/m/Y H:i:s', $value['date']), 207 'IMG_TYPE' => (($value['is_dir']) ? 'adm_tpl/img/dir.gif' : 'adm_tpl/img/' . $this->get_type_img($value['type']) . '.gif'), 497 { 498 $phpfile = Http::request('phpfile'); 499 if (file_exists(ROOT . $this->dir . $phpfile))taxonomy.post_update.php git://github.com/drupal/drupal.git | PHP | 366 lines
42 43 $definition_update_manager = \Drupal::entityDefinitionUpdateManager(); 44 $entity_type = $definition_update_manager->getEntityType('taxonomy_term'); 160 161 $definition_update_manager = \Drupal::entityDefinitionUpdateManager(); 162 /** @var \Drupal\Core\Entity\EntityLastInstalledSchemaRepositoryInterface $last_installed_schema_repository */ 242 243 $definition_update_manager->updateFieldableEntityType($entity_type, $field_storage_definitions, $sandbox); 244 248 // @todo Simplify with https://www.drupal.org/node/2548095 249 $base_url = str_replace('/update.php', '', \Drupal::request()->getBaseUrl()); 250 $args = [ 351function taxonomy_post_update_configure_status_field_widget(&$sandbox = NULL) { 352 \Drupal::classResolver(ConfigEntityUpdater::class)->update($sandbox, 'entity_form_display', function (EntityDisplayInterface $entity_form_display) { 353 // Only update taxonomy term entity form displays with no existing optionsmodResource.class.php git://github.com/Dolibarr/dolibarr.git | PHP | 321 lines
89 // stored into resource/admin directory, used to setup module. 90 $this->config_page_url = array("resource.php"); 91 193 'leftmenu'=> 'resource', 194 'url'=> '/resource/list.php', 195 'langs'=> 'resource', 223 'leftmenu'=> 'resource_list', 224 'url'=> '/resource/list.php', 225 'langs'=> 'resource', 241 $this->export_permission[$r] = array(array("resource", "read")); 242 $this->export_fields_array[$r] = array('r.rowid'=>'IdResource', 'r.ref'=>'ResourceFormLabel_ref', 'c.code'=>'ResourceTypeCode', 'c.label'=>'ResourceType', 'r.description'=>'ResourceFormLabel_description', 'r.note_private'=>"NotePrivate", 'r.note_public'=>"NotePublic", 'r.asset_number'=>'AssetNumber', 'r.datec'=>"DateCreation", 'r.tms'=>"DateLastModification"); 243 $this->export_TypeFields_array[$r] = array('r.rowid'=>'List:resource:ref', 'r.ref'=>'Text', 'r.asset_number'=>'Text', 'r.description'=>'Text', 'c.code'=>'Text', 'c.label'=>'List:c_type_resource:label', 'r.datec'=>'Date', 'r.tms'=>'Date', 'r.note_private'=>'Text', 'r.note_public'=>'Text'); 268 $this->import_tables_array[$r] = array('r'=>MAIN_DB_PREFIX.'resource', 'extra'=>MAIN_DB_PREFIX.'resource_extrafields'); // List of tables to insert into (insert done in same order) 269 $this->import_fields_array[$r] = array('r.ref'=>"ResourceFormLabel_ref*", 'r.fk_code_type_resource'=>'ResourceTypeCode', 'r.description'=>'ResourceFormLabel_description', 'r.note_private'=>"NotePrivate", 'r.note_public'=>"NotePublic", 'r.asset_number'=>'AssetNumber', 'r.datec'=>'DateCreation'); 270 // Add extra fieldsPersonality.html https://gitlab.com/kidaa/masws.git | HTML | 245 lines
7<title>Uses of Class com.hp.hpl.jena.enhanced.Personality (Apache Jena)</title> 8<meta name="date" content="2013-02-20"> 9<link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> 103<td class="colFirst"><code>class </code></td> 104<td class="colLast"><code><strong><a href="../../../../../../com/hp/hpl/jena/enhanced/GraphPersonality.html" title="class in com.hp.hpl.jena.enhanced">GraphPersonality</a></strong></code> 105<div class="block">Personalities for Graphs.</div>CakeValidationSetTest.php git://github.com/yandod/candycane.git | PHP | 337 lines
1<?php 2/** 4 * 5 * CakePHP(tm) Tests <http://book.cakephp.org/view/1196/Testing> 6 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 12 * @copyright Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org) 13 * @link http://book.cakephp.org/view/1196/Testing CakePHP(tm) Tests 14 * @package Cake.Test.Case.Model.Validator 14 * @package Cake.Test.Case.Model.Validator 15 * @since CakePHP(tm) v 2.2.0 16 * @license http://www.opensource.org/licenses/mit-license.php MIT License 38/** 39 * testValidate method 40 * 42 */ 43 public function testValidate() { 44 $Field = new CakeValidationSet('title', 'notBlank');bltGrHairs.c git://pkgs.fedoraproject.org/blt | C | 545 lines
149 } 150 XDrawSegments(graphPtr->display, Tk_WindowId(graphPtr->tkwin), 151 chPtr->gc, chPtr->segArr, 2); 234 if (!graphPtr->crosshairs->hidden) { 235 TurnOnHairs(graphPtr, graphPtr->crosshairs); 236 } 243 if (!graphPtr->crosshairs->hidden) { 244 TurnOffHairs(graphPtr->tkwin, graphPtr->crosshairs); 245 } 260void 261Blt_UpdateCrosshairs(graphPtr) 262 Graph *graphPtr; 325 326 if (Blt_ConfigureWidgetComponent(graphPtr->interp, graphPtr->tkwin, 327 "crosshairs", "Crosshairs", configSpecs, 0, (char **)NULL,UserGroups.php git://github.com/phpmyadmin/phpmyadmin.git | PHP | 357 lines
1<?php 2/** 7 8namespace PhpMyAdmin\Server; 9 9 10use PhpMyAdmin\Html\Generator; 11use PhpMyAdmin\Relation; 11use PhpMyAdmin\Relation; 12use PhpMyAdmin\Template; 13use PhpMyAdmin\Url; 13use PhpMyAdmin\Url; 14use PhpMyAdmin\Util; 15 23/** 24 * PhpMyAdmin\Server\UserGroups class 25 */logs.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 336 lines
1<?php 2 6 * @Copyright (C) 2010 VINADES.,JSC. All rights reserved 7 * @Createdate 11-10-2010 14:43 8 */ 24$sql = "SELECT SQL_CALC_FOUND_ROWS * FROM `" . $db_config['prefix'] . "_logs` WHERE `id`!=0"; 25$base_url = NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op; 26 42 nv_insert_logs( NV_LANG_DATA, $module_name, sprintf ( $lang_module['filter_check_log'], $op ), $admin_info['username'] . " - " . $admin_info['userid'], 0 ); 43 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op ); 44 exit(); 180 } 181 $data_i['time'] = nv_date( "d-m-Y h:i:s A", $data_i['log_time'] ); 182 $data[] = $data_i; 278$xtpl->assign( 'URL_DEL', $base_url . "&" . NV_OP_VARIABLE . "=logs_del" ); 279$xtpl->assign( 'URL_CANCEL', NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op ); 280$xtpl->assign( 'DISABLE', $disabled );LangReplacer.php git://github.com/imagecms/ImageCMS.git | PHP | 446 lines
1<?php 2 67 $translated = self::changeKeysInFile($file, $data); 68 self::updateKeysInMoPoFiles($translated, $module); 69 } 83 $translated = self::changeKeysInFile($file, $data); 84 self::updateKeysInMoPoFiles($translated, $module); 85 } 109 */ 110 private static function updateKeysInMoPoFiles($translated, $module) { 111 197 PUBPATH . 'system/libraries', 198 PUBPATH . 'templates/administrator/js/jquery-validate', 199 PUBPATH . 'application/modules/shop/widgets', 238 /** 239 * Search lang function call in all php|tpl files recursively 240 * @param $dirEntityContentBase.php git://github.com/drupal/drupal.git | PHP | 385 lines
46 * 47 * If the migration is executed again in an update mode, any updates done in the 48 * destination Drupal site to the 'title' and 'body' fields would be overwritten 48 * destination Drupal site to the 'title' and 'body' fields would be overwritten 49 * with the original source values. Updates done to 'field_example' would be 50 * preserved because 'field_example' is not included in 'overwrite_properties' 83 * # Run entity and fields validation before saving an entity. 84 * # @see \Drupal\Core\Entity\FieldableEntityInterface::validate() 85 * validate: true 184 // Prioritize the entity method over migration config because it won't be 185 // possible to save that entity unvalidated. 186 /* @see \Drupal\Core\Entity\ContentEntityBase::preSave() */ 186 /* @see \Drupal\Core\Entity\ContentEntityBase::preSave() */ 187 return $entity->isValidationRequired() || !empty($this->configuration['validate']); 188 }TestBaseTest.php git://github.com/drupal/drupal.git | PHP | 470 lines
1<?php 2 62 * - The expected result of the validation. 63 * - The string to validate. 64 */ 64 */ 65 public function providerRandomStringValidate() { 66 return [ 78 /** 79 * @covers ::randomStringValidate 80 * @dataProvider providerRandomStringValidate 81 */ 82 public function testRandomStringValidate($expected, $string) { 83 $mock_test_base = $this->getMockForAbstractClass('Drupal\simpletest\TestBase'); 83 $mock_test_base = $this->getMockForAbstractClass('Drupal\simpletest\TestBase'); 84 $actual = $mock_test_base->randomStringValidate($string); 85 $this->assertEquals($expected, $actual);widget-categories.php http://ooxx.googlecode.com/svn/trunk/ | PHP | 246 lines
217 <label for="<?php echo $this->get_field_id( 'hierarchical' ); ?>"> 218 <input class="checkbox" type="checkbox" <?php checked( $instance['hierarchical'], true ); ?> id="<?php echo $this->get_field_id( 'hierarchical' ); ?>" name="<?php echo $this->get_field_name( 'hierarchical' ); ?>" /> <?php _e( 'Hierarchical?', $this->textdomain ); ?> <code>hierarchical</code></label> 219 </p> 221 <label for="<?php echo $this->get_field_id( 'use_desc_for_title' ); ?>"> 222 <input class="checkbox" type="checkbox" <?php checked( $instance['use_desc_for_title'], true ); ?> id="<?php echo $this->get_field_id( 'use_desc_for_title' ); ?>" name="<?php echo $this->get_field_name( 'use_desc_for_title' ); ?>" /> <?php _e( 'Use description?', $this->textdomain ); ?> <code>use_desc_for_title</code></label> 223 </p> 225 <label for="<?php echo $this->get_field_id( 'show_last_update' ); ?>"> 226 <input class="checkbox" type="checkbox" <?php checked( $instance['show_last_update'], true ); ?> id="<?php echo $this->get_field_id( 'show_last_update' ); ?>" name="<?php echo $this->get_field_name( 'show_last_update' ); ?>" /> <?php _e( 'Show last update?', $this->textdomain ); ?> <code>show_last_update</code></label> 227 </p> 229 <label for="<?php echo $this->get_field_id( 'show_count' ); ?>"> 230 <input class="checkbox" type="checkbox" <?php checked( $instance['show_count'], true ); ?> id="<?php echo $this->get_field_id( 'show_count' ); ?>" name="<?php echo $this->get_field_name( 'show_count' ); ?>" /> <?php _e( 'Show count?', $this->textdomain ); ?> <code>show_count</code></label> 231 </p> 233 <label for="<?php echo $this->get_field_id( 'hide_empty' ); ?>"> 234 <input class="checkbox" type="checkbox" <?php checked( $instance['hide_empty'], true ); ?> id="<?php echo $this->get_field_id( 'hide_empty' ); ?>" name="<?php echo $this->get_field_name( 'hide_empty' ); ?>" /> <?php _e( 'Hide empty?', $this->textdomain ); ?> <code>hide_empty</code></label> 235 </p>update.zep.c git://github.com/phalcon/cphalcon.git | C | 541 lines
40{ 41 ZEPHIR_REGISTER_CLASS_EX(Phalcon\\DataMapper\\Query, Update, phalcon, datamapper_query_update, phalcon_datamapper_query_abstractconditions_ce, phalcon_datamapper_query_update_method_entry, 0); 42 100 */ 101PHP_METHOD(Phalcon_DataMapper_Query_Update, column) 102{ 372 */ 373PHP_METHOD(Phalcon_DataMapper_Query_Update, reset) 374{ 411 */ 412PHP_METHOD(Phalcon_DataMapper_Query_Update, set) 413{ 460 */ 461PHP_METHOD(Phalcon_DataMapper_Query_Update, buildColumns) 462{jquery.rating.js http://xbat-devel.googlecode.com/svn/trunk/ | JavaScript | 241 lines
4 * Dual licensed under the MIT and GPL licenses: 5 * http://www.opensource.org/licenses/mit-license.php 6 * http://www.gnu.org/licenses/gpl.html 10*//* 11 Based on http://www.phpletter.com/Demo/Jquery-Star-Rating-Plugin/ 12 Original comments: 12 Original comments: 13 This is hacked version of star rating created by <a href="http://php.scripts.psu.edu/rja171/widgets/rating.php">Ritesh Agrawal</a> 14 It thansform a set of radio type input elements to star rating type and remain the radio element name and value, 70 $.rating.groups[n].valueElem.val(val); 71 // Update display 72 $.rating.event.drain(n, el, settings);AdminCarts.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 286 lines
38 'carrier' => array('title' => $this->l('Carrier'), 'width' => 25, 'align' => 'center', 'callback' => 'replaceZeroByShopName'), 39 'date_add' => array('title' => $this->l('Date'), 'width' => 90, 'align' => 'right', 'type' => 'datetime', 'filter_key' => 'a!date_add')); 40 parent::__construct(); 72 (<a href="mailto:'.$customer->email.'">'.$customer->email.'</a>)<br /><br /> 73 '.$this->l('Account registered:').' '.Tools::displayDate($customer->date_add, intval($cookie->id_lang), true).'<br /> 74 '.$this->l('Valid orders placed:').' <b>'.$customerStats['nb_orders'].'</b><br /> 93 <br /><br /> 94 '.$this->l('Made on:').' '.Tools::displayDate($order->date_add, intval($cookie->id_lang), true).'<br /><br /><br /><br />'; 95 else 142 'product_mini_'.intval($product['id_product']).(isset($product['id_product_attribute']) ? '_'.intval($product['id_product_attribute']) : '').'.jpg', 45, 'jpg') : '--').'</td> 143 <td><a href="index.php?tab=AdminCatalog&id_product='.$product['id_product'].'&updateproduct&token='.$tokenCatalog.'"> 144 <span class="productName">'.$product['name'].'</span><br /> 226 'product_mini_'.intval($product['id_product']).(isset($product['id_product_attribute']) ? '_'.intval($product['id_product_attribute']) : '').'.jpg', 45, 'jpg') : '--').'</td> 227 <td><a href="index.php?tab=AdminCatalog&id_product='.$product['id_product'].'&updateproduct&token='.$tokenCatalog.'"> 228 <span class="productName">'.$product['name'].'</span><br />DataGridFunctions.php git://github.com/forkcms/forkcms.git | PHP | 330 lines
70 // get user setting for long dates 71 $format = Authentication::getUser()->getSetting('date_format'); 72 73 // format the date according the user his settings 74 return SpoonDate::getDate($format, $timestamp, BackendLanguage::getInterfaceLanguage()); 75 } 94 // format the date according the user his settings 95 return SpoonDate::getDate($format, $timestamp, BackendLanguage::getInterfaceLanguage()); 96 } 115 // format the date according the user his settings 116 return SpoonDate::getDate($format, $timestamp, BackendLanguage::getInterfaceLanguage()); 117 } 135 . SpoonDate::getDate('Y-m-d H:i:s', $timestamp) 136 . '" title="' . SpoonDate::getDate($format, $timestamp, BackendLanguage::getInterfaceLanguage()) 137 . '">' . $timeAgo . '</time>';WrapperTypeDef.cpp https://Phalanger.svn.codeplex.com/svn | C++ | 443 lines
13// 14// ExtSupport - substitute for php4ts.dll/php5ts.dll 15// 32 33using namespace PHP::Core; 34using namespace PHP::ExtManager; 35 36namespace PHP 37{ 88 ParameterTypeInfo ^info = Params[i]->Clone(); 89 info->ParamType = (info->IsOut ? PHP::Core::PhpReference::typeid : Object::typeid); 90 202 { 203 xml_file_name = Path::Combine(PHP::Core::Configuration::Application->Paths->ExtTypeDefs, 204 String::Concat(fileName, ".xml"));index.html https://gitlab.com/BGCX261/zkjet-git.git | HTML | 443 lines
69<p> 70 Go to <strong><a href="http://codepress.org/">http://codepress.org/</a></strong> for updates. 71</p> 75 <em>choose example in:</em> 76 <button onclick="cp1.edit('cp-php','php')">PHP</button> 77 <button onclick="cp1.edit('cp-javascript','javascript')">JavaScript</button> 84 85<textarea id="cp1" class="codepress php" style="width:700px;height:300px;" wrap="off"> 86<?php 229<p> 230 You may also want to open files from server. You'll have to write a server side script and replace the JavaScript call on codepress.js from codepress.html to codepress.php (if your server side language is PHP, of course). 231</p --> 401 <em>choose language:</em> 402 <button onclick="edit('codepress.php',this)" id="default">PHP</button> 403 <button onclick="edit('FileManager.java',this)">Java</button>api_functions.php https://github.com/openaustralia/twfy.git | PHP | 371 lines
2 3include_once '../../../../phplib/rabx.php'; 4 334 335function cond_parse_http_date($date) { 336 $H = $M = $S = 0; 340 global $cond_wkday_re, $cond_weekday_re, $cond_month_re, $cond_month_map, 341 $cond_date1_re, $cond_date2_re, $cond_date3_re, $cond_time_re; 342 if (preg_match("/^$cond_wkday_re, $cond_date1_re $cond_time_re GMT\$/", $date, $ma)) { 349 $S = $ma[7]; 350 } else if (preg_match("/^$cond_weekday_re, $cond_date2_re $cond_time_re GMT\$/", $date, $ma)) { 351 /* RFC 850 */ 357 $S = $ma[7]; 358 } else if (preg_match("/^$cond_wkday_re $cond_date3_re $cond_time_re (\\d{4})\$/", $date, $ma)) { 359 /* asctime(3) */group.php http://nukeviet-shop.googlecode.com/svn/trunk/ | PHP | 214 lines
1<?php 2 6 * @Copyright (C) 2010 VINADES.,JSC. All rights reserved 7 * @Createdate 2-9-2010 14:43 8 */ 82 nv_del_moduleCache( $module_name ); 83 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op . "&parentid=" . $data['parentid'] . "" ); 84 die(); 93 { 94 $query = "UPDATE " . $table_name . " SET `parentid`=" . $db->dbescape( $data['parentid'] ) . ", `" . NV_LANG_DATA . "_title`=" . $db->dbescape( $data['title'] ) . ", `" . NV_LANG_DATA . "_alias` = " . $db->dbescape( $data['alias'] ) . ", `" . NV_LANG_DATA . "_description`=" . $db->dbescape( $data['description'] ) . ", `" . NV_LANG_DATA . "_keywords`= " . $db->dbescape( $data['keywords'] ) . ", `who_view`=" . $db->dbescape( $data['who_view'] ) . ", `groups_view`=" . $db->dbescape( $groups_view ) . ", `edit_time`=UNIX_TIMESTAMP( ) WHERE `groupid` =" . $data['groupid'] . ""; 95 $db->sql_query( $query ); 103 $weight = intval( $weight ) + 1; 104 $sql = "UPDATE " . $table_name . " SET `weight`=" . $weight . " WHERE `groupid`=" . intval( $data['groupid'] ); 105 $db->sql_query( $sql ); 110 111 Header( "Location: " . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=" . $op . "&parentid=" . $data['parentid'] . "" ); 112 die();Curl.php https://github.com/dmolsen/MIT-Mobile-Web.git | PHP | 392 lines
27/** Zend_Http_Client_Adapter_Interface */ 28require_once 'Zend/Http/Client/Adapter/Interface.php'; 29 31 * An adapter class for Zend_Http_Client based on the curl extension. 32 * Curl requires libcurl. See for full requirements the PHP manual: http://php.net/curl 33 * 103 if (!extension_loaded('curl')) { 104 require_once 'Zend/Http/Client/Adapter/Exception.php'; 105 throw new Zend_Http_Client_Adapter_Exception('cURL extension has to be loaded to use this Zend_Http_Client adapter.'); 185 186 require_once 'Zend/Http/Client/Adapter/Exception.php'; 187 throw new Zend_Http_Client_Adapter_Exception('Unable to Connect to ' . $host . ':' . $port); 305 * Make sure POSTFIELDS is set after $curlMethod is set: 306 * @link http://de2.php.net/manual/en/function.curl-setopt.php#81161 307 */Cookie.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 355 lines
78 $this->_cipherTool = new Blowfish($this->_key, $this->_iv); 79 $this->update(); 80 } 178 /* Customer is valid only if it can be load and if cookie password is the same as database one */ 179 if ($this->logged == 1 AND $this->id_customer AND Validate::isUnsignedId($this->id_customer) AND Customer::checkPassword((int)($this->id_customer), $this->passwd)) 180 return true; 270 if (!isset($this->_content['date_add'])) 271 $this->_content['date_add'] = date('Y-m-d H:i:s'); 272 } 273 else 274 $this->_content['date_add'] = date('Y-m-d H:i:s'); 275 296 } 297 if (PHP_VERSION_ID <= 50200) /* PHP version > 5.2.0 */ 298 return setcookie($this->_name, $content, $time, $this->_path, $this->_domain, 0);WireLog.php git://github.com/ryancramerdesign/ProcessWire.git | PHP | 362 lines
203 * - dateFrom (int|string): Oldest date to match entries. 204 * - dateTo (int|string): Newest date to match entries. 205 * - reverse (bool): Reverse order (default=true) 264 265 $entry['date'] = wireDate(wire('config')->dateFormat, strtotime($entry['date'])); 266 $entry['user'] = wire('sanitizer')->pageName($entry['user']); 305 * @param string $name Name of log 306 * @param int|string $dateFrom Unix timestamp or string date/time to start from 307 * @param int|string $dateTo Unix timestamp or string date/time to end at (default = now) 312 */ 313 public function getDate($name, $dateFrom, $dateTo = 0, $limit = 100) { 314 $log = $this->getFileLog($name); 315 $pageNum = $this->wire('input')->pageNum(); 316 return $log->getDate($dateFrom, $dateTo, $pageNum, $limit); 317 }jquery.combo.js https://NBgeili.svn.codeplex.com/svn | JavaScript | 426 lines
8 * http://www.gnu.org/licenses/gpl.txt 9 * http://www.jeasyui.com/license_commercial.php 10 * 75var _1b=_1a.combo.find("input.combo-text"); 76_1b.validatebox("destroy"); 77_1a.panel.panel("destroy"); 194var _33=$.data(_30,"combo").combo.find("input.combo-text"); 195_33.validatebox($.extend({},_32,{deltaX:(_32.hasDownArrow?_32.deltaX:(_32.deltaX>0?1:-1))})); 196if(_31){ 196if(_31){ 197_33.validatebox("validate"); 198} 372}); 373},validate:function(jq){ 374return jq.each(function(){openid.class.php git://github.com/Dolibarr/dolibarr.git | PHP | 558 lines
1<?php 2/* Copyright (C) 2013 Laurent Destailleur <eldy@users.sourceforge.net> 18/** 19 * \file htdocs/core/class/openid.class.php 20 * \ingroup core 46 47 // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps 48 /** 55 { 56 // phpcs:enable 57 $this->URLs['openid_server'] = $a; 59 60 // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps 61 /** 68 { 69 // phpcs:enable 70 $this->URLs['trust_root'] = $a;behat_filepicker.php git://github.com/moodle/moodle.git | PHP | 310 lines
1<?php 2// This file is part of Moodle - http://moodle.org/ 25 26// NOTE: no MOODLE_INTERNAL test here, this file may be required by behat before including /config.php. 27 27 28require_once(__DIR__ . '/../../../lib/behat/core_behat_file_helper.php'); 29 189 190 // We count .fp-file elements inside a filemanager not being updated. 191 $xpath = "//div[contains(concat(' ', normalize-space(@class), ' '), ' filemanager ')]" .DKIMSignerTest.php git://github.com/swiftmailer/swiftmailer.git | PHP | 220 lines
1<?php 2 67 $sig = reset($dkim); 68 $this->assertEquals($sig->getValue(), 'v=1; a=rsa-sha256; bh=f+W+hu8dIhf2VAni89o8lF6WKTXi7nViA4RrMdpD5/U=; d=dummy.nxdomain.be; h=; i=@dummy.nxdomain.be; s=dummySelector; t=1299879181; b=jqPmieHzF5vR9F4mXCAkowuphpO4iJ8IAVuioh1BFZ3VITXZj5jlOFxULJMBiiApm2keJirnh u4mzogj444QkpT3lJg8/TBGAYQPdcvkG3KC0jdyN6QpSgpITBJG2BwWa+keXsv2bkQgLRAzNx qRhP45vpHCKun0Tg9LrwW/KCg='); 69 } 175 ->zeroOrMoreTimes() 176 ->andReturn(['From', 'To', 'Date', 'Subject']); 177 $headers->shouldReceive('has') 194 ->zeroOrMoreTimes() 195 ->with('Date') 196 ->andReturn(true); 198 ->zeroOrMoreTimes() 199 ->with('Date') 200 ->andReturn([$headerFactory->createTextHeader('Date', 'Fri, 11 Mar 2011 20:56:12 +0000 (GMT)')]);blocks.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 251 lines
1<?php 2 6 * @Copyright (C) 2010 VINADES.,JSC. All rights reserved 7 * @Createdate 2-2-2010 12:55 8 */ 16{ 17 $select_options[NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=blocks&selectthemes=" . $themes_i] = $themes_i; 18} 111 { 112 $contents .= '<a href="index.php?' . NV_NAME_VARIABLE . '=' . $module_name . '&' . NV_OP_VARIABLE . '=blocks_func&func=' . $funcid_inlist . '&module=' . $func_inmodule . '"><span style="font-weight:bold">' . $func_inmodule . '</span>: ' . $funcname_inlist . '</a><br />'; 113 } 142 { 143 content : "<iframe src=\"' . NV_BASE_ADMINURL . 'index.php?' . NV_NAME_VARIABLE . '=themes&' . NV_OP_VARIABLE . '=block_content&bid="+bid+"&blockredirect=' . nv_base64_encode( $client_info['selfurl'] ) . '\" border=\"1\" frameborder=\"0\" style=\"width:780px;height:450px\"></iframe>", 144 player : "html", 156 type: "POST", 157 url: "index.php?' . NV_NAME_VARIABLE . '=' . $module_name . '&' . NV_OP_VARIABLE . '=blocks_change_order_group", 158 data: "order="+order+"&bid="+bid,wp-blip-options.php http://wp-blip.googlecode.com/svn/trunk/ | PHP | 214 lines
123 <label for="wp_blip_datetype_relative"><input 124 type="radio" name="wp_blip_datetype" value="relative" id="wp_blip_datetype_relative" 125 <?php echo $wp_blip_options['datetype'] == 'relative' ? 'checked="checked"' : ''; ?> 132 type="radio" name="wp_blip_datetype" value="absolute" id="wp_blip_datetype_absolute" 133 <?php echo $wp_blip_options['datetype'] == 'absolute' ? 'checked="checked"' : ''; ?> 134 /> absolutny</label><br /> 161 <td><input type="text" name="wp_blip_dateformat" id="wp_blip_dateformat" 162 value="<?php echo htmlentities2 ($wp_blip_options['dateformat']) ?>" 163 size="50" /><br /> 163 size="50" /><br /> 164 Szczegó?y: <a href="http://php.net/strftime">php.net/strftime</a> (domy?lnie: %Y-%m-%d %H:%M:%S) 165 </td> 203 <th scope="row">Wyczy?? cache:</th> 204 <td><a href="<?php echo get_bloginfo('wpurl'); ?>/wp-content/plugins/wp-blip/wp-blip-ajax.php?ajax=1&action=cache_invalidate" 205 onclick="jQuery.get (this.href, {}, function (d, s) {alert (d);}); return false">wyczy??</a></td>mssql_extractor.php https://bitbucket.org/cmwdosp/cmwbb3.git | PHP | 415 lines
1<?php 2/** 3* 4* This file is part of the phpBB Forum Software package. 5* 5* 6* @copyright (c) phpBB Limited <https://www.phpbb.com> 7* @license GNU General Public License, version 2 (GPL-2.0) 13 14namespace phpbb\db\extractor; 15 15 16use phpbb\db\extractor\exception\extractor_not_initialized_exception; 17 49 $sql_data .= "-- Dump of tables for $table_prefix\n"; 50 $sql_data .= "-- DATE : " . gmdate("d-m-Y H:i:s", $this->time) . " GMT\n"; 51 $sql_data .= "--\n";page--node--7.tpl.php https://bitbucket.org/jaayyy/country-lane-farms.git | PHP | 254 lines
2 3 <?php include 'header.php'; 4 78 <div class="right-col col-md-8"> 79<?php 80 if (!isset($FormData["locationid"])) { 98 <label> 99 <input type="radio" class="location<?php echo $l->id; ?>" name="f[locationid]" value="<?php echo $l->id; ?>" <?php echo $Selected[$l->id]; ?> onclick="javascript:PickupSelected(<?php echo $idx; ?>);" /><?php echo $l->name; ?> 100 </label> 200 foreach($Locations as $l) { ?> 201 <option value="<?php echo $l->id; ?>" <?php if($Selected[$l->id] === 'checked') echo 'selected'; ?>><?php echo $l->name; ?></option> 202 <?php } ?> 251</script> 252<?php include 'footer.php'; ?> 253IpAccessControlListTest.php https://bitbucket.org/OverSite/capstone-demo.git | PHP | 283 lines
1<?php 2 49 "date_created": "Fri, 17 Jul 2015 21:25:15 +0000", 50 "date_updated": "Fri, 17 Jul 2015 21:25:15 +0000", 51 "friendly_name": "aaaa", 139 "date_created": "Fri, 17 Jul 2015 21:25:15 +0000", 140 "date_updated": "Fri, 17 Jul 2015 21:25:15 +0000", 141 "friendly_name": "aaaa", 183 "date_created": "Fri, 17 Jul 2015 21:25:15 +0000", 184 "date_updated": "Fri, 17 Jul 2015 21:25:15 +0000", 185 "friendly_name": "aaaa", 201 202 public function testUpdateRequest() 203 { 233 "date_created": "Fri, 17 Jul 2015 21:25:15 +0000", 234 "date_updated": "Fri, 17 Jul 2015 21:25:15 +0000", 235 "friendly_name": "aaaa",??????????????????.htm http://xinhaining-dianjian-delphi.googlecode.com/svn/trunk/ | HTML | 262 lines
112<input type="password" name="Password" maxlength="16" size="9"style="BORDER-RIGHT: #336aa8 1px double; BORDER-TOP: #336aa8 1px double; BORDER-LEFT: #336aa8 1px double; COLOR: #336aa8; BORDER-BOTTOM: #336aa8 1px double" > 113 </font> <input type=hidden name=validate1 value="haredogQW1" > 114 <input name="image" type="image" src="/inc/submit.gif"> 142 <script language=JavaScript1.2 143 src="/js/date.js" 144 type=text/javascript></script> 157 <div align="center"> 158 <a href=/><font size=2pt>??</font></a><font color=#ffffff> | </font><a href=/?_id=2><font size=2pt>????</font></a><font color=#ffffff> | </font><a href=/?_id=3><font size=2pt>????</font></a><font color=#ffffff> | </font><a href=/?_id=17><font size=2pt><font color=yellow>???????</font></font></a><font color=#ffffff> | </font><a href=http://www.epapi.com/phpBB2/><font size=2pt><font color=red><b>????</b></font></font></a><font color=#ffffff> | </font><a href=/?_id=6><font size=2pt>????</font></a><font color=#ffffff> | </font><a href=/?_id=7&sel=1><font size=2pt>????</font></a><font color=#ffffff> | </font><a href=/?_id=15><font size=2pt>????</font></a><font color=#ffffff> | </font><a href=index.servlet?_id=10><font size=2pt>????</font></a><font color=#ffffff> | </font><a href=index.servlet?_id=11><font size=2pt>??????</font></a> </div></td> 159 </tr> 178 <tr> 179 <form name="form" method="post" action="index.php?_id=18"> 180 <td height="20" colspan="2"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" background="images/bg6.gif"> 189 </font></div></td> 190 <td ><div align="center"><font color="#990000">?????</font><a href="index.php?_id=18&add=%B5%E7%C1%A6"class=a2>??</a> 191 <a href="index.php?_id=18&add=%D3%C5%CC%D8%B5%E7%C1%A6"class=a2>??</a>CWsdlGenerator.php http://chenjin.googlecode.com/svn/trunk/ | PHP | 420 lines
1<?php 2/** 20 * of every input parameter and the type of the return value should be declared using 21 * the standard phpdoc format. 22 * 29 * <li>bool/boolean: maps to xsd:boolean;</li> 30 * <li>date: maps to xsd:date;</li> 31 * <li>time: maps to xsd:time;</li> 31 * <li>time: maps to xsd:time;</li> 32 * <li>datetime: maps to xsd:dateTime;</li> 33 * <li>array: maps to xsd:string;</li> 174 'boolean'=>'xsd:boolean', 175 'date'=>'xsd:date', 176 'time'=>'xsd:time', 176 'time'=>'xsd:time', 177 'datetime'=>'xsd:dateTime', 178 'array'=>'soap-enc:Array',AdminShipping.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 306 lines
1<?php 2/* 9* It is also available through the world-wide-web at this URL: 10* http://opensource.org/licenses/osl-3.0.php 11* If you did not receive a copy of the license and are unable to 23* @version Release: $Revision: 8861 $ 24* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25* International Registered Trademark & Property of PrestaShop SA 64 $function = $values['validation']; 65 if (!Validate::$function(Tools::getValue($field))) 66 $this->_errors[] = Tools::displayError('field').' <b>'.$values['title'].'</b> '.Tools::displayError('is invalid.'); 68 69 /* Update configuration values */ 70 if (!sizeof($this->_errors)) 74 $function = $values['cast']; 75 Configuration::updateValue($field, call_user_func($function, Tools::getValue($field))); 76 }convert-ly.py git://git.savannah.gnu.org/lilypond.git | Python | 391 lines
2 3# convert-ly.py -- Update old LilyPond input files (fix name?) 4# converting rules are found in python/convertrules.py 46help_summary = ( 47_ ('''Update LilyPond input to newer version. By default, update from the 48version taken from the \\version command, to the current LilyPond version.''') 127 128 p.add_option ('-d', '--diff-version-update', 129 help=_ ("only update \\version number if file is modified"), 130 action='store_true', 131 dest='diff_version_update', 132 default=False) 157 _ ("Report bugs via %s") 158 % 'http://post.gmane.org/post.php' 159 '?group=gmane.comp.gnu.lilypond.bugs') + '\n')save_QueryBuilder.class.php http://antilophpe.googlecode.com/svn/ | PHP | 317 lines
78 /** 79 * buildUpdate method: build an Update SQL Query 80 * starting from an array representing the Object 112 else 113 $Update_set.= ' "'.str_replace($Object_name.'__','',$key).'"=\''.$value.'\','; 114 } 124 else{ 125 if(is_numeric($value)) $Update_set.= ' "'.str_replace($Object_name.'__','',$key).'"='.$value.','; 126 else $Update_set.= ' "'.str_replace($Object_name.'__','',$key).'"=\''.$value.'\','; 131 } 132 $Update_set=rtrim($Update_set, ','); 133 $query='UPDATE "'.$Object_tableName.'" 139 /** 140 * buildInsertOrUpdate method: build an Update SQL Query 141 * starting from an array representing the ObjectMessageController.php http://mock-project.googlecode.com/svn/trunk/ | PHP | 217 lines
1<?php 2 17 18// require_once APPLICATION_PATH . '/modules/user/models/DbTable/Member.php'; 19 $us = new User_Model_DbTable_Member(); 61 $status = 'Success'; 62 $msg = 'Update database success'; 63 }article.html http://phpfor.googlecode.com/svn/trunk/ | HTML | 194 lines
7 <{if $key == "seo"}> 8 <span class="tab"><span><a href="index.php?ctl=sale/tools&act=seo"><{$item}></a></span></span> 9 <{else}> 9 <{else}> 10 <span class="tab"><span><a href="index.php?ctl=sale/tools&act=exceptseo&p[0]=<{$key}>"><{$item}></a></span></span> 11 <{/if}> 16 17<form action='index.php?ctl=sale/tools&act=seoedit' method='post' class="settingform" id="site_basic" enctype="multipart/form-data" target="{update:'messagebox'}"> 18<div class="tableform">controllers.rb http://ruby-taskr.googlecode.com/svn/trunk/ | Ruby | 344 lines
80 81 def update(task_id) 82 $LOG.debug "Update Input params: #{@input.inspect}" 98 $LOG.debug("Looking up \"#{param_name}\". Setting value to \"#{value}\"") 99 action.parameters.find_by_name(param_name).update_attribute(:value, value) 100 end 126 127 @task.reload # Ensure any updates to the record goes in 128 131 132 $LOG.info "Task \"#{@task.name}\" (ID: #{@task.id}) updated sucessfully." 133 redirect R(@task) 186 begin 187 # the "0" is for compatibility with PHP's Zend_Rest_Client 188 task_data = @input['task'] || @input["0"] || @inputjquery.ztree.exhide-3.5.js http://jquerytree.googlecode.com/svn/trunk/ | JavaScript | 362 lines
7 * Licensed same as jquery - MIT License 8 * http://www.opensource.org/licenses/mit-license.php 9 * 10 * email: hunter.z@263.net 11 * Date: 2012-11-20 12 */ 21 _beforeA = function(setting, node, html) {}, 22 //update zTreeObj, add method of exLib 23 _zTreeTools = function(setting, zTreeTools) {admin-widgets.php git://github.com/q2a/question2answer.git | PHP | 346 lines
1<?php 2/* 18 19 More about this license: http://www.question2answer.org/license.php 20*/ 26 27require_once QA_INCLUDE_DIR . 'app/admin.php'; 28require_once QA_INCLUDE_DIR . 'db/selects.php'; 92 'favorites' => 'misc/my_favorites_title', 93 'updates' => 'misc/recent_updates_title', 94 133elseif (qa_clicked('dosavewidget')) { 134 require_once QA_INCLUDE_DIR . 'db/admin.php'; 135sfPropelFormGenerator.class.php http://openirudi.googlecode.com/svn/trunk/ | PHP | 492 lines
99 100 file_put_contents($baseDir.'/base/Base'.$table->getPhpName().'Form.class.php', $this->evalTemplate('sfPropelFormGeneratedTemplate.php')); 101 if (!file_exists($classFile = $baseDir.'/'.$table->getPhpName().'Form.class.php')) 123 { 124 if ($column->isForeignKey() && $column->isPrimaryKey() && $this->table->getPhpName() == $this->getForeignTable($column)->getPhpName()) 125 { 129 { 130 if ($relatedColumn->isForeignKey() && $relatedColumn->isPrimaryKey() && $this->table->getPhpName() != $this->getForeignTable($relatedColumn)->getPhpName()) 131 { 167 { 168 $names[] = array($this->getForeignTable($column)->getPhpName(), $column->getPhpName(), $column->isNotNull(), false); 169 } 173 { 174 $names[] = array($tables['relatedTable']->getPhpName(), $tables['middleTable']->getPhpName(), false, true); 175 }ajax.php https://code.google.com/p/cids/ | PHP | 227 lines
1<?php 2include_once '../config.php'; 2include_once '../config.php'; 3include_once '../opendb.php'; 4include_once 'select.php'; 78 0, getSearchValue(), getFieldValue());' /> 79 <select id='field' onchange='update_search(this.options[this.selectedIndex].value);'> 80 <option value='team' ".($field != 'team'? '':'selected').">TEAM</option> 83 <option value='uri_type' ".($field != 'uri_type'? '':'selected').">URI_TYPE</option> 84 <option value='date_request' ".($field != 'date_request'? '':'selected').">DATE_REQUEST</option> 85 <option value='date_resolved' ".($field != 'date_resolved'? '':'selected').">DATE_RESOLVED</option> 94// onclick="changePage($('limit').options[$('limit').selectedIndex].value, 0, $('search').value);" /> 95// <input type="text" id="search" value="<php echo @$select->search; >" style="width: 350px;" /> 96// </p>"; 100 echo $navigation_search; 101 echo "<form action='admin.php' method='post' enctype='multipart/form-data'>"; 102 echo display($state, $limit, $offset, $search, $field);php_solr_response.c git://pkgs.fedoraproject.org/php-pecl-solr | C | 433 lines
2 +----------------------------------------------------------------------+ 3 | PHP Version 5 | 4 +----------------------------------------------------------------------+ 4 +----------------------------------------------------------------------+ 5 | Copyright (c) 1997-2009 The PHP Group | 6 +----------------------------------------------------------------------+ 298 299 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Error in JSON->PHP conversion. JSON Error Code %d", json_translation_result); 300 } 393 Constructor */ 394PHP_METHOD(SolrUpdateResponse, __construct) 395{ 401 Destructor */ 402PHP_METHOD(SolrUpdateResponse, __destruct) 403{AdminModulesPositions.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 316 lines
13 14include_once(PS_ADMIN_DIR.'/../classes/AdminTab.php'); 15 35 $module = Module::getInstanceById($id_module); 36 if (Validate::isLoadedObject($module)) 37 { 63 $this->_errors[] = Tools::displayError('no valid value for field exceptions'); 64 if (!$id_module OR !Validate::isLoadedObject($module)) 65 $this->_errors[] = Tools::displayError('module cannot be loaded'); 65 $this->_errors[] = Tools::displayError('module cannot be loaded'); 66 elseif (!$id_hook OR !Validate::isLoadedObject($hook)) 67 $this->_errors[] = Tools::displayError('hook cannot be loaded'); 291 <div class="margin-form"> 292 <input type="text" name="exceptions" size="40" '.(!empty($excepts) ? 'value="'.$excepts.'"' : '').'><br />Ex: identity.php, history.php, order.php, product.php<br /><br /> 293 '.$this->l('Please specify those files in which you do not want the module to be displayed').'.<br />lua3d.c http://luaplayereuphoria.googlecode.com/svn/trunk/ | C | 511 lines
8 * 9 * Official Forum : http://www.retroemu.com/forum/forumdisplay.php?f=148 10 * For help using LuaPlayer, code help, tutorials etc please visit the official site : http://www.retroemu.com/forum/forumdisplay.php?f=148 277 278 sceKernelDcacheWritebackInvalidateAll(); 279 sceGumDrawArray(prim, vtype, n, NULL, vertices);identifier-index-V.html git://pkgs.fedoraproject.org/PyXB | HTML | 239 lines
99<tr> 100<td width="33%" class="link-index"><a href="pyxb.binding.content.AttributeUse-class.html#validate">validate()</a><br /> 101<span class="index-where">(in <a href="pyxb.binding.content.AttributeUse-class.html">AttributeUse</a>)</span></td> 107<tr> 108<td width="33%" class="link-index"><a href="pyxb.binding.content.ParticleModel-class.html#validate">validate()</a><br /> 109<span class="index-where">(in <a href="pyxb.binding.content.ParticleModel-class.html">ParticleModel</a>)</span></td> 115<tr> 116<td width="33%" class="link-index"><a href="pyxb.binding.basis._TypeBinding_mixin-class.html#validateBinding">validateBinding()</a><br /> 117<span class="index-where">(in <a href="pyxb.binding.basis._TypeBinding_mixin-class.html" onclick="show_private();">_TypeBinding_mixin</a>)</span></td> 123<tr> 124<td width="33%" class="link-index"><a href="pyxb.binding.generate.Generator-class.html#validateChanges">validateChanges()</a><br /> 125<span class="index-where">(in <a href="pyxb.binding.generate.Generator-class.html">Generator</a>)</span></td> 131<tr> 132<td width="33%" class="link-index"><a href="pyxb.namespace.ExpandedName-class.html#validateComponentModel">validateComponentModel()</a><br /> 133<span class="index-where">(in <a href="pyxb.namespace.ExpandedName-class.html">ExpandedName</a>)</span></td>ricaricaweb.php https://bitbucket.org/xvoip/ricaricaweb-wordpress.git | PHP | 338 lines
1<?php 2 12include "messages.php"; 13include "config.php"; 14include "database.php"; 40 $rdata["tc_payment_notification"] = "http://".$_SERVER['HTTP_HOST'].$page[0]."?mng=1"; 41 //$rdata["tc_payment_notification"] = urlencode("http://moneymaster.telecash.it/rpc/operate.php?cmd=updatetrack"); 42 $rdata["tc_custom1"] = $rk; 51 52// $trakingdata = $this->getUrl("http://moneymaster.telecash.it/rpc/operate.php?cmd=starttrack&tcode=".$conf["tc_custom1"]."&tproductid=".$conf["tc_affiliate_merchant"]); 53 58 $cssclass .= ($conf["tc_has_paypal"]=="1")?"":"nopaypal"; 59 $action = ($conf["tc_affiliate_merchant"]!="")?"http://panel.moneymaster.it/rpc/send.php":$conf["tc_url"]; 60 $rows[] = "<form action='".$action."' method='POST' id='form_tc_service' class='$cssclass' onsubmit=\"return checkStartPay();\">"; 184 185 $trakingdata = json_decode($this->getUrl("http://moneymaster.telecash.it/rpc/operate.php?cmd=gettrack&tcode=$rk&tproductid=$apid")); 186class-wcs-report-cache-manager.php https://bitbucket.org/tristangemus/tribe-demo.git | PHP | 357 lines
28 private $update_events_and_classes = array( 29 'woocommerce_subscriptions_reports_schedule_cache_updates' => array( // a custom hook that can be called to schedule a full cache update, used by WC_Subscriptions_Upgrader 30 0 => 'WC_Report_Subscription_Events_By_Date', 57 /** 58 * Record of all the report calsses to need to have the cache updated during this request. Prevents duplicate updates in the same request for different events. 59 */ 87 foreach ( $hooks as $old_hook => $new_hook ) { 88 $this->update_events_and_classes[ $old_hook ] = $this->update_events_and_classes[ $new_hook ]; 89 unset( $this->update_events_and_classes[ $new_hook ] ); // New hooks aren't called, so no need to attach to them 118 if ( isset( $this->update_events_and_classes[ current_filter() ] ) ) { 119 $this->reports_to_update = array_unique( array_merge( $this->reports_to_update, $this->update_events_and_classes[ current_filter() ] ) ); 120 } 131 * 132 * This function is attached as a callback on 'shutdown' and will schedule cache updates for any reports found to need updates by 133 * @see $this->set_reports_to_update().inwardgatepass.php https://bitbucket.org/Digitalsoftspvt/sttoka.git | PHP | 227 lines
40 <span class="input-group-addon txt-addon">Date</span> 41 <input class="form-control ts_datepicker" type="text" id="current_date"> 42 <input class="form-control ts_datepicker" type="hidden" id="vrdate"> 62 <?php foreach ($parties as $party): ?> 63 <option value="<?php echo $party['pid']; ?>" data-uname="<?php echo $party['uname']; ?>" data-uaddress="<?php echo $party['uaddress']; ?>"><?php echo $party['name']; ?></option> 64 <?php endforeach ?> 112 <?php foreach ($items as $item): ?> 113 <option value="<?php echo $item['item_id']; ?>" data-uom="<?php echo $item['uom']; ?>"><?php echo $item['item_id']; ?></option> 114 <?php endforeach ?> 121 <?php foreach ($items as $item): ?> 122 <option value="<?php echo $item['item_id']; ?>" data-uom="<?php echo $item['uom']; ?>"><?php echo $item['item_des']; ?></option> 123 <?php endforeach ?> 129 <?php foreach ($departments as $department): ?> 130 <option value="<?php echo $department['did']; ?>"><?php echo $department['name']; ?></option> 131 <?php endforeach ?>Command.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 512 lines
1<?php 2 106 /** 107 * Initializes the command just after the input has been validated. 108 * 144 145 $input->validate(); 146 378 $name, 379 $_SERVER['PHP_SELF'].' '.$name 380 );IndexParser.cs https://openHistorian.svn.codeplex.com/svn | C# | 254 lines
10// 11// http://www.opensource.org/licenses/eclipse-1.0.php 12// 117 /// <summary> 118 /// This function will also call <see cref="SetPosition"/> so after it returns, the current block data will be updated. 119 /// </summary> 124 MapPosition(positionIndex); 125 UpdateBlockInformation(); 126 return DataClusterAddress; 129 /// <summary> 130 /// Determines if the current sector contains the position passed. If not, it updates the current sector to the one that contains the passed position. 131 /// </summary> 135 MapPosition(positionIndex); 136 UpdateBlockInformation(); 137 }MainForm.cs https://simpleproxyswitch.svn.codeplex.com/svn | C# | 296 lines
9// Revision : $LastChangedRevision$ 10// Last Changed : $LastChangedDate$ 11// Author : $Author$ 16// 17// Published under the MIT License. See license.rtf or http://www.opensource.org/licenses/mit-license.php. 18// 128 129 proxy.UpdateSetting(proxyForm.Setting); 130 }Makefile.in git://pkgs.fedoraproject.org/virtuoso-opensource | Autoconf | 520 lines
25# under the terms of the GNU General Public License as published by the 26# Free Software Foundation; only version 2 of the License, dated June 1991. 27# 258pdfdocdir = @pdfdocdir@ 259php5_CFLAGS = @php5_CFLAGS@ 260php5_LDFLAGS = @php5_LDFLAGS@Process.php https://bitbucket.org/ttphong2612/billigastamplar-new.se.git | PHP | 451 lines
1<?php 2/** 9 * It is also available through the world-wide-web at this URL: 10 * http://opensource.org/licenses/osl-3.0.php 11 * If you did not receive a copy of the license and are unable to 23 * @copyright Copyright (c) 2006-2018 Magento, Inc. (http://www.magento.com) 24 * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25 */ 127 if (strpos(str_replace($this->_includeDir, '', $target), '-') 128 || !in_array(substr($source, strlen($source)-4, 4), array('.php'))) { 129 return $this; 199 } else { 200 if (!in_array(substr($source, strlen($source)-4, 4), array('.php'))) { 201 return $this; 334 $classesSorce = $this->_getClassesSourceCode($classes, $code); 335 file_put_contents($this->_includeDir.DS.Varien_Autoload::SCOPE_FILE_PREFIX.$code.'.php', $classesSorce); 336 }BaseClient_Test.php git://github.com/recurly/recurly-client-php.git | PHP | 241 lines
144 { 145 $dateTime = new DateTime("2020-01-01 00:00:00"); 146 148 $result = '{"id": "created", "object": "test_resource", "name": "valid"}'; 149 $body = [ "date_time" => $dateTime->format(\DateTime::ISO8601) ]; 150 $this->client->addScenario("POST", $url, json_encode($body), $result, "201 Created"); 150 $this->client->addScenario("POST", $url, json_encode($body), $result, "201 Created"); 151 $resource = $this->client->createResource([ "date_time" => $dateTime ]); 152 $this->assertEquals($resource->getId(), "created"); 156 { 157 $dateTime = new DateTime("2020-01-01 00:00:00"); 158 162 "nested" => [ 163 "date_time" => $dateTime->format(\DateTime::ISO8601) 164 ]ConfigurationFrame.cs https://openpdc.svn.codeplex.com/svn | C# | 302 lines
10// 11// http://www.opensource.org/licenses/eclipse-1.0.php 12// 23// 12/20/2011 - J. Ritchie Carroll 24// Updated configuration caching algorithm to create multiple backup configurations. 25//SearchRankingTest.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 268 lines
1<?php 2 97 // Simulating content views is kind of difficult in the test. Leave that 98 // to the Statistics module. So instead go ahead and manually update the 99 // counter for this node. 104 105 // Run cron to update the search index and comment/statistics totals. 106 $this->cronRun(); 125 126 // Reload the plugin to get the up-to-date values. 127 $this->nodeSearch = entity_load('search_page', 'node_search'); 183 184 // Update the search index. 185 $this->nodeSearch->getPlugin()->updateIndex(); 185 $this->nodeSearch->getPlugin()->updateIndex(); 186 search_update_totals(); 187db.class.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 438 lines
1<?php 2// +---------------------------------------------------------------------- 2// +---------------------------------------------------------------------- 3// | ?????????? (Build on ThinkPHP) 4// +---------------------------------------------------------------------- 92 */ 93 function update($table, $data, $condition, $unbuffered = false, $low_priority = false) 94 { 95 $sql = FDB::implodeFieldValue($data); 96 $cmd = "UPDATE ".($low_priority ? 'LOW_PRIORITY' : ''); 97 $table = FDB::table($table); 222 /** 223 * ????? MySQL ??????????(INSERT?UPDATE ? DELETE ) 224 * @return int 315 { 316 static $status = null, $checkcmd = array('SELECT', 'UPDATE', 'INSERT', 'REPLACE', 'DELETE'); 317functions_0x65.html http://openbiz-cubi.googlecode.com/svn/trunk/ | HTML | 204 lines
36 </div> 37 <div id="projectbrief">Open source PHP Framework that designed for building web application.</div> 38 </td> 152<li>email() 153: <a class="el" href="d5/d10/classvalidate_service.html#a500eadfd18dece6c266d182f344f7eca">validateService</a> 154</li>default.php http://jfusion.googlecode.com/svn/trunk/ | PHP | 250 lines
101 <?php if ($record->name == 'joomla_int'): //joomla_int must be treated separately?> 102 <a href="index.php?option=com_jfusion&task=plugineditor&jname=<?php echo $record->name; ?>" title="Edit Plugin"><img src="<?php echo $images ?>edit.png" alt="Edit Plugin" /></a> 103 <img src="<?php echo $images ?>copy_icon_dim.png" /> 107 <a href="index.php?option=com_jfusion&task=plugineditor&jname=<?php echo $record->name; ?>" title="Edit Plugin"><img src="<?php echo $images ?>edit.png" alt="Edit Plugin" /></a> 108 <a href="javascript: void(0)" onclick="copy_plugin('index.php?option=com_jfusion&task=copy_plugin&jname=<?php echo $record->name; ?>')" title="Copy Plugin"><img src="<?php echo $images ?>copy_icon.png" alt="Copy Plugin" /></a> 109 <img src="<?php echo $images ?>delete_icon_dim.png" title='<?php echo JText::_('PLUGIN_HAS_COPIES'); ?>' /> 110 <?php if ($record->wizard): ?> 111 <a href="index.php?option=com_jfusion&task=wizard&jname=<?php echo $record->name; ?>" title="Plugin Wizard"><img src="<?php echo $images ?>wizard_icon.png" alt="Plugin Wizard" /></a> 112 <?php else :?> 115 <?php else: //all others?> 116 <a href="index.php?option=com_jfusion&task=plugineditor&jname=<?php echo $record->name; ?>" title="Edit Plugin"><img src="<?php echo $images ?>edit.png" alt="Edit Plugin" /></a> 117 <a href="javascript: void(0)" onclick="copy_plugin('index.php?option=com_jfusion&task=copy_plugin&jname=<?php echo $record->name; ?>')" title="Copy Plugin"><img src="<?php echo $images ?>copy_icon.png" alt="Copy Plugin" /></a> 119 <?php if ($record->wizard): ?> 120 <a href="index.php?option=com_jfusion&task=wizard&jname=<?php echo $record->name; ?>" title="Plugin Wizard"><img src="<?php echo $images ?>wizard_icon.png" alt="Plugin Wizard" /></a> 121 <?php else :?>friend.php http://praized.googlecode.com/svn/trunk/ | PHP | 358 lines
1<?php 2/** 15 * 16 * <code><?php if ( pzdc_has_friend() ) : ?>...<?php endif; ?></code> 17 * 31 * 32 * @param string $identifier Optional user identifier (login) for custom template development (see bundled praized-php lib) 33 * @return mixed Boolean FALSE or Object Current friend (see params) 46 * @param boolean $echo Defines if the output should be echoed or simpy returned, defaults to TRUE 47 * @param string $identifier Optional user identifier (login) for custom template development (see bundled praized-php lib) 48 * @return string 102 * @param boolean $echo Defines if the output should be echoed or simpy returned, defaults to TRUE 103 * @param string $identifier Optional user identifier (login) for custom template development (see bundled praized-php lib) 104 * @return string 286/** 287 * Template function: Current friend last update date 288 *Model.php git://github.com/forkcms/forkcms.git | PHP | 471 lines
1<?php 2 129 /** 130 * Encrypt the password with PHP password_hash function. 131 * 141 /** 142 * Verify the password with PHP password_verify function. 143 * 401 /** 402 * Insert or update a single profile setting. 403 * 409 { 410 // insert or update 411 FrontendModel::getContainer()->get('database')->execute( 413 VALUES(?, ?, ?) 414 ON DUPLICATE KEY UPDATE value = ?', 415 [$id, $name, serialize($value), serialize($value)]PageCacheTest.php https://bitbucket.org/aswinvk28/smartpan-stock-drupal.git | PHP | 250 lines
1<?php 2 69 70 Cache::invalidateTags($tags); 71 $this->drupalGet($path); 123 124 $this->drupalGet('', array(), array('If-Modified-Since: ' . gmdate(DATE_RFC822, strtotime($last_modified)), 'If-None-Match: ' . $etag)); 125 $this->assertResponse(304, 'Conditional request with obsolete If-Modified-Since date returned 304 Not Modified.'); 126 127 $this->drupalGet('', array(), array('If-Modified-Since: ' . gmdate(DATE_RFC850, strtotime($last_modified)), 'If-None-Match: ' . $etag)); 128 $this->assertResponse(304, 'Conditional request with obsolete If-Modified-Since date returned 304 Not Modified.'); 135 136 $this->drupalGet('', array(), array('If-Modified-Since: ' . gmdate(DATE_RFC1123, strtotime($last_modified) + 1), 'If-None-Match: ' . $etag)); 137 $this->assertResponse(200, 'Conditional request with new a If-Modified-Since date newer than Last-Modified returned 200 OK.'); 187 $this->assertTrue(strpos(strtolower($this->drupalGetHeader('Vary')), 'cookie') === FALSE, 'Vary: Cookie header was not sent.'); 188 $this->assertEqual($this->drupalGetHeader('Cache-Control'), 'must-revalidate, no-cache, post-check=0, pre-check=0, private', 'Cache-Control header was sent.'); 189 $this->assertEqual($this->drupalGetHeader('Expires'), 'Sun, 19 Nov 1978 05:00:00 GMT', 'Expires header was sent.');FetcherComponentTest.php git://github.com/yandod/candycane.git | PHP | 276 lines
105 $this->Component->fetch($user['User'], array('project' => $this->Project->data)); 106 $events = $this->Component->events(date('Y-m-d', strtotime('-30 day')), date('Y-m-d', strtotime('+1 day'))); 107 $this->assertNotNull($events); 119 strtotime($events[$i]['datetime']) >= strtotime($events[$i + 1]['datetime']), 120 "Compare dates {$events[$i]['datetime']} > {$events[$i + 1]['datetime']}" 121 ); 122 $this->assertFalse( 123 (strtotime($events[$i]['datetime']) == strtotime($events[$i + 1]['datetime']) && 124 $events[$i]['type'] == $events[$i + 1]['type'] && 139 $this->Component->fetch($user['User'], array('project' => $this->Project->data, 'with_subprojects' => 1)); 140 $events = $this->Component->events(date('Y-m-d', strtotime('-30 day')), date('Y-m-d', strtotime('+1 day'))); 141 $this->assertNotNull($events); 161 $this->Component->fetch($user['User']); 162 $events = $this->Component->events(date('Y-m-d', strtotime('-30 day')), date('Y-m-d', strtotime('+1 day'))); 163 $this->assertNotNull($events);VigenciaDocumentoDataGridGen.class.php http://logisticsouth.googlecode.com/svn/trunk/ | PHP | 362 lines
1<?php 2 /** 141 public function MetaAddTypeColumn($mixContent, $strTypeClassName, $objOverrideParameters = null) { 142 // Validate TypeClassName 143 if (!class_exists($strTypeClassName) || !property_exists($strTypeClassName, 'NameArray')) 145 146 // Validate Node 147 try {README.md git://github.com/timroes/aXMLRPC.git | Markdown | 314 lines
24of your project. If you use git yourself, you can use submodules to include the code 25as a module to yours. So you will always stay up to date with the library. 26 129 130`dateTime.iso8601` => `Date` 131 183The client will be able to send `null` values. A `null` value will be send 184as `<nil/>`. This extension is described under: http://ontosys.com/xml-rpc/extensions.php 185 250#### FLAGS_ACCEPT_NULL_DATE 251By default a response with an empty date (eg: `<value><dateTime.iso8601/></value>`) 252is invalid and hence throws an exception. 252is invalid and hence throws an exception. 253With this flag, this input is accepted, and returns a null date 254Key.php https://code.google.com/p/s3db/ | PHP | 316 lines
1<?php 2/** 9 * 10 * LICENSE: This source file is subject to version 3.0 of the PHP license 11 * that is available through the world-wide-web at the following URI: 11 * that is available through the world-wide-web at the following URI: 12 * http://www.php.net/license/3_0.txt. If you did not receive a copy of 13 * the PHP License and are unable to obtain it through the web, please 13 * the PHP License and are unable to obtain it through the web, please 14 * send a note to license@php.net so we can mail you a copy immediately. 15 * 19 * @copyright 2005, 2006 Alexander Valyalkin 20 * @license http://www.php.net/license/3_0.txt PHP License 3.0 21 * @version 1.2.0b 89 * @copyright 2005, 2006 Alexander Valyalkin 90 * @license http://www.php.net/license/3_0.txt PHP License 3.0 91 * @link http://pear.php.net/package/Crypt_RSADataBaseAction.class.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 417 lines
1<?php 2// +---------------------------------------------------------------------- 2// +---------------------------------------------------------------------- 3// | ?????????? (Build on ThinkPHP) 4// +---------------------------------------------------------------------- 22 $this->assign("sql_list",$sql_list); 23 $this->assign("name",toDate(gmtTime(),'YmdHis')); 24 $this->display(); 29 $time = gmtTime(); 30 $name = empty($_REQUEST['sql_file_name']) ? toDate($time,'YmdHis') : $_REQUEST['sql_file_name']; 31 $tables = $this->getAllTable(); 93 $table_data = '$table_data = '.var_export($table_data, true).";"; 94 $db_table_file = $back_dir."tables.php"; 95 @file_put_contents($db_table_file,"<?php\n$table_data\n?>"); 384 'filetime'=>$table_data['time'], 385 'filedate'=>toDate($table_data['time']) 386 );Font.php https://PHPExcel.svn.codeplex.com/svn | PHP | 505 lines
29/** PHPExcel_Style_Color */ 30require_once 'PHPExcel/Style/Color.php'; 31 42 */ 43class PHPExcel_Style_Font implements PHPExcel_IComparable 44{ 136 $this->_striketrough = false; 137 $this->_color = new PHPExcel_Style_Color(PHPExcel_Style_Color::COLOR_BLACK); 138 } 158 * 159 * Returns the PHPExcel_Style_Font that is actual bound to PHPExcel_Style 160 * 175 * 176 * If no PHPExcel_Style_Font has been bound to PHPExcel_Style then bind this one. Return the actual bound one. 177 *users.php git://github.com/q2a/question2answer.git | PHP | 417 lines
1<?php 2/* 18 19 More about this license: http://www.question2answer.org/license.php 20*/ 52{ 53 require_once QA_INCLUDE_DIR . 'util/string.php'; 54 83{ 84 qa_db_query_sub('UPDATE ^posts SET lastuserid=NULL WHERE lastuserid=$', $userid); 85 qa_db_query_sub('DELETE FROM ^userpoints WHERE userid=$', $userid); 91 92 qa_db_query_sub('UPDATE ^posts SET userid=NULL WHERE userid=$', $userid); 93 qa_db_query_sub('DELETE FROM ^userlogins WHERE userid=$', $userid); 180 $columnRegex = '/^[A-Za-z0-9_]+$/'; // simple and secure way to ensure only valid fields are used 181 $sql = 'UPDATE ^users SET '; 182 foreach ($fields as $field => $fieldValue) {SiteNavigationMenuServiceSoap.java git://github.com/liferay/liferay-portal.git | Java | 397 lines
42 * The benefits of using the SOAP utility is that it is cross platform 43 * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and 44 * even Perl, to call the generated services. One drawback of SOAP is that it is 352 public static com.liferay.site.navigation.model.SiteNavigationMenuSoap 353 updateSiteNavigationMenu( 354 long siteNavigationMenuId, int type, boolean auto, 359 com.liferay.site.navigation.model.SiteNavigationMenu returnValue = 360 SiteNavigationMenuServiceUtil.updateSiteNavigationMenu( 361 siteNavigationMenuId, type, auto, serviceContext); 373 public static com.liferay.site.navigation.model.SiteNavigationMenuSoap 374 updateSiteNavigationMenu( 375 long siteNavigationMenuId, String name, 380 com.liferay.site.navigation.model.SiteNavigationMenu returnValue = 381 SiteNavigationMenuServiceUtil.updateSiteNavigationMenu( 382 siteNavigationMenuId, name, serviceContext);SectionCorp.php https://code.google.com/p/yapeal/ | PHP | 364 lines
1<?php 2/** 4 * 5 * PHP version 5 6 * 6 * 7 * LICENSE: This file is part of Yet Another Php Eve Api library also know 8 * as Yapeal which will be used to refer to it in the rest of this license. 41 $mess = basename(__FILE__) 42 . ' must be included it can not be ran directly.' . PHP_EOL; 43 if (PHP_SAPI != 'cli') { 64 /** 65 * Function called by Yapeal.php to start section pulling XML from servers. 66 * 100 }; 101 // Ok now that we have a list of corps we can check which APIs need updated. 102 foreach ($corpList as $crp) {pskc-schema.xsd git://git.savannah.nongnu.org/oath-toolkit.git | XML Schema | 308 lines
92) Make AlgorithmParameter a sequence not a choice. 10 <http://www.rfc-editor.org/errata_search.php?eid=2759> 11 80 <xs:sequence> 81 <xs:element name="StartDate" 82 type="xs:dateTime" minOccurs="0"/> 82 type="xs:dateTime" minOccurs="0"/> 83 <xs:element name="ExpiryDate" 84 type="xs:dateTime" minOccurs="0"/> 207 type="xs:string" minOccurs="0"/> 208 <xs:element name="StartDate" 209 type="xs:dateTime" minOccurs="0"/> 209 type="xs:dateTime" minOccurs="0"/> 210 <xs:element name="ExpiryDate" 211 type="xs:dateTime" minOccurs="0"/>ServicesBuilder.php https://hg.codeplex.com/bukuphpjs | PHP | 413 lines
18 * @package WindowsAzure\Common 19 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 20 * @copyright 2012 Microsoft Corporation 55 * @package WindowsAzure\Common 56 * @author Azure PHP SDK <azurephpsdk@microsoft.com> 57 * @copyright 2012 Microsoft Corporation 182 // Adding date filter 183 $dateFilter = new DateFilter(); 184 $queueWrapper = $queueWrapper->withFilter($dateFilter); 233 // Adding date filter 234 $dateFilter = new DateFilter(); 235 $blobWrapper = $blobWrapper->withFilter($dateFilter); 296 // Adding date filter 297 $dateFilter = new DateFilter(); 298 $tableWrapper = $tableWrapper->withFilter($dateFilter);UC_DBClass.php https://git01.codeplex.com/phpdbmanagement | PHP | 440 lines
4require_once '/CodeModel_Classes/PHPCodeProvider.php'; 5require_once '/PHPFileSystem_Classes/UC_PHPFileSystem.php'; 6require_once '/PHPFileSystem_Classes/UC_PHPTextStream.php'; 6require_once '/PHPFileSystem_Classes/UC_PHPTextStream.php'; 7require_once '/PHPFileSystem_Classes/UC_PHPIOMode.php'; 8 281 282 $update_query = "UPDATE $database_name.$table_name "; 283 $first_column = true; 296 { 297 $update_query .= ", " . $column->get_Name() . " = '" 298 . "{\$this->get_" . $column->get_Name() . "()}'"; 322 new AssignStatement( 323 new FieldReferenceExpression('update_statement', new ThisReferenceExpression()), 324 new DoubleQuotedStringExpression($update_query)));class_session.php http://malleo-cms.googlecode.com/svn/trunk/ | PHP | 344 lines
94 // La session n'existe pas en base alors on la crée 95 $sql = 'INSERT INTO '.TABLE_SESSIONS.' (id_session,user_id,date_lastvisite,user_ip) 96 VALUES (\''.$this->id_session.'\',1,\''.$this->time.'\',\''.$this->get_ip().'\')'; 119 $droits->charge_droits_user($user_id,true); // On force le chargement de ces droits ? chaque login 120 $sql = 'INSERT INTO '.TABLE_SESSIONS.' (id_session,user_id,date_lastvisite,user_ip) VALUES 121 (\''.$this->id_session.'\','.$user_id.','.$this->time.',\''.$this->ip.'\')'; 215 $sql = 'UPDATE '.TABLE_SESSIONS.' SET 216 date_lastvisite='.$this->time.', 217 pseudo=\''.$robot['robot_name'].'\' 228 // Maj de la date de dernier passage 229 $sql = 'UPDATE '.TABLE_SESSIONS.' SET date_lastvisite='.$this->time.' 230 WHERE id_session=\''.$this->id_session.'\''; 335 if ($this->info_user['user_id'] == 1 && $this->time%2){ 336 $sql = 'DELETE FROM '.TABLE_SESSIONS_SUIVIES.' WHERE date < '.($this->time-7862400); 337 if (!$resultat = $c->sql_query($sql))message_die(E_ERROR,34,__FILE__,__LINE__,$sql);pages.php https://code.google.com/p/osclass/ | PHP | 249 lines
1<?php if ( ! defined('ABS_PATH')) exit('ABS_PATH is not loaded. Direct access is not allowed.'); 2 54 $this->_exportVariableToView("page", $this->pageManager->findByPrimaryKey(Params::getParam("id"))); 55 $this->doView("pages/frm.php"); 56 break; 85 foreach($aFieldsDescription as $k => $_data) { 86 $this->pageManager->updateDescription($id, $k, $_data['s_title'], $_data['s_text']); 87 } 90 if(!$this->pageManager->isIndelible($id)) { 91 $this->pageManager->updateInternalName($id, $s_internal_name); 92 } 93 Session::newInstance()->_clearVariables(); 94 osc_add_flash_ok_message(_m('The page has been updated'), 'admin'); 95 $this->redirectTo(osc_admin_base_url(true)."?page=pages"); 98 } else { 99 osc_add_flash_error_message(_m("The page couldn't be updated, at least one title should not be empty"), 'admin') ; 100 }handlers.dev.js http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | JavaScript | 433 lines
68 else { 69 item.load('ajax/', {attachment_id:serverData, fetch:f}, function(){prepareMediaItemInit(fileObj);updateMediaForm()}); 70 } 113 jQuery.ajax({ 114 url: 'admin-ajax.php', 115 type: 'post', 131 jQuery.ajax({ 132 url: 'admin-ajax.php', 133 type: 'post', 217 218function updateMediaForm() { 219 var one = jQuery('form.type-form #media-items').children(), items = jQuery('#media-items').children(); 250 prepareMediaItem(fileObj, serverData); 251 updateMediaForm(); 252loader-disabled.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 438 lines
252 <input type="radio" name="media_views_itemCountEnable" type="text" <?php if ($bp->bpa->options['media_views_itemCountEnable'] == true ) : ?> 253 checked="checked"<?php endif; ?> value="1" /> <?php _e( 'Yes', "bp-media" ) ?> 254 <input type="radio" name="media_views_itemCountEnable" type="text" <?php if ($bp->bpa->options['media_views_itemCountEnable'] == false) : ?> 254 <input type="radio" name="media_views_itemCountEnable" type="text" <?php if ($bp->bpa->options['media_views_itemCountEnable'] == false) : ?> 255 checked="checked"<?php endif; ?> value="0" /> <?php _e( 'No', "bp-media" ) ?> 256 </td> 261 <input type="radio" name="media_views_itemCountEnable" type="text" <?php if ($bp->bpa->options['media_views_itemCountEnable'] == true ) : ?> 262 checked="checked"<?php endif; ?> value="1" /> <?php _e( 'Yes', "bp-media" ) ?> 263 <input type="radio" name="media_views_itemCountEnable" type="text" <?php if ($bp->bpa->options['media_views_itemCountEnable'] == false) : ?> 263 <input type="radio" name="media_views_itemCountEnable" type="text" <?php if ($bp->bpa->options['media_views_itemCountEnable'] == false) : ?> 264 checked="checked"<?php endif; ?> value="0" /> <?php _e( 'No', "bp-media" ) ?> 265 </td> 274 <tr> 275 <th scope="row"><?php _e( 'Cover image source', "bp-media" ) ?></th> 276 <td>class-forms-edit-email.php https://bitbucket.org/daniellbraun/wildernessatthesmokies.git | PHP | 355 lines
1<?php 2/** 83 ?> 84 <form method="post" id="vfbp-email-settings" action="" novalidate> 85 <input name="_vfbp_action" type="hidden" value="save-email-settings" /> 166 <td> 167 <input type="email" value="<?php esc_html_e( $from_email ); ?>" placeholder=""<?php echo $readonly; ?> class="regular-text required" id="from-email" name="settings[from-email]" maxlength="255" /> 168 <?php _e( 'or', 'vfb-pro' ); ?> 184 </select> 185 <p class="description"><?php printf( __( 'This option sets the "From" email and can only be customized if <a href="%s">SMTP settings</a> have been configured.', 'vfb-pro' ), esc_url( admin_url( 'admin.php?page=vfbp-settings' ) ) ); ?></p> 186 </td> 214 <input type="hidden" name="settings[send-attachments]" value="0" /> <!-- This sends an unchecked value to the meta table --> 215 <input type="checkbox" name="settings[send-attachments]" id="send-attachments" value="1"<?php checked( $send_attachments, 1 ); ?> /> <?php _e( "If File Uploads are present, include the uploaded files with the email.", 'vfb-pro' ); ?> 216 </label> 322 <input type="hidden" name="settings[notify-entry-copy]" value="0" /> <!-- This sends an unchecked value to the meta table --> 323 <input type="checkbox" name="settings[notify-entry-copy]" id="notify-entry-copy" value="1"<?php checked( $notify_entry_copy, 1 ); ?> /> <?php _e( "Include a Copy of the User's Entry", 'vfb-pro' ); ?> 324 </label>Web.hx https://code.google.com/p/hxjava/ | Haxe | 355 lines
1package php; 2 37 If you have in your URL the parameters [a[]=foo;a[]=hello;a[5]=bar;a[3]=baz] then 38 [php.Web.getParamValues("a")] will return [["foo","hello",null,"baz",null,"bar"]] 39 **/ 60 if (res.length == 0) { 61 var post:Hash<Dynamic> = Lib.hashOfAssociativeArray(untyped __php__("$_POST")); 62 var data = post.get(param); 199 public static inline function getParamsString() : String { 200 return untyped __php__("$_SERVER['QUERY_STRING']"); 201 } 253 public static function getAuthorization() : { user : String, pass : String } { 254 if(!untyped __php__("isset($_SERVER['PHP_AUTH_USER'])")) 255 return null; 255 return null; 256 return untyped {user: __php__("$_SERVER['PHP_AUTH_USER']"), pass: __php__("$_SERVER['PHP_AUTH_PW']")}; 257 }AdminCarriers.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 298 lines
1<?php 2 3/** 4 * Carriers tab for admin panel, AdminCarriers.php 5 * @category admin 8 * @copyright PrestaShop 9 * @license http://www.opensource.org/licenses/osl-3.0.php Open-source licence 3.0 10 * @version 1.3 13 14include_once(PS_ADMIN_DIR.'/../classes/AdminTab.php'); 15 198 /* Checking fields validity */ 199 $this->validateRules(); 200 if (!sizeof($this->_errors)) 203 204 /* Object update */ 205 if (isset($id) AND !empty($id))Workbook.php https://PHPExcel.svn.codeplex.com/svn | PHP | 355 lines
144 */ 145 private function _writeBookViews(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel = null) 146 { 174 */ 175 private function _writeWorkbookProtection(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel = null) 176 { 215 * @param PHPExcel_Shared_XMLWriter $objWriter XML Writer 216 * @param PHPExcel $pPHPExcel 217 * @throws Exception 218 */ 219 private function _writeSheets(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel = null) 220 { 266 */ 267 private function _writeDefinedNames(PHPExcel_Shared_XMLWriter $objWriter = null, PHPExcel $pPHPExcel = null) 268 {fsource_PHPExcel_Shared__PHPExcelSharedPasswordHasher.php.html https://PHPExcel.svn.codeplex.com/svn | HTML | 124 lines
26 <b>Packages:</b><br /> 27 <a href="../li_PHPExcel.html">PHPExcel</a><br /> 28 <a href="../li_PHPExcel_Cell.html">PHPExcel_Cell</a><br /> 33 <a href="../li_PHPExcel_Worksheet_Drawing.html">PHPExcel_Worksheet_Drawing</a><br /> 34 <a href="../li_PHPExcel_Writer.html">PHPExcel_Writer</a><br /> 35 <a href="../li_PHPExcel_Writer_Excel2007.html">PHPExcel_Writer_Excel2007</a><br /> 42<h1 align="center">Source for file PasswordHasher.php</h1> 43<p>Documentation is available at <a href="../PHPExcel_Shared/_Classes_PHPExcel_Shared_PasswordHasher_php.html">PasswordHasher.php</a></p> 44<div class="php"> 44<div class="php"> 45<div class="listing"><pre><ol><li><a name="a1"></a><span class="src-php"><?php</span></li> 46<li><a name="a2"></a><span class="src-doc">/**</span></li> 79<li><a name="a35"></a><span class="src-doc"> */</span></li> 80<li><a name="a36"></a><span class="src-key">class </span><a href="../PHPExcel_Shared/PHPExcel_Shared_PasswordHasher.html">PHPExcel_Shared_PasswordHasher</a></li> 81<li><a name="a37"></a><span class="src-sym">{</span></li>beamer_display.class.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 210 lines
1<?php 2 15 $dsp->NewContent( t('Beamerübersicht') ,""); 16 $dsp->AddSingleRow('<br/>'.t('Mit diesem Modul kannst du Texte und anderen Daten für eine Beamerpräsentation aufbereiten.').'<br/><br/>'. 17 t('Aktive Inhalte: ').$beamermodul->countContent("1").'<br/>'. 19 '<p />' ); 20 $dsp->AddSingleRow('<br />' . t('Das Modul arbeitet derzeit nur mit dem Template /\'/simple/\'/ und /\'/beamer/\'/ zusammen. Für eine schnelle Lösung erstelle einen zusätzlichen Account der das Beamer-Template verwendet. Damit hast du die besten Ergebnisse im Fullscreen Mode. <p/>Damit es mit jedem anderen Template funktioniert, musst du in deinem Template im Bereich der Meta-Angaben folgende Codezeilen hinzufügen:<p/> if( $_GET[/\'/sitereload/\'/] ) { echo ... (Restlichen Anweisungsblock bitte as der Design-index.php entnehmen.) } ') ); 21 $dsp->AddSingleRow("<br />"); 47 function formatBStatus ( $var, $bcid , $beamerid ) { 48 if ( $var == "1" ) { return '<a href="index.php?mod=beamer&action=togglebeameractive&bcid='.$bcid.'&beamerid='.$beamerid.'"><img src="design/images/icon_active_sm.png" alt="Aktiv" border="0"></a>'; } 49 if ( $var == "0" ) { return '<a href="index.php?mod=beamer&action=togglebeameractive&bcid='.$bcid.'&beamerid='.$beamerid.'"><img src="design/images/icon_deactive_sm.png" alt="Deaktiv" border="0"></a>'; } 58 function formatActiveStatus ( $var, $var2 ) { 59 if ( $var == "1" ) { return '<a href="index.php?mod=beamer&action=toggleactive&bcid='.$var2.'"><img src="design/images/icon_active.png" alt="Aktiv" border="0"></a>'; } 60 if ( $var == "0" ) { return '<a href="index.php?mod=beamer&action=toggleactive&bcid='.$var2.'"><img src="design/images/icon_deactive.png" alt="Deaktiv" border="0"></a>'; } 63 $dsp->NewContent( t('Auflistung der Inhalte') ); 64 $dsp->AddSingleRow("<br/><div align=\"middle\">". $dsp->FetchCssButton( t('Inhalte hinzufügen') ,'index.php?mod=beamer&action=newcontent','Ein neues Inhaltselement hinzufügen.'."</div>")); 65_md5_8php_source.html http://openbiz-cubi.googlecode.com/svn/trunk/ | HTML | 132 lines
28 <div class="headertitle"> 29<h1>E:/E/GEAMP/www/openbiz/openbiz/others/Zend/Validate/File/Md5.php</h1> </div> 30</div> 32<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <?php 33<a name="l00025"></a>00025 require_once <span class="stringliteral">'Zend/Validate/File/Hash.php'</span>; 34<a name="l00026"></a>00026 34<a name="l00026"></a>00026 35<a name="l00035"></a><a class="code" href="class_zend___validate___file___md5.html">00035</a> <span class="keyword">class </span><a class="code" href="class_zend___validate___file___md5.html">Zend_Validate_File_Md5</a> <span class="keyword">extends</span> <a class="code" href="class_zend___validate___file___hash.html">Zend_Validate_File_Hash</a> 36<a name="l00036"></a>00036 { 67<a name="l00091"></a>00091 68<a name="l00099"></a><a class="code" href="class_zend___validate___file___md5.html#aecfcd4fe8f68562a6212602be8f185ad">00099</a> <span class="keyword">public</span> function <a class="code" href="class_zend___validate___file___md5.html#aecfcd4fe8f68562a6212602be8f185ad">setHash</a>($options) 69<a name="l00100"></a>00100 { 78<a name="l00109"></a>00109 79<a name="l00116"></a><a class="code" href="class_zend___validate___file___md5.html#a838c699d63acedd05f69035892db10fd">00116</a> <span class="keyword">public</span> function <a class="code" href="class_zend___validate___file___md5.html#a838c699d63acedd05f69035892db10fd">setMd5</a>($options) 80<a name="l00117"></a>00117 {StashCreateCommandTest.java git://pkgs.fedoraproject.org/eclipse-jgit | Java | 421 lines
7 * accompanies this distribution, is reproduced below, and is 8 * available at http://www.eclipse.org/org/documents/edl-v10.php 9 * 97 */ 98 private void validateStashedCommit(final RevCommit commit) 99 throws IOException { 167 assertEquals("content", read(committedFile)); 168 validateStashedCommit(stashed); 169 185 assertFalse(addedFile.exists()); 186 validateStashedCommit(stashed); 187 202 assertEquals("content", read(committedFile)); 203 validateStashedCommit(stashed); 204exclusions.cpp http://windowpicker.googlecode.com/svn/trunk/ | C++ | 331 lines
20 21 g_phPages[PAGE_EXCLUSIONS] = hwnd; 22 55 56BOOL UpdateExclItem(HWND hwndLV, int nItem) { 57 134 135 UpdateExclItem(hwndLV, nItem); 136 164 CopyMemory((PVOID)&_vExclList[sel], &tse, sizeof(TSEXCLUSION)); 165 UpdateExclItem(hwndLV, sel); 166 ListView_SetItemState(hwndLV, sel, LVIS_SELECTED, LVIS_SELECTED);CommentList.php https://bitbucket.org/thomas1151/mats.git | PHP | 308 lines
1<?php namespace ProcessWire; 2 50 'commentHeader' => '', // 'Posted by {cite} on {created} {stars}', 51 'dateFormat' => '', // 'm/d/y g:ia', 52 'encoding' => 'UTF-8', 78 if(empty($options['commentHeader'])) { 79 if(empty($options['dateFormat'])) { 80 $this->options['dateFormat'] = 'relative'; 84 if(empty($options['dateFormat'])) { 85 $this->options['dateFormat'] = $this->_('%b %e, %Y %l:%M %p'); // Date format in either PHP strftime() or PHP date() format // Example 1 (strftime): %b %e, %Y %l:%M %p = Feb 27, 2012 1:21 PM. Example 2 (date): m/d/y g:ia = 02/27/12 1:21pm. 86 } 172 if($website) $cite = "<a href='$website' rel='nofollow' target='_blank'>$cite</a>"; 173 $created = wireDate($this->options['dateFormat'], $comment->created); 174 292 293 require_once(dirname(__FILE__) . '/CommentNotifications.php'); 294 $no = $this->wire(new CommentNotifications($this->page, $this->field));SigninVc.swift https://bitbucket.org/alexmad327/c00peeps.git | Swift | 335 lines
44 45 self.updateViewAccordingToTheme() 46 51 52 // MARK: - Update View According To Selected Theme 53 func updateViewAccordingToTheme() { 87 ApplicationDelegate.showLoader(loaderTitle_FetchingProfile) 88 FBSDKGraphRequest(graphPath: "me", parameters: ["fields": "id, name, email"]).start(completionHandler: { (connection, result, error) -> Void in 89 ApplicationDelegate.hideLoader()autoptimize.php https://bitbucket.org/viruscommdev/jboivinavocat.git | PHP | 333 lines
69 // updating, include the update-code 70 include(AUTOPTIMIZE_PLUGIN_DIR.'classlesses/autoptimizeUpdateCode.php'); 71 } 185 if (defined('AUTOPTIMIZE_LEGACY_MINIFIERS')) { 186 @include(AUTOPTIMIZE_PLUGIN_DIR.'classes/external/php/jsmin-1.1.1.php'); 187 } else { 187 } else { 188 @include(AUTOPTIMIZE_PLUGIN_DIR.'classes/external/php/minify-2.3.1-jsmin.php'); 189 } 202 if (!class_exists('Minify_CSS_Compressor')) { 203 @include(AUTOPTIMIZE_PLUGIN_DIR.'classes/external/php/minify-css-compressor.php'); 204 } 206 if (!class_exists('CSSmin')) { 207 @include(AUTOPTIMIZE_PLUGIN_DIR.'classes/external/php/yui-php-cssmin-2.4.8-4_fgo.php'); 208 }BaseTest.php git://github.com/maintainable/framework.git | PHP | 325 lines
44 $expected = array('approved', 'company_id', 'created_at', 'created_on', 45 'first_name', 'id', 'name', 'updated_at', 'updated_on'); 46 $this->assertEquals($expected, $attrNames); 57 $expected = array('approved', 'company_id', 'created_at', 'created_on', 58 'id', 'name', 'updated_at', 'updated_on'); 59 $this->assertEquals($expected, $attrNames); 70 $expected = array('approved', 'company_id', 'created_at', 'created_on', 71 'id', 'updated_at', 'updated_on'); 72 $this->assertEquals($expected, $attrNames); 187 'id' => '1', 188 'title' => 'Easier XML-RPC for PHP5', 189 'user_id' => '1', 198 'updated_at' => '2008-01-01 12:20:00', 199 'updated_on' => '2008-01-01' 200 )Tableselect.php git://github.com/drupal/drupal.git | PHP | 287 lines
1<?php 2 244 if (!empty($element['#options'][$key]['title']['data']['#title'])) { 245 $title = new TranslatableMarkup('Update @title', [ 246 '@title' => $element['#options'][$key]['title']['data']['#title'],SYLK.php https://PHPExcel.svn.codeplex.com/svn | PHP | 507 lines
37/** PHPExcel */ 38require_once PHPEXCEL_ROOT . 'PHPExcel.php'; 39 40/** PHPExcel_Reader_IReader */ 41require_once PHPEXCEL_ROOT . 'PHPExcel/Reader/IReader.php'; 42 43/** PHPExcel_Worksheet */ 44require_once PHPEXCEL_ROOT . 'PHPExcel/Worksheet.php'; 45 46/** PHPExcel_Cell */ 47require_once PHPEXCEL_ROOT . 'PHPExcel/Cell.php'; 48 52 /** PHPExcel_Reader_DefaultReadFilter */ 53require_once PHPEXCEL_ROOT . 'PHPExcel/Reader/DefaultReadFilter.php'; 54user.php git://pkgs.fedoraproject.org/virtuoso-opensource | PHP | 387 lines
1<?php 2# 9# under the terms of the GNU General Public License as published by the 10# Free Software Foundation; only version 2 of the License, dated June 1991. 11# 22?> 23<?php 24 37// Set some global config variables about your system. 38$user_can_update_password = true; 39$admin_can_add_user = true; 211 212// Update a user 213// params: 218// $admin - is admin? 219function user_update_user ( $user, $firstname, $lastname, $email, $admin ) { 220 global $error;jqplot.donutRenderer.min.js git://github.com/webasyst/webasyst-framework.git | JavaScript | 34 lines
3 * jqPlot is currently available for use in all personal or commercial projects 4 * under both the MIT (http://www.opensource.org/licenses/mit-license.php) and GPL 5 * version 2.0 (http://www.gnu.org/licenses/gpl-2.0.html) licenses. This means that you can 9 * know of any substantial use of jqPlot. You can reach the author at: 10 * chris at jqplot or see http://www.jqplot.com/info.php . 11 * 12 * If you are feeling kind and generous, consider supporting the project by 13 * making a donation at: http://www.jqplot.com/donate.php . 14 * 14 * 15 * jqPlot includes date instance methods and printf/sprintf functions by other authors: 16 * 16 * 17 * Date instance methods contained in jqplot.dateMethods.js: 18 *LoginController.php http://sharebooks.googlecode.com/svn/trunk/ | PHP | 412 lines
1<?php 2 41 42 if (User::validateLoginByOneClick($rid, $salt_value, $id)) 43 { 54 55 $error_captcha = Utils::validateCaptcha(TVC_Request::get('captcha')); 56 if($error_captcha) 202 { 203 if($user->validateInputRegister()) 204 { 260 { 261 //validate email 262 if($email == "") 270 271 $error_captcha = Utils::validateCaptcha($captcha); 272class.baseobject.php https://code.google.com/p/movabletype/ | PHP | 388 lines
1<?php 2# Movable Type (r) Open Source (C) 2001-2010 Six Apart, Ltd. 5# 6# $Id: class.baseobject.php 5325 2010-02-23 10:44:56Z takayama $ 7 10 */ 11require_once('adodb.inc.php'); 12require_once('adodb-active-record.inc.php'); 12require_once('adodb-active-record.inc.php'); 13require_once('adodb-exceptions.inc.php'); 14 52 'follow_auth_links' => 'vinteger', 53 'update_pings' => 'vchar', 54 'captcha_provider' => 'vchar', 66 'vchar_idx', 67 'vdatetime', 68 'vdatetime_idx',messages.php git://github.com/ushahidi/Ushahidi_Web.git | PHP | 407 lines
1<?php defined('SYSPATH') or die('No direct script access.'); 2/** 4 * 5 * PHP version 5 6 * LICENSE: This source file is subject to LGPL license 119 // Test to see if things passed the rule checks 120 if ($post->validate()) 121 { 139 { 140 // Update Message Level 141 $message = ORM::factory('message')->find($item); 156 { 157 // Update Message Level 158 $message = ORM::factory('message')->find($item); 342 $message->reporter_id = $reply_to->reporter_id; 343 $message->message_date = date("Y-m-d H:i:s",time()); 344 $message->save();dataform.php http://rapyd-framework.googlecode.com/svn/trunk/ | PHP | 476 lines
1<?php 2 128 * set css style 129 * @todo search online for a better way to work with html/css for example using a dom-api like phpquery 130 * @param string $style 203 * <code> 204 * $edit->pre_process(array('update'), array($this, 'some_method')); 205 * .. 303 { 304 $this->action = ($this->status == "modify") ? "update" : "insert"; 305 } 366 { 367 case "update": 368 case "insert": 384 $field->action = $this->action; 385 $result = $field->auto_update(); 386 if (!$result)mostlyce.php http://miacms.googlecode.com/svn/trunk/ | PHP | 336 lines
126 } 127 //DateTime Plugin 128 if ($editor_plugin_datetime_acl==='true') { 128 if ($editor_plugin_datetime_acl==='true') { 129 $plugins[] = 'insertdatetime'; 130 } 172 Notes: 173 * The TinyMCE PHP gzip compressor cannot and will not work if zlib compression is already enabled on the server. 174 * If they requested editor compression run the checks otherwise don't waste the cycles 244 document_base_url : "$mosConfig_live_site/", 245 plugin_insertdate_dateFormat : "$editor_plugin_dateformat", 246 plugin_insertdate_timeFormat : "$editor_plugin_timeformat", 260 function fileBrowserCallBack(field_name, url, type, win) { 261 var connector = "$jspath/mambots/editors/mostlyce/jscripts/tiny_mce/filemanager/browser.php?Connector=connectors/php/connector.php"; 262 var enableAutoTypeSelection = false;currency.php http://coderstalk.googlecode.com/svn/trunk/ | PHP | 460 lines
1<?php 2class ControllerLocalisationCurrency extends Controller { 21 22 if (($this->request->server['REQUEST_METHOD'] == 'POST') && $this->validateForm()) { 23 $this->model_localisation_currency->addCurrency($this->request->post); 46 47 public function update() { 48 $this->load->language('localisation/currency'); 188 'value' => $result['value'], 189 'date_modified' => date($this->language->get('date_format_short'), strtotime($result['date_modified'])), 190 'selected' => isset($this->request->post['selected']) && in_array($result['currency_id'], $this->request->post['selected']), 201 $this->data['column_value'] = $this->language->get('column_value'); 202 $this->data['column_date_modified'] = $this->language->get('column_date_modified'); 203 $this->data['column_action'] = $this->language->get('column_action'); 236 $this->data['sort_value'] = $this->url->https('localisation/currency&sort=value' . $url); 237 $this->data['sort_date_modified'] = $this->url->https('localisation/currency&sort=date_modified' . $url); 238