100+ results results for 'php join' (263 ms)
7 ./anExpansionKind.h \ 8 ./UmlBaseJoinPseudoState.h \ 9 ./UmlSettings.h \ 38 ./UmlOperation.h \ 39 ./UmlJoinPseudoState.h \ 40 ./UmlBaseItem.h \ 73 ./StateBehavior.h \ 74 ./PhpSettings.h \ 75 ./UmlFlow.h \ 105 ./ClassGlobalCmd.h \ 106 ./PhpSettingsCmd.h \ 107 ./UmlUseCaseView.h \ 176 ./anExpansionKind.cpp \ 177 ./UmlBaseJoinPseudoState.cpp \ 178 ./UmlSettings.cpp \AdminCarts.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 286 lines
1<?php 2 3/** 4 * Customers tab for admin panel, AdminContacts.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 28 $this->_select = 'CONCAT(LEFT(c.`firstname`, 1), \'. \', c.`lastname`) AS `customer`, a.id_cart as total, ca.name as carrier'; 29 $this->_join = 'LEFT JOIN '._DB_PREFIX_.'customer c on (c.id_customer = a.id_customer) 30 LEFT JOIN '._DB_PREFIX_.'currency cu on (cu.id_currency = a.id_currency) 30 LEFT JOIN '._DB_PREFIX_.'currency cu on (cu.id_currency = a.id_currency) 31 LEFT JOIN '._DB_PREFIX_.'carrier ca on (ca.id_carrier = a.id_carrier) 32 ';query_builder.php http://hppg.googlecode.com/svn/trunk/ | PHP | 303 lines
1<?php 2/** 158 * If there is only one search field, it just processes the prefix. In case 159 * there are multiple fields they are joined together with OR, unless the 160 * whole clause is negated. In that case they're joined by AND.MessageController.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(); 84 ->setIntegrityCheck(false) 85 ->join(array('su' => 'memberinfor'), "su.UserID=SendID", array('SUsername' => 'su.Username')) 86 ->join(array('ru' => 'memberinfor'), "ru.UserID=ReceiveID", array('RUsername' => 'ru.Username')) 140 ->setIntegrityCheck(false) 141 ->join(array('su' => 'memberinfor'), "su.UserID=SendID", array('SUsername' => 'su.Username')) 142 ->join(array('ru' => 'memberinfor'), "ru.UserID=ReceiveID", array('RUsername' => 'ru.Username')) 147 ->setIntegrityCheck(false) 148 ->join(array('su' => 'memberinfor'), "su.UserID=SendID", array('SUsername' => 'su.Username')) 149 ->join(array('ru' => 'memberinfor'), "ru.UserID=ReceiveID", array('RUsername' => 'ru.Username')) 154 ->setIntegrityCheck(false) 155 ->join(array('su' => 'memberinfor'), "su.UserID=SendID", array('SUsername' => 'su.Username')) 156 ->join(array('ru' => 'memberinfor'), "ru.UserID=ReceiveID", array('RUsername' => 'ru.Username'))paperclip.rb git://github.com/stevenbristol/lovd-by-less.git | Ruby | 244 lines
8# Copyright:: Copyright (c) 2008 thoughtbot, inc. 9# License:: MIT License (http://www.opensource.org/licenses/mit-license.php) 10# 56 path = [options[:image_magick_path], command].compact 57 File.join(*path) 58 end 95 # geometry strings at the ImageMagick website 96 # (http://www.imagemagick.org/script/command-line-options.php#resize). Paperclip 97 # also adds the "#" option (e.g. "50x50#"), which will resize the image to fit maximallybase.item.items.class.php http://php-ppcms.googlecode.com/svn/trunk/ | PHP | 449 lines
116 if( is_array($this->joins) ) { 117 foreach($this->joins as $jk => $join) { 118 if( isset($join['fields']) ) { 144 if( $this->table_join != '' ) { 145 $query .= " left join " . $this->table_join . " b " . " on a." . $this->join_key . " = b." . $this->table_join_key . " "; 146 if( is_array($this->table_join_params) ) { 153 foreach($this->joins as $jk => $join) { 154 $query .= " left join " . $join['table'] . " tj" . $jk . " on a." . $this->prefix . $join['fkey'] . " = tj" . $jk . "." . $join['key'] . " "; 155 if( $join['params'] != '' ) { 192 if( $this->table_join != '' ) { 193 $query .= " left join " . $this->table_join . " b " . " on a." . $this->join_key . " = b." . $this->table_join_key . " "; 194 if( is_array($this->table_join_params) ) { 201 foreach($this->joins as $jk => $join) { 202 $query .= " left join " . $join['table'] . " tj" . $jk . " on a." . $this->prefix . $join['fkey'] . " = tj" . $jk . "." . $join['key'] . " "; 203 if( $join['params'] != '' ) {template_util.py git://pkgs.fedoraproject.org/python-kid | Python | 282 lines
8__copyright__ = "Copyright 2004-2005, Ryan Tomayko" 9__license__ = "MIT <http://www.opensource.org/licenses/mit-license.php>" 10 46 ls.append('%s=self.%s' % (var, var)) 47 return ';'.join(ls) 48 116 # reraise the original problem when we tried to evaluate the thing 117 errors = '\n'.join(filter(bool, errors)) or arg 118 raise TemplateNotFound, errors 169 if text: 170 return ''.join(text) 171 else: 173 elif hasattr(attrib, '__iter__'): 174 # if we get any other iterable, join the strings together: 175 text = []select.php git://github.com/fuel/core.git | PHP | 524 lines
33 /** 34 * @var array $_join join objects 35 */ 53 /** 54 * @var Database_Query_Builder_Join $_last_join last join statement 55 */ 146 { 147 $this->_join[] = $this->_last_join = new \Database_Query_Builder_Join($table, $type); 148 162 { 163 $this->_last_join->on($c1, $op, $c2); 164 459 // Add tables to join 460 $query .= ' '.$this->_compile_join($db, $this->_join); 461 }commands.html git://github.com/tinymce/tinymce.git | HTML | 168 lines
50 log: function() { 51 tinymce.$('<div></div>').text(tinymce.grep(arguments).join(' ')).appendTo(document.body); 52 } 68<body> 69<form method="post" action="http://www.tinymce.com/dump.php?example=true"> 70 <textarea id="elm1" name="elm1" rows="15" cols="80" style="width: 80%">const.py.in git://pkgs.fedoraproject.org/gramps | Autoconf | 304 lines
56URL_MAILINGLIST = "http://sourceforge.net/mail/?group_id=25770" 57URL_BUGTRACKER = "http://bugs.gramps-project.org/bug_report_advanced_page.php" 58URL_WIKISTRING = "http://gramps-project.org/wiki/index.php?title=" 85 PREFIXDIR = sys.prefix 86 SYSCONFDIR = os.path.join(sys.prefix, "etc") 87elif sys.platform == "darwin" and sys.prefix != sys.exec_prefix: 88 PREFIXDIR = sys.prefix 89 SYSCONFDIR = os.path.join(sys.prefix, "etc") 90else: 113 USER_HOME = os.environ['GRAMPSHOME'] 114 HOME_DIR = os.path.join(USER_HOME, 'gramps') 115elif os.environ.has_key('USERPROFILE'): 117 if os.environ.has_key('APPDATA'): 118 HOME_DIR = os.path.join(os.environ['APPDATA'], 'gramps') 119 else:Notification.php https://bitbucket.org/zurmo/zurmo/ | PHP | 247 lines
1<?php 2 /********************************************************************************* 101 $searchAttributeData['structure'] = '1 and 2'; 102 $joinTablesAdapter = new RedBeanModelJoinTablesQueryAdapter('Notification'); 103 $where = RedBeanModelDataProvider::makeWhere('Notification', $searchAttributeData, $joinTablesAdapter); 103 $where = RedBeanModelDataProvider::makeWhere('Notification', $searchAttributeData, $joinTablesAdapter); 104 $models = self::getSubset($joinTablesAdapter, null, null, $where, null); 105 return $models; 125 $searchAttributeData['structure'] = '1'; 126 $joinTablesAdapter = new RedBeanModelJoinTablesQueryAdapter('Notification'); 127 $where = RedBeanModelDataProvider::makeWhere('Notification', $searchAttributeData, $joinTablesAdapter); 127 $where = RedBeanModelDataProvider::makeWhere('Notification', $searchAttributeData, $joinTablesAdapter); 128 $models = self::getSubset($joinTablesAdapter, null, null, $where, null); 129 return $models; 185 $searchAttributeData['structure'] = '1'; 186 $joinTablesAdapter = new RedBeanModelJoinTablesQueryAdapter('Notification'); 187 $where = RedBeanModelDataProvider::makeWhere('Notification', $searchAttributeData, $joinTablesAdapter);overrides.php git://github.com/moodle/moodle.git | PHP | 337 lines
28require_once($CFG->dirroot.'/mod/lesson/locallib.php'); 29require_once($CFG->dirroot.'/mod/lesson/override_form.php'); 30 60 61$url = new moodle_url('/mod/lesson/overrides.php', array('cmid' => $cm->id, 'mode' => $mode)); 62 143 144$userurl = new moodle_url('/user/view.php', array()); 145$groupurl = new moodle_url('/group/overview.php', array('id' => $cm->course)); 305 } else if ($groups) { 306 $enrolledjoin = get_enrolled_join($context, 'u.id'); 307 list($ingroupsql, $ingroupparams) = $DB->get_in_or_equal(array_keys($groups), SQL_PARAMS_NAMED); 311 JOIN {groups_members} gm ON gm.userid = u.id 312 {$enrolledjoin->joins} 313 WHERE gm.groupid $ingroupsqlclass.GalaxyRows.php http://2moons.googlecode.com/svn/trunk/ | PHP | 295 lines
1<?php 2 24 * @version 1.7.1 (2013-01-18) 25 * @info $Id: class.GalaxyRows.php 2604 2013-01-18 11:35:42Z slaver7 $ 26 * @link http://2moons.cc/ 28 29require_once(ROOT_PATH . 'includes/classes/class.FleetFunctions.php'); 30require_once(ROOT_PATH . 'includes/pages/game/class.ShowPhalanxPage.php'); 68 FROM ".PLANETS." p 69 LEFT JOIN ".USERS." u ON p.id_owner = u.id 70 LEFT JOIN ".PLANETS." m ON m.id = p.id_luna 70 LEFT JOIN ".PLANETS." m ON m.id = p.id_luna 71 LEFT JOIN ".STATPOINTS." s ON s.id_owner = u.id AND s.stat_type = '1' 72 LEFT JOIN ".ALLIANCE." a ON a.id = u.ally_id 72 LEFT JOIN ".ALLIANCE." a ON a.id = u.ally_id 73 LEFT JOIN ".DIPLO." as d ON (d.owner_1 = ".$USER['ally_id']." AND d.owner_2 = a.id) OR (d.owner_1 = a.id AND d.owner_2 = ".$USER['ally_id'].") AND d.accept = 1 74 LEFT JOIN ".STATPOINTS." allys ON allys.stat_type = '2' AND allys.id_owner = a.idmain.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 404 lines
31 32// line 201 in phpfreechatconfig.class.php 33$GLOBALS["i18n"]["%s not found, %s library can't be found."] = "%s niet gevonden, %s bestand niet gevonden."; 46 47// line 452 in phpfreechat.class.php 48$GLOBALS["i18n"]["%s quit"] = "%s stop"; 70 71// line 439 in phpfreechatconfig.class.php 72$GLOBALS["i18n"]["%s must be a directory"] = "%s moet een directory zijn"; 73 74// line 446 in phpfreechatconfig.class.php 75$GLOBALS["i18n"]["%s can't be created"] = "%s kan niet worden gemaakt"; 89// line 23 in chat.html.tpl.php 90$GLOBALS["i18n"]["PHP FREE CHAT [powered by phpFreeChat-%s]"] = "PHP FREE CHAT [powered by phpFreeChat-%s]"; 91main.php https://bitbucket.org/chamilo/chamilo-dev/ | PHP | 407 lines
31 32// line 201 in phpfreechatconfig.class.php 33$GLOBALS["i18n"]["%s not found, %s library can't be found."] = "%s not found, %s library can't be found."; 46 47// line 452 in phpfreechat.class.php 48$GLOBALS["i18n"]["%s quit"] = "%s quit"; 70 71// line 439 in phpfreechatconfig.class.php 72$GLOBALS["i18n"]["%s must be a directory"] = "%s must be a directory"; 73 74// line 446 in phpfreechatconfig.class.php 75$GLOBALS["i18n"]["%s can't be created"] = "%s can't be created"; 89// line 23 in chat.html.tpl.php 90$GLOBALS["i18n"]["PHP FREE CHAT [powered by phpFreeChat-%s]"] = "PHP FREE CHAT [powered by phpFreeChat-%s]"; 91convert-ly.py git://git.savannah.gnu.org/lilypond.git | Python | 391 lines
79''' % ( _ ('Copyright (c) %s by') % '2001--2014', 80 ' '.join (authors), 81 _ ('Distributed under terms of the GNU General Public License.'), 157 _ ("Report bugs via %s") 158 % 'http://post.gmane.org/post.php' 159 '?group=gmane.comp.gnu.lilypond.bugs') + '\n') 166def tup_to_str (t): 167 return '.'.join (['%s' % x for x in t]) 168 280 if len (from_version) != 3: 281 raise InvalidVersion (".".join ([str(n) for n in from_version])) 282blocks.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 251 lines
1<?php 2 16{ 17 $select_options[NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=blocks&selectthemes=" . $themes_i] = $themes_i; 18} 108 { 109 $result_func = $db->sql_query( "SELECT a.func_id, a.in_module, a.func_custom_name FROM `" . NV_MODFUNCS_TABLE . "` AS a INNER JOIN `" . NV_BLOCKS_TABLE . "_weight` AS b ON a.func_id=b.func_id WHERE b.bid=" . $row['bid'] . "" ); 110 while ( list( $funcid_inlist, $func_inmodule, $funcname_inlist ) = $db->sql_fetchrow( $result_func ) ) 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,_jquery.colorbox-min.js git://github.com/ushahidi/Ushahidi_Web.git | JavaScript | 4 lines
2// Copyright (c) 2011 Jack Moore - jack@colorpowered.com 3// Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php 4(function(a,b,c){function bc(b){if(!U){P=b,_(),y=a(P),Q=0,K.rel!=="nofollow"&&(y=a("."+g).filter(function(){var b=a.data(this,e).rel||this.rel;return b===K.rel}),Q=y.index(P),Q===-1&&(y=y.add(P),Q=y.length-1));if(!S){S=T=!0,r.show();if(K.returnFocus)try{P.blur(),a(P).one(l,function(){try{this.focus()}catch(a){}})}catch(c){}q.css({opacity:+K.opacity,cursor:K.overlayClose?"pointer":"auto"}).show(),K.w=Z(K.initialWidth,"x"),K.h=Z(K.initialHeight,"y"),X.position(),o&&z.bind("resize."+p+" scroll."+p,function(){q.css({width:z.width(),height:z.height(),top:z.scrollTop(),left:z.scrollLeft()})}).trigger("resize."+p),ba(h,K.onOpen),J.add(D).hide(),I.html(K.close).show()}X.load(!0)}}function bb(){var a,b=f+"Slideshow_",c="click."+f,d,e,g;K.slideshow&&y[1]?(d=function(){F.text(K.slideshowStop).unbind(c).bind(j,function(){if(Q<y.length-1||K.loop)a=setTimeout(X.next,K.slideshowSpeed)}).bind(i,function(){clearTimeout(a)}).one(c+" "+k,e),r.removeClass(b+"off").addClass(b+"on"),a=setTimeout(X.next,K.slideshowSpeed)},e=function(){clearTimeout(a),F.text(K.slideshowStart).unbind([j,i,k,c].join(" ")).one(c,d),r.removeClass(b+"on").addClass(b+"off")},K.slideshowAuto?d():e()):r.removeClass(b+"off "+b+"on")}function ba(b,c){c&&c.call(P),a.event.trigger(b)}function _(b){K=a.extend({},a.data(P,e));for(b in K)a.isFunction(K[b])&&b.substring(0,2)!=="on"&&(K[b]=K[b].call(P));K.rel=K.rel||P.rel||"nofollow",K.href=K.href||a(P).attr("href"),K.title=K.title||P.title,typeof K.href=="string"&&(K.href=a.trim(K.href))}function $(a){return K.photo||/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i.test(a)}function Z(a,b){return Math.round((/%/.test(a)?(b==="x"?z.width():z.height())/100:1)*parseInt(a,10))}function Y(c,d,e){e=b.createElement("div"),c&&(e.id=f+c),e.style.cssText=d||"";return a(e)}var d={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:!1,returnFocus:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:!1},e="colorbox",f="cbox",g=f+"Element",h=f+"_open",i=f+"_load",j=f+"_complete",k=f+"_cleanup",l=f+"_closed",m=f+"_purge",n=a.browser.msie&&!a.support.opacity,o=n&&a.browser.version<7,p=f+"_IE6",q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X;X=a.fn[e]=a[e]=function(b,c){var f=this;b=b||{};if(!f[0]){if(f.selector)return f;f=a("<a/>"),b.open=!0}c&&(b.onComplete=c),f.each(function(){a.data(this,e,a.extend({},a.data(this,e)||d,b)),a(this).addClass(g)}),(a.isFunction(b.open)&&b.open.call(f)||b.open)&&bc(f[0]);return f},X.init=function(){z=a(c),r=Y().attr({id:e,"class":n?f+(o?"IE6":"IE"):""}),q=Y("Overlay",o?"position:absolute":"").hide(),s=Y("Wrapper"),t=Y("Content").append(A=Y("LoadedContent","width:0; height:0; overflow:hidden"),C=Y("LoadingOverlay").add(Y("LoadingGraphic")),D=Y("Title"),E=Y("Current"),G=Y("Next"),H=Y("Previous"),F=Y("Slideshow").bind(h,bb),I=Y("Close")),s.append(Y().append(Y("TopLeft"),u=Y("TopCenter"),Y("TopRight")),Y(!1,"clear:left").append(v=Y("MiddleLeft"),t,w=Y("MiddleRight")),Y(!1,"clear:left").append(Y("BottomLeft"),x=Y("BottomCenter"),Y("BottomRight"))).children().children().css({"float":"left"}),B=Y(!1,"position:absolute; width:9999px; visibility:hidden; display:none"),a("body").prepend(q,r.append(s,B)),t.children().hover(function(){a(this).addClass("hover")},function(){a(this).removeClass("hover")}).addClass("hover"),L=u.height()+x.height()+t.outerHeight(!0)-t.height(),M=v.width()+w.width()+t.outerWidth(!0)-t.width(),N=A.outerHeight(!0),O=A.outerWidth(!0),r.css({"padding-bottom":L,"padding-right":M}).hide(),G.click(function(){X.next()}),H.click(function(){X.prev()}),I.click(function(){X.close()}),J=G.add(H).add(E).add(F),t.children().removeClass("hover"),q.click(function(){K.overlayClose&&X.close()}),a(b).bind("keydown."+f,function(a){var b=a.keyCode;S&&K.escKey&&b===27&&(a.preventDefault(),X.close()),S&&K.arrowKey&&y[1]&&(b===37?(a.preventDefault(),H.click()):b===39&&(a.preventDefault(),G.click()))})},X.remove=function(){r.add(q).remove(),a("."+g).removeData(e).removeClass(g)},X.position=function(a,c){function g(a){u[0].style.width=x[0].style.width=t[0].style.width=a.style.width,C[0].style.height=C[1].style.height=t[0].style.height=v[0].style.height=w[0].style.height=a.style.height}var d=0,e=0;z.unbind("resize."+f),r.hide(),K.fixed&&!o?r.css({position:"fixed"}):(d=z.scrollTop(),e=z.scrollLeft(),r.css({position:"absolute"})),K.right!==!1?e+=Math.max(z.width()-K.w-O-M-Z(K.right,"x"),0):K.left!==!1?e+=Z(K.left,"x"):e+=Math.round(Math.max(z.width()-K.w-O-M,0)/2),K.bottom!==!1?d+=Math.max(b.documentElement.clientHeight-K.h-N-L-Z(K.bottom,"y"),0):K.top!==!1?d+=Z(K.top,"y"):d+=Math.round(Math.max(b.documentElement.clientHeight-K.h-N-L,0)/2),r.show(),a=r.width()===K.w+O&&r.height()===K.h+N?0:a||0,s[0].style.width=s[0].style.height="9999px",r.dequeue().animate({width:K.w+O,height:K.h+N,top:d,left:e},{duration:a,complete:function(){g(this),T=!1,s[0].style.width=K.w+O+M+"px",s[0].style.height=K.h+N+L+"px",c&&c(),setTimeout(function(){z.bind("resize."+f,X.position)},1)},step:function(){g(this)}})},X.resize=function(a){if(S){a=a||{},a.width&&(K.w=Z(a.width,"x")-O-M),a.innerWidth&&(K.w=Z(a.innerWidth,"x")),A.css({width:K.w}),a.height&&(K.h=Z(a.height,"y")-N-L),a.innerHeight&&(K.h=Z(a.innerHeight,"y"));if(!a.innerHeight&&!a.height){var b=A.wrapInner("<div style='overflow:auto'></div>").children();K.h=b.height(),b.replaceWith(b.children())}A.css({height:K.h}),X.position(K.transition==="none"?0:K.speed)}},X.prep=function(b){function h(){K.h=K.h||A.height(),K.h=K.mh&&K.mh<K.h?K.mh:K.h;return K.h}function g(){K.w=K.w||A.width(),K.w=K.mw&&K.mw<K.w?K.mw:K.w;return K.w}if(!!S){var c,d=K.transition==="none"?0:K.speed;A.remove(),A=Y("LoadedContent").append(b),A.hide().appendTo(B.show()).css({width:g(),overflow:K.scrolling?"auto":"hidden"}).css({height:h()}).prependTo(t),B.hide(),a(R).css({"float":"none"}),o&&a("select").not(r.find("select")).filter(function(){return this.style.visibility!=="hidden"}).css({visibility:"hidden"}).one(k,function(){this.style.visibility="inherit"}),c=function(){function o(){n&&r[0].style.removeAttribute("filter")}var b,c,g,h,i=y.length,k,l;!S||(l=function(){clearTimeout(W),C.hide(),ba(j,K.onComplete)},n&&R&&A.fadeIn(100),D.html(K.title).add(A).show(),i>1?(typeof K.current=="string"&&E.html(K.current.replace("{current}",Q+1).replace("{total}",i)).show(),G[K.loop||Q<i-1?"show":"hide"]().html(K.next),H[K.loop||Q?"show":"hide"]().html(K.previous),b=Q?y[Q-1]:y[i-1],g=Q<i-1?y[Q+1]:y[0],K.slideshow&&F.show(),K.preloading&&(h=a.data(g,e).href||g.href,c=a.data(b,e).href||b.href,h=a.isFunction(h)?h.call(g):h,c=a.isFunction(c)?c.call(b):c,$(h)&&(a("<img/>")[0].src=h),$(c)&&(a("<img/>")[0].src=c))):J.hide(),K.iframe?(k=a("<iframe/>").addClass(f+"Iframe")[0],K.fastIframe?l():a(k).one("load",l),k.name=f+ +(new Date),k.src=K.href,K.scrolling||(k.scrolling="no"),n&&(k.frameBorder=0,k.allowTransparency="true"),a(k).appendTo(A).one(m,function(){k.src="//about:blank"})):l(),K.transition==="fade"?r.fadeTo(d,1,o):o())},K.transition==="fade"?r.fadeTo(d,0,function(){X.position(0,c)}):X.position(d,c)}},X.load=function(b){var c,d,e=X.prep;T=!0,R=!1,P=y[Q],b||_(),ba(m),ba(i,K.onLoad),K.h=K.height?Z(K.height,"y")-N-L:K.innerHeight&&Z(K.innerHeight,"y"),K.w=K.width?Z(K.width,"x")-O-M:K.innerWidth&&Z(K.innerWidth,"x"),K.mw=K.w,K.mh=K.h,K.maxWidth&&(K.mw=Z(K.maxWidth,"x")-O-M,K.mw=K.w&&K.w<K.mw?K.w:K.mw),K.maxHeight&&(K.mh=Z(K.maxHeight,"y")-N-L,K.mh=K.h&&K.h<K.mh?K.h:K.mh),c=K.href,W=setTimeout(function(){C.show()},100),K.inline?(Y().hide().insertBefore(a(c)[0]).one(m,function(){a(this).replaceWith(A.children())}),e(a(c))):K.iframe?e(" "):K.html?e(K.html):$(c)?(a(R=new Image).addClass(f+"Photo").error(function(){K.title=!1,e(Y("Error").text("This image could not be loaded"))}).load(function(){var a;R.onload=null,K.scalePhotos&&(d=function(){R.height-=R.height*a,R.width-=R.width*a},K.mw&&R.width>K.mw&&(a=(R.width-K.mw)/R.width,d()),K.mh&&R.height>K.mh&&(a=(R.height-K.mh)/R.height,d())),K.h&&(R.style.marginTop=Math.max(K.h-R.height,0)/2+"px"),y[1]&&(Q<y.length-1||K.loop)&&(R.style.cursor="pointer",R.onclick=function(){X.next()}),n&&(R.style.msInterpolationMode="bicubic"),setTimeout(function(){e(R)},1)}),setTimeout(function(){R.src=c},1)):c&&B.load(c,K.data,function(b,c,d){e(c==="error"?Y("Error").text("Request unsuccessful: "+d.statusText):a(this).contents())})},X.next=function(){!T&&y[1]&&(Q<y.length-1||K.loop)&&(Q=Q<y.length-1?Q+1:0,X.load())},X.prev=function(){!T&&y[1]&&(Q||K.loop)&&(Q=Q?Q-1:y.length-1,X.load())},X.close=function(){S&&!U&&(U=!0,S=!1,ba(k,K.onCleanup),z.unbind("."+f+" ."+p),q.fadeTo(200,0),r.stop().fadeTo(300,0,function(){r.add(q).css({opacity:1,cursor:"auto"}).hide(),ba(m),A.remove(),setTimeout(function(){U=!1,ba(l,K.onClosed)},1)}))},X.element=function(){return a(P)},X.settings=d,V=function(a){a.button!==0&&typeof a.button!="undefined"||a.ctrlKey||a.shiftKey||a.altKey||(a.preventDefault(),bc(this))},a.fn.delegate?a(b).delegate("."+g,"click",V):a("."+g).live("click",V),a(X.init)})(jQuery,document,this);menu-header.php git://github.com/wordpress/wordpress.git | PHP | 288 lines
1<?php 2/** 13 */ 14$self = preg_replace( '|^.*/wp-admin/network/|i', '', $_SERVER['PHP_SELF'] ); 15$self = preg_replace( '|^.*/wp-admin/|i', '', $self ); 108 109 $class = $class ? ' class="' . join( ' ', $class ) . '"' : ''; 110 $id = ! empty( $item[5] ) ? ' id="' . preg_replace( '|[^a-zA-Z0-9_:.]|', '-', $item[5] ) . '"' : ''; 159 } 160 if ( ! empty( $menu_hook ) || ( ( 'index.php' != $submenu_items[0][2] ) && file_exists( WP_PLUGIN_DIR . "/$menu_file" ) && ! file_exists( ABSPATH . "/wp-admin/$menu_file" ) ) ) { 161 $admin_is_parent = true; 161 $admin_is_parent = true; 162 echo "<a href='admin.php?page={$submenu_items[0][2]}'$class $aria_attributes>$arrow<div class='wp-menu-image$img_class'$img_style>$img</div><div class='wp-menu-name'>$title</div></a>"; 163 } else { 166 } elseif ( ! empty( $item[2] ) && current_user_can( $item[1] ) ) { 167 $menu_hook = get_plugin_page_hook( $item[2], 'admin.php' ); 168 $menu_file = $item[2];select_giomag.php http://gevion.googlecode.com/svn/trunk/ | PHP | 207 lines
1<?php 2/* $Id: select_giomag.php,v 1.16 2010/01/17 17:27:04 devincen Exp $ 24*/ 25require("../../library/include/datlib.inc.php"); 26$admin_aziend=checkAdmin(); 37 $gTables['artico'].".codice, ".$gTables['artico'].".descri AS desart, ".$gTables['artico'].".unimis, ".$gTables['artico'].".scorta, ".$gTables['artico'].".catmer "; 38 $table=$gTables['movmag']." LEFT JOIN ".$gTables['caumag']." ON (".$gTables['movmag'].".caumag = ".$gTables['caumag'].".codice) 39 LEFT JOIN ".$gTables['clfoco']." ON (".$gTables['movmag'].".clfoco = ".$gTables['clfoco'].".codice) 39 LEFT JOIN ".$gTables['clfoco']." ON (".$gTables['movmag'].".clfoco = ".$gTables['clfoco'].".codice) 40 LEFT JOIN ".$gTables['artico']." ON (".$gTables['movmag'].".artico = ".$gTables['artico'].".codice)"; 41 $rs=gaz_dbi_dyn_query ($what,$table,$where, 'datreg ASC, clfoco ASC'); 112 ); 113 header("Location: sent_print.php"); 114 exit; 116 117require("../../library/include/header.php"); 118$script_transl=HeadMain(0,array('calendarpopup/CalendarPopup'));liste.php git://github.com/Dolibarr/dolibarr.git | PHP | 241 lines
1<?php 2/* Copyright (C) 2001-2006 Rodolphe Quiedeville <rodolphe@quiedeville.org> 20/** 21 * \file htdocs/compta/paiement/liste.php 22 * \ingroup compta 25 26require("../../main.inc.php"); 27require_once(DOL_DOCUMENT_ROOT.'/compta/paiement/class/paiement.class.php'); 27require_once(DOL_DOCUMENT_ROOT.'/compta/paiement/class/paiement.class.php'); 28require_once(DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php'); 29 73 $sql.= " ".MAIN_DB_PREFIX."c_paiement as c)"; 74 $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."paiement_facture as pf ON p.rowid = pf.fk_paiement"; 75 $sql.= " WHERE p.fk_paiement = c.id"; 88 $sql.= " FROM (".MAIN_DB_PREFIX."c_paiement as c, ".MAIN_DB_PREFIX."paiement as p)"; 89 $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."bank as b ON p.fk_bank = b.rowid"; 90 $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."bank_account as ba ON b.fk_account = ba.rowid";usercp_viewprofile.php http://torrentpier2.googlecode.com/svn/trunk/ | PHP | 241 lines
1<?php 2 49{ 50 $email_uri = ($bb_cfg['board_email_form']) ? 'profile.php?mode=email&'. POST_USERS_URL .'='. $profiledata['user_id'] : 'mailto:'. $profiledata['user_email']; 51 $email = '<a class="editable" href="'. $email_uri .'">'. $profiledata['user_email'] .'</a>'; 61// 62include(INC_DIR ."functions_report.php"); 63$report_user = report_modules('name', 'report_user'); 68 $template->assign_vars(array( 69 'U_REPORT_USER' => 'report.php?mode='. $report_user->mode .'&id='. $profiledata['user_id'], 70 'L_REPORT_USER' => $report_user->lang['WRITE_REPORT']) 128 129 'U_SEARCH_USER' => "search.php?search_author=1&uid={$profiledata['user_id']}", 130 'U_SEARCH_TOPICS' => "search.php?uid={$profiledata['user_id']}&myt=1", 142 'TRAF_STATS' => !(IS_AM || $profile_user_id), 143 'U_MANAGE' => (IS_ADMIN) ? "profile.php?mode=editprofile&u={$profiledata['user_id']}" : 'profile.php?mode=editprofile', 144));ejs.js git://github.com/appcelerator/titanium_desktop.git | JavaScript | 468 lines
9 * EJS is a client-side preprocessing engine written in and for JavaScript. 10 * If you have used PHP, ASP, JSP, or ERB then you get the idea: code embedded 11 * in <% // Code here %> tags will be executed, and code embedded in <%= .. %> 151 cr: function() { 152 this.script = this.script + this.line.join('; '); 153 this.line = new Array(); 163 } 164 this.script = this.script + this.line.join('; '); 165 line = null;NpgsqlSchema.cs git://github.com/mono/mono.git | C# | 287 lines
7// npgsql-general@gborg.postgresql.org 8// http://gborg.postgresql.org/project/npgsql/projdisplay.php 9// 149 150 getDatabases.Append("SELECT d.datname AS database_name, u.usename AS owner, pg_catalog.pg_encoding_to_char(d.encoding) AS encoding FROM pg_catalog.pg_database d LEFT JOIN pg_catalog.pg_user u ON d.datdba = u.usesysid"); 151create.php http://buddypress-media.googlecode.com/svn/bp_media/trunk/ | PHP | 316 lines
17 <form action="<?php bp_group_creation_form_action(); ?>" method="post" id="create-group-form" class="standard-form" enctype="multipart/form-data"> 18 <h3><?php _e( 'Create a Group', 'buddypress' ); ?> <a class="button" href="<?php echo trailingslashit( bp_get_root_domain() . '/' . bp_get_groups_root_slug() ); ?>"><?php _e( 'Groups Directory', 'buddypress' ); ?></a></h3> 19 122 123 <p><?php printf( __( '<strong>Attention Site Admin:</strong> Group forums require the <a href="%s">correct setup and configuration</a> of a bbPress installation.', 'buddypress' ), bp_core_do_network_admin() ? network_admin_url( 'settings.php?page=bb-forums-setup' ) : admin_url( 'admin.php?page=bb-forums-setup' ) ); ?></p> 124 168 <div id="avatar-crop-pane"> 169 <img src="<?php bp_avatar_to_crop(); ?>" id="avatar-crop-preview" class="avatar" alt="<?php _e( 'Avatar preview', 'buddypress' ); ?>" /> 170 </div> 228 <div class="action"> 229 <a class="remove" href="<?php bp_group_invite_user_remove_invite_url(); ?>" id="<?php bp_group_invite_item_id(); ?>"><?php _e( 'Remove Invite', 'buddypress' ); ?></a> 230 </div> 267 268 <input type="button" value="<?php _e( 'Back to Previous Step', 'buddypress' ); ?>" id="group-creation-previous" name="previous" onclick="location.href='<?php bp_group_creation_previous_link(); ?>'" /> 269QueryTest.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 393 lines
1<?php 2/** 2/** 3 * Lithium: the most rad php framework 4 * 5 * @copyright Copyright 2010, Union of RAD (http://union-of-rad.org) 6 * @license http://opensource.org/licenses/bsd-license.php The BSD License 7 */ 261 'group', 262 'joins', 263 'limit', 299 300 public function testJoin() { 301 $query = new Query(array('joins' => array(array('foo' => 'bar')))); 301 $query = new Query(array('joins' => array(array('foo' => 'bar')))); 302 $query->join(array('bar' => 'baz')); 303 $expected = array(array('foo' => 'bar'), array('bar' => 'baz'));AnyChart.js http://aita-appserver.googlecode.com/svn/trunk/ | JavaScript | 261 lines
15 * SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License: 16 * http://www.opensource.org/licenses/mit-license.php 17 * 101 } 102 var pairs = this.getVariablePairs().join("&"); 103 if (pairs.length > 0){ swfNode += 'flashvars="'+ pairs +'"';} 117 } 118 var pairs = this.getVariablePairs().join("&"); 119 if(pairs.length > 0) {swfNode += '<param name="flashvars" value="'+ pairs +'" />';}create.php http://ownerpress.googlecode.com/svn/trunk/ | PHP | 263 lines
6 <form action="<?php bp_group_creation_form_action() ?>" method="post" id="create-group-form" class="standard-form" enctype="multipart/form-data"> 7 <h3><?php _e( 'Create a Group', 'buddypress' ) ?> <a class="button" href="<?php echo bp_get_root_domain() . '/' . BP_GROUPS_SLUG . '/' ?>"><?php _e( 'Groups Directory', 'buddypress' ) ?></a></h3> 8 44 <div class="checkbox"> 45 <label><input type="checkbox" name="group-show-wire" id="group-show-wire" value="1"<?php if ( bp_get_new_group_enable_wire() ) { ?> checked="checked"<?php } ?> /> <?php _e('Enable comment wire', 'buddypress') ?></label> 46 </div> 51 <div class="checkbox"> 52 <label><input type="checkbox" name="group-show-forum" id="group-show-forum" value="1"<?php if ( bp_get_new_group_enable_forum() ) { ?> checked="checked"<?php } ?> /> <?php _e('Enable discussion forum', 'buddypress') ?></label> 53 </div> 85 86 <label><input type="radio" name="group-status" value="hidden"<?php if ( 'hidden' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> /> 87 <strong><?php _e('This is a hidden group', 'buddypress') ?></strong> 190 <div class="action"> 191 <a class="remove" href="<?php bp_group_invite_user_remove_invite_url() ?>" id="<?php bp_group_invite_item_id() ?>"><?php _e( 'Remove Invite', 'buddypress' ) ?></a> 192 </div>Web.hx https://code.google.com/p/hxjava/ | Haxe | 355 lines
1package php; 2 29 if(untyped __call__("get_magic_quotes_gpc")) 30 untyped __php__("foreach($a as $k => $v) $a[$k] = stripslashes((string)$v)"); 31 return Lib.hashOfAssociativeArray(a); 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 **/ 185 _client_headers = new List(); 186 var h = Lib.hashOfAssociativeArray(untyped __php__("$_SERVER")); 187 for(k in h.keys()) { 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 }Messo.class.php http://antilophpe.googlecode.com/svn/ | PHP | 375 lines
1<?php 2/** 2/** 3 * File Messo.class.php 4 * 207 FROM "ant_Messo" 208 LEFT JOIN "ant_Utente" ON "ant_Utente"."id" = "ant_Messo"."idUtente" 209 WHERE "ant_Messo"."id" = '.$this->getId(); 228 FROM "ant_Messo" 229 LEFT JOIN "ant_Utente" ON "ant_Utente"."id" = "ant_Messo"."idUtente" 230 WHERE "ant_Messo"."id" = '.$this->getId(); 248 FROM "ant_Messo" 249 LEFT JOIN "ant_Utente" ON "ant_Utente"."id" = "ant_Messo"."idUtente" 250 WHERE "ant_Messo"."active"=1 273 FROM "ant_Messo" 274 LEFT JOIN "ant_Utente" ON "ant_Utente"."id" = "ant_Messo"."idUtente" 275 WHERE "ant_Messo"."active"=1class.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. 12require_once('adodb-active-record.inc.php'); 13require_once('adodb-exceptions.inc.php'); 14 116 if (isset($extra['join'])) { 117 $joins = $extra['join']; 118 $keys = array_keys($joins); 124 $type = $joins[$key]['type']; 125 $join .= ' ' . strtolower($type) . ' JOIN ' . $table . ' ON ' . $cond; 126 } 255 if (isset($args['join'])) { 256 $joins = $args['join']; 257 $keys = array_keys($joins); 263 $type = $jo[$key]['type']; 264 $join .= ' ' . strtolower($type) . ' JOIN ' . $table . ' ON ' . $cond; 265 }addon.py http://seppius-xbmc-repo.googlecode.com/svn/trunk/ | Python | 252 lines
10h = int(sys.argv[1]) 11icon = xbmc.translatePath(os.path.join(os.getcwd().replace(';', ''),'icon.jpg')) 12fanart = xbmc.translatePath(os.path.join(os.getcwd().replace(';', ''),'fanart.jpg')) 54 55 cookie_path = os.path.join(profile, 'cookie') 56 if not os.path.exists(cookie_path): 61 for cookie_fname in os.listdir(cookie_path): 62 cookie_file = os.path.join(cookie_path, cookie_fname) 63 if os.path.isfile(cookie_file): 74 for Cook in CJ: 75 cookie_file = os.path.join(cookie_path, Cook.name) 76 cf = open(cookie_file, 'w') 178 x += 1 179 sub_fdata = '\n'.join(suba) 180 sub_url = sub_url.replace('.xml','').replace('.mp4','')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 186 'total_items' => ORM::factory('message') 187 ->join('reporter','message.reporter_id','reporter.id') 188 ->where($filter) 193 $messages = ORM::factory('message') 194 ->join('reporter','message.reporter_id','reporter.id') 195 ->where('service_id', $service_id) 202 $this->template->content->count_all = ORM::factory('message') 203 ->join('reporter','message.reporter_id','reporter.id') 204 ->where('service_id', $service_id) 209 $this->template->content->count_trusted = ORM::factory('message') 210 ->join('reporter','message.reporter_id','reporter.id') 211 ->where('service_id', $service_id)games.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 275 lines
1<?php 2 4 5include_once("modules/tournament2/class_tournament.php"); 6$tfunc = new tfunc; 46 else $score_output = "$score1 : $score2 "; 47 $score_output .= $dsp->FetchSpanButton(t('Details'), "index.php?mod=tournament2&action=submit_result&step=1&tournamentid=$tournamentid&gameid1=$gameid1&gameid2=$gameid2"); 48 } 79 FROM %prefix%t2_games AS games 80 LEFT JOIN %prefix%t2_teams AS teams ON (games.tournamentid = teams.tournamentid) AND (games.leaderid = teams.leaderid) 81 WHERE (games.tournamentid = %int%) 99 case 1: 100 include_once('modules/tournament2/search.inc.php'); 101 break; 115 if ($tournament["mode"] == "open") { 116 $func->error(t('Dieses Turnier wurde noch nicht generiert. Die Paarungen sind noch nicht bekannt.'), "index.php?mod=tournament2&action=games&step=1"); 117 break;Pgsql.php git://github.com/michael-romer/zf-boilerplate.git | PHP | 336 lines
1<?php 2/** 19 * @license http://framework.zend.com/license/new-bsd New BSD License 20 * @version $Id: Pgsql.php 23775 2011-03-01 17:25:24Z ralph $ 21 */ 26 */ 27require_once 'Zend/Db/Adapter/Pdo/Abstract.php'; 28 101 { 102 // @todo use a better query with joins instead of subqueries 103 $sql = "SELECT c.relname AS table_name " 164 FROM pg_attribute AS a 165 JOIN pg_class AS c ON a.attrelid = c.oid 166 JOIN pg_namespace AS n ON c.relnamespace = n.oid 166 JOIN pg_namespace AS n ON c.relnamespace = n.oid 167 JOIN pg_type AS t ON a.atttypid = t.oid 168 LEFT OUTER JOIN pg_constraint AS co ON (co.conrelid = c.oidsvg-painter.js git://github.com/wordpress/wordpress.git | JavaScript | 241 lines
31 * Licensed under the MIT license 32 * http://www.opensource.org/licenses/mit-license.php 33 */ 109 110 coded = coded.join(''); 111 return coded;pdo_cubrid_driver.php git://github.com/ci-bonfire/Bonfire.git | PHP | 209 lines
1<?php 2/** 4 * 5 * An open source application development framework for PHP 6 * 200 { 201 if ( ! empty($this->qb_join) && count($this->qb_from) > 1) 202 {test-courses.php https://code.google.com/p/classroom-presenter/ | PHP | 421 lines
101 102 include "../../Incognito/instr/scripts/create_course.php"; 103 151 152 include "../../Incognito/instr/scripts/addStudent.php"; 153 } 195 196 include "../../Incognito/students/scripts/join_session.php"; 197 208 209 // If we an entry in the Joined table then the script passes 210 $this->assertEquals(1, mysql_num_rows($results)); 301 302 include "../../Incognito/instr/scripts/delete_course.php"; 303lmbARAttributesLazyLoadingTest.class.php git://github.com/limb-php-framework/limb.git | PHP | 271 lines
1<?php 2/* 2/* 3 * Limb PHP Framework 4 * 57 58 function testLazyWorksOkForEagerJoin_OneToOneRelations() 59 { 69 array('criteria' => 'person_for_test.id = ' . $person->getId(), 70 'join' => 'lazy_object')); 71 75 76 function testForceToLoadAllLazyAttributes_ForEagerJoin_OneToOneRelations() 77 { 87 array('criteria' => 'person_for_test.id = ' . $person->getId(), 88 'join' => array('lazy_object' => array('with_lazy_attributes' => '')))); 89stampa_listin.php http://gevion.googlecode.com/svn/trunk/ | PHP | 137 lines
1<?php 2 /* $Id: stampa_listin.php,v 1.22 2010/10/11 12:36:58 devincen Exp $ 24*/ 25require("../../library/include/datlib.inc.php"); 26$admin_aziend=checkAdmin(); 33 !isset($_GET['af'])) { 34 header("Location: select_listin.php"); 35 exit; 52 53require("../../config/templates/report_template.php"); 54$what = $gTables['catmer'].".codice AS codcat , ".$gTables['catmer'].".descri AS descat , ". 56 $gTables['aliiva'].".codice AS codiva, ".$gTables['aliiva'].".aliquo "; 57$table = $gTables['artico']." LEFT JOIN ".$gTables['catmer']." ON (".$gTables['artico'].".catmer = ".$gTables['catmer'].".codice) 58 LEFT JOIN ".$gTables['aliiva']." ON (".$gTables['artico'].".aliiva = ".$gTables['aliiva'].".codice)";CommentViewsData.php git://github.com/drupal/drupal.git | PHP | 397 lines
1<?php 2 248 // field. We cannot create a relationship from the base table to 249 // {comment_entity_statistics} for each field as multiple joins between 250 // the same two tables is not supported. 251 if (\Drupal::service('comment.manager')->getFields($type)) { 252 $data['comment_entity_statistics']['table']['join'][$entity_type->getDataTable() ?: $entity_type->getBaseTable()] = [ 253 'type' => 'INNER',elgg.class.php https://bitbucket.org/rhizomatik/lorea_production/ | PHP | 353 lines
1<?php 2/** 10define('DOKU_AUTH', dirname(__FILE__)); 11require_once(DOKU_AUTH.'/basic.class.php'); 12 12 13//define('AUTH_USERFILE',DOKU_CONF.'users.auth.php'); 14 132 // prepare user line 133 $groups = join(',',$grps); 134 $userline = join(':',array($user,$pass,$name,$mail,$groups))."\n"; 172 173 $groups = join(',',$userinfo['grps']); 174 $userline = join(':',array($newuser, $userinfo['pass'], $userinfo['name'], $userinfo['mail'], $groups))."\n"; 211 212 $pattern = '/^('.join('|',$deleted).'):/'; 213functions.php http://collectgame.googlecode.com/svn/trunk/ | PHP | 429 lines
1<?php 2/** 151// " from wp_term_taxonomy tax ,wp_term_relationships ships, (select p.* ,m.meta_value meta_value ". 152// " from wp_posts p left join wp_postmeta m on m.post_id = p.ID and m.meta_key='GamePI' and p.post_status = 'publish' ". 153// " AND p.post_type = 'post' ) post where ". 414 <ul class="pl_left"> 415 <li><img src="<?php bloginfo('template_url');?>/images/pingltx.jpg" width="57" height="57" alt="?????" title="?????" /></li> 416 <li class="pl_name"><?php echo get_comment_author_link();?></li> 419 <ul class="pl_cont"> 420 <li class="pl_time">???:<?php echo get_comment_date() ;echo get_comment_time(); ?></li> 421 <li class="pl_main"><?php comment_text();?></li> 422 </ul> 423 <span class="louceng"><?php echo $GLOBALS['comments_indexs'];?>F</span> 424 </div> 424 </div> 425 <?php 426}jquery.treeview.js https://hg01.codeplex.com/koobootoolkit | JavaScript | 256 lines
9* Dual licensed under the MIT and GPL licenses: 10* http://www.opensource.org/licenses/mit-license.php 11* http://www.gnu.org/licenses/gpl.html 175 }); 176 $.cookie(settings.cookieId, data.join(""), settings.cookieOptions); 177 }users.php https://bitbucket.org/simpfc/shop.git | PHP | 295 lines
1<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); 2 17 $this->CI->db->select('users.*, users_profile.*, country.id as country_id, country.country_name_ru'); 18 $this->CI->db->join('users_profile','users_profile.userID = users.id','right'); 19 $this->CI->db->join('country','country.id = users_profile.country','left'); 30 $this->CI->db->select('users.*, users_profile.*, country.id as country_id, country.country_name_ru'); 31 $this->CI->db->join('users_profile','users_profile.userID = users.id','right'); 32 $this->CI->db->join('country','country.id = users_profile.country','left'); 42 $this->CI->db->select('users.*, users_profile.*, country.id as country_id, country.country_name_ru'); 43 $this->CI->db->join('users_profile','users_profile.userID = users.id','right'); 44 $this->CI->db->join('country','country.id = users_profile.country','left'); 262 ->where('last_enter >=', (time() - $time)) 263 ->join('users_profile','users_profile.userID = users.id','left') 264 ->get('users');viewonline.php http://pbb-png1.googlecode.com/svn/trunk/ | PHP | 451 lines
14define('IN_PHPBB', true); 15$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './'; 16$phpEx = substr(strrchr(__FILE__, '.'), 1); 266 $location = $user->lang['SEARCHING_FORUMS']; 267 $location_url = append_sid("{$phpbb_root_path}search.$phpEx"); 268 break; 271 $location = $user->lang['VIEWING_FAQ']; 272 $location_url = append_sid("{$phpbb_root_path}faq.$phpEx"); 273 break; 340 'U_USER_IP' => append_sid("{$phpbb_root_path}viewonline.$phpEx", 'mode=lookup' . (($mode != 'lookup' || $row['session_id'] != $session_id) ? '&s=' . $row['session_id'] : '') . "&sg=$show_guests&start=$start&sk=$sort_key&sd=$sort_dir"), 341 'U_WHOIS' => append_sid("{$phpbb_root_path}viewonline.$phpEx", 'mode=whois&s=' . $row['session_id']), 342 'U_FORUM_LOCATION' => $location_url, 446); 447make_jumpbox(append_sid("{$phpbb_root_path}viewforum.$phpEx")); 44804_Fixtures.md git://github.com/silverstripe/sapphire.git | Markdown | 418 lines
16 17**app/tests/MyNewTest.php** 18 19 20```php 21use SilverStripe\Dev\SapphireTest; 33 34**app/tests/MyNewTest.php** 35 35 36```php 37use SilverStripe\Dev\SapphireTest; 58 59```php 60use SilverStripe\ORM\DataObject;content.ajaxeventdocumentation.php git://github.com/symphonycms/symphony-2.git | PHP | 239 lines
1<?php 2/** 56 57 $documentation = join(PHP_EOL, array_map(function($part) { 58 return rtrim($part->generate(true, 4)); 211 $doc_parts[] = self::processDocumentationCode( 212 'send-email[sender-email] // '.__('Optional').PHP_EOL. 213 'send-email[sender-name] // '.__('Optional').PHP_EOL. 213 'send-email[sender-name] // '.__('Optional').PHP_EOL. 214 'send-email[reply-to-email] // '.__('Optional').PHP_EOL. 215 'send-email[reply-to-name] // '.__('Optional').PHP_EOL. 215 'send-email[reply-to-name] // '.__('Optional').PHP_EOL. 216 'send-email[subject]'.PHP_EOL. 217 'send-email[body]'.PHP_EOL.fiche.php git://github.com/Dolibarr/dolibarr.git | PHP | 433 lines
1<?php 2/* Copyright (C) 2001-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> 22/** 23 * \file htdocs/fourn/fiche.php 24 * \ingroup fournisseur, facture 27 28require("../main.inc.php"); 29require_once(DOL_DOCUMENT_ROOT."/fourn/class/fournisseur.class.php"); 29require_once(DOL_DOCUMENT_ROOT."/fourn/class/fournisseur.class.php"); 30require_once(DOL_DOCUMENT_ROOT."/fourn/class/fournisseur.facture.class.php"); 31require_once(DOL_DOCUMENT_ROOT."/contact/class/contact.class.php"); 31require_once(DOL_DOCUMENT_ROOT."/contact/class/contact.class.php"); 32require_once(DOL_DOCUMENT_ROOT."/core/lib/company.lib.php"); 33if ($conf->adherent->enabled) require_once(DOL_DOCUMENT_ROOT."/adherents/class/adherent.class.php"); 61 { 62 $mesg=join(',',$object->errors); 63 }swfobject.js http://bitstopdev-hostedqueuesys.googlecode.com/svn/trunk/ | JavaScript | 367 lines
4 * SWFObject is (c) 2007 Geoff Stearns and is released under the MIT License: 5 * http://www.opensource.org/licenses/mit-license.php 6 * 146 } 147 var _1c=this.getVariablePairs().join("&"); 148 if(_1c.length>0) 180 } 181 var _1f=this.getVariablePairs().join("&"); 182 if(_1f.length>0)Scope.py https://hg.codeplex.com/hackathon | Python | 331 lines
13# LGPL: http://www.gnu.org/licenses/lgpl.html 14# EPL: http://www.eclipse.org/org/documents/epl-v10.php 15# See the LICENSE file in the project's top-level directory for details. 70 def __str__(self): 71 arguments = ", ".join([s.__str__() for s in self.arguments]) 72 variables = ", ".join([s.__str__() for s in self.variables]) 72 variables = ", ".join([s.__str__() for s in self.variables]) 73 uses = ", ".join([s.__str__() for s in self.uses]) 74app_switch.php http://scalr.googlecode.com/svn/ | PHP | 153 lines
1<? 2 require("src/prepend.inc.php"); 3 $display["title"] = _("Application » Switch"); 10 if (!$zoneinfo) 11 UI::Redirect("sites_view.php"); 12 17 if ($farminfo['id'] == $post_new_farmid && $zoneinfo['ami_id'] == $post_new_amiid) 18 UI::Redirect("sites_view.php"); 19 21 if (!$new_farminfo || $new_farminfo['clientid'] != $zoneinfo['clientid']) 22 UI::Redirect("sites_view.php"); 23 23 24 $new_roleinfo = $db->GetRow("SELECT farm_roles.*, roles.name FROM farm_roles INNER JOIN roles ON roles.ami_id = farm_roles.ami_id WHERE farmid=? and farm_roles.ami_id=?", array($post_new_farmid, $post_new_amiid)); 25 if (!$new_roleinfo)index.php http://wowroster.googlecode.com/svn/trunk/ | PHP | 207 lines
1<?php 2/** 9 * @license http://www.gnu.org/licenses/gpl.html Licensed under the GNU General Public License v3. 10 * @version SVN: $Id: index.php 2302 2011-03-19 16:50:59Z c.treyce@gmail.com $ 11 * @link http://www.wowroster.net 42// The next two lines call the function selectQuery and use it to populate and return the code that lists the dropboxes for quests and for zones 43selectQuery('`' . $roster->db->table('quests') . "` AS quests LEFT JOIN `" . $roster->db->table('quest_data') . "` AS quest_data ON `quests`.`quest_id` = `quest_data`.`quest_id` LEFT JOIN `" . $roster->db->table('players') . "` AS players ON `players`.`member_id` = `quests`.`member_id` WHERE `players`.`server` = '" . $roster->db->escape($roster->data['server']) . "' AND `quests`.`member_id` = `players`.`member_id`", 'DISTINCT `quest_data`.`zone`', 'zone', $zoneid, '&zoneid'); 44selectQuery('`' . $roster->db->table('quests') . "` AS quests LEFT JOIN `" . $roster->db->table('quest_data') . "` AS quest_data ON `quests`.`quest_id` = `quest_data`.`quest_id` LEFT JOIN `" . $roster->db->table('players') . "` AS players ON `players`.`member_id` = `quests`.`member_id` WHERE `players`.`server` = '" . $roster->db->escape($roster->data['server']) . "' AND `quests`.`member_id` = `players`.`member_id`", 'DISTINCT `quest_data`.`quest_name`', 'quest_name', $questid, '&questid');index.htm https://bitbucket.org/dnteam/eu.ebabel.xcats.git | HTML | 297 lines
81 type: 'PUT', 82 url: '/cats.php', 83 contentType: 'application/json; charset=utf-8', 95 if ( data.saved > 1 ) 96 $( '#Message' ).html( [ 'You\'re a hero! ', data.saved, ' mutant cats have been saved because of you!' ].join( '' ) ); 97 if ( data.saved >= 1 ) 120 S4(), "-", 121 S4(), S4(), S4() ].join( "" ); 122 } 265 <script> 266 // todo: 1. Syncing via ajax with a php/mysql web API. 267BankReconciliation.php http://chronique.googlecode.com/svn/ | PHP | 394 lines
1<?php 2 2 3/* $Id: BankReconciliation.php 4735 2011-10-29 05:59:53Z daintree $*/ 4 10 11echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF']) . '">'; 12echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; 34 decimalplaces AS currdecimalplaces 35 FROM bankaccounts INNER JOIN currencies 36 ON bankaccounts.currcode=currencies.currabrev 110 </table> 111 <p>' . _('Bank Accounts have not yet been defined') . '. ' . _('You must first') . '<a href="' . $rootpath . '/BankAccounts.php">' . _('define the bank accounts') . '</a>' . ' ' . _('and general ledger accounts to be affected') . '.'; 112 include('includes/footer.inc'); 166 currencies.decimalplaces AS currdecimalplaces 167 FROM bankaccounts INNER JOIN currencies 168 ON bankaccounts.currcode=currencies.currabrevp108_Quick.php https://bitbucket.org/rlm3/rlm3 | PHP | 254 lines
61 <div class="vSpacer10"></div> 62 <div class="whitebox"><?php include_once($dealerd_path.'menu.php')?></div> 63 <div class="vSpacer10"></div> 129 ?> 130 <option value="<?php echo $row['p108_Lead_Status_ID']; ?>" <?php if($row['p108_Lead_Status_ID']=='1') echo 'selected="selected"'; ?>style="font-weight:bold;background-color:#<?php echo $row['Status_Color']; ?>"><?php echo $row['Lead_Status_Code']; ?></option> 131 <?php 159 ?> 160 <input type="radio" id="<?php echo $rand_id; ?>" name="department" value="<?php echo $id; ?>"<?php if (isset($_SESSION['quick_department']) && $_SESSION['quick_department']==$id) echo ' checked'; ?>/> 161 <label for="<?php echo $rand_id; ?>"><?php echo $name; ?></label><br/> 169 <?php foreach ($lead_types as $id=>$name):?> 170 <option value="<?php echo $id; ?>"<?php if ($id==!$id) echo ' selected'; ?>><?php echo $name; ?></option> 171 <?php endforeach?> 179 <tr> 180 <td colspan="2"><?php require_once ($_SERVER['DOCUMENT_ROOT'] . '/p078_dealerd1/p108_Lead_Management/include/soeBox.php')?></td> 181 </tr>AdminEmployees.php http://marocmall.googlecode.com/svn/trunk/ | PHP | 229 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: 8943 $ 24* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0) 25* International Registered Trademark & Property of PrestaShop SA 42 $this->_select = 'pl.`name` AS profile'; 43 $this->_join = 'LEFT JOIN `'._DB_PREFIX_.'profile` p ON a.`id_profile` = p.`id_profile` 44 LEFT JOIN `'._DB_PREFIX_.'profile_lang` pl ON (pl.`id_profile` = p.`id_profile` AND pl.`id_lang` = '.(int)($cookie->id_lang).')';user_lang.php git://github.com/pyrocms/pyrocms.git | PHP | 210 lines
1<?php 2 26$lang['user_name_label'] = 'Nome'; 27$lang['user_joined_label'] = 'Aggiunto'; 28$lang['user_last_visit_label'] = 'Ultima visita';mdl.comment.php http://phpfor.googlecode.com/svn/trunk/ | PHP | 250 lines
1<?php 2include_once('shopObject.php'); 11 $aRet = $this->db->selectrow("SELECT c.*, g.name AS goods_name FROM sdb_comments c 12 LEFT JOIN sdb_goods g ON c.goods_id = g.goods_id 13 WHERE comment_id = ".intval($comment_id)); 18 return $this->db->select('SELECT aGoods.name,aComment.comment_id,aComment.time,aComment.author,aComment.goods_id,aComment.comment FROM sdb_comments as aComment 19 left join sdb_goods as aGoods on aGoods.goods_id=aComment.goods_id 20 WHERE aComment.for_comment_id is Null and aComment.display="true" ORDER BY aComment.comment_id desc limit 0,'.intval($limit)); 196 $aRet = $this->db->selectrow('SELECT count(*) AS countRows FROM sdb_order_items i 197 LEFT JOIN sdb_orders o ON i.order_id = o.order_id 198 LEFT JOIN sdb_products p ON i.product_id = p.product_idphp_http_url.h git://pkgs.fedoraproject.org/php-pecl-http | C++ Header | 176 lines
22#define PHP_HTTP_URL_STRIP_PASS 0x008 23#define PHP_HTTP_URL_STRIP_AUTH (PHP_HTTP_URL_STRIP_USER|PHP_HTTP_URL_STRIP_PASS) 24#define PHP_HTTP_URL_STRIP_PORT 0x020 36 37PHP_HTTP_API void php_http_url(int flags, const php_url *old_url, const php_url *new_url, php_url **url_ptr, char **url_str, size_t *url_len TSRMLS_DC); 38 39PHP_HTTP_API STATUS php_http_url_encode_hash(HashTable *hash, const char *pre_encoded_str, size_t pre_encoded_len, char **encoded_str, size_t *encoded_len TSRMLS_DC); 40PHP_HTTP_API STATUS php_http_url_encode_hash_ex(HashTable *ht, php_http_buffer_t *str, const char *arg_sep_str, size_t arg_sep_len, const char *val_sep_str, size_t val_sep_len, const char *prefix_str, size_t prefix_len TSRMLS_DC); 41 49 50static inline php_url *php_http_url_from_struct(php_url *url, HashTable *ht TSRMLS_DC) 51{ 155#define php_http_url_object_new php_http_object_new 156#define php_http_url_object_new_ex php_http_object_new_ex 157graphpage.py https://bitbucket.org/pypy/pypy/ | Python | 214 lines
1 2from pypy.translator.tool.graphpage import GraphPage 3from pypy.translator.tool.make_dot import DotGen 22 highlight)) 23 graphpage = ResOpGraphPage(graphs, errmsg, metainterp_sd) 24 graphpage.display() 36 37class ResOpGraphPage(GraphPage): 38 195 lines.append("") 196 label = "\\l".join(lines) 197 kwds = {}repl_utils.clj git://github.com/richhickey/clojure-contrib.git | Clojure | 207 lines
2; The use and distribution terms for this software are covered by the 3; Common Public License 1.0 (http://opensource.org/licenses/cpl.php) 4; which can be found in the file CPL.TXT at the root of this distribution. 29(defn- param-str [m] 30 (str " (" (s/join 31 "," (map (fn [[c i]] 33 (str (.getSimpleName c) "*" i) 34 (s/join "," (replicate i (.getSimpleName c))))) 35 (reduce (fn [pairs y] (let [[x i] (peek pairs)]2.0.2.md git://github.com/silverstripe/sapphire.git | Markdown | 156 lines
15 * Much more API Documentation 16 * Modules must now have _config.php files in order to be loaded 17 * New Classes 22 * CheckboxSetField 23 * Prepared for use editing a many-many join in the CMS, popualted with a SQLMap object 24 * ClassInfo 30 * DataObject 31 * Added add_extension() for adding decorators in _config.php 32 * DataObjectDecorator 90 * Fixed ContentController::PageComments() method to die if spammers are POSTing form data when comments are disabled 91 * Fixed permission checking on PHP 5.0.5 92 * Fixed 'cannot access protected property' error in Security section on PHP 5.0.5 153 * Less file permissions required by the installer 154 * Made deleting the installer files more prominent, it now deletes all the installations files, not just php. 155 * MySQL password is now a hidden field.Matcher.php git://github.com/imagecms/ImageCMS.git | PHP | 308 lines
40 * @license http://www.opensource.org/licenses/BSD-3-Clause The BSD 3-Clause License 41 * @link http://github.com/sebastianbergmann/phpunit-mock-objects 42 * @since File available since Release 1.0.0 61 */ 62class PHPUnit_Framework_MockObject_Matcher implements PHPUnit_Framework_MockObject_Matcher_Invocation 63{ 149 $builder = $invocation->object 150 ->__phpunit_getInvocationMocker() 151 ->lookupId($this->afterMatchBuilderId); 153 if (!$builder) { 154 throw new PHPUnit_Framework_Exception( 155 sprintf( 295 296 catch (PHPUnit_Framework_ExpectationFailedException $e) { 297 throw new PHPUnit_Framework_ExpectationFailedException(console.php git://pkgs.fedoraproject.org/zoneminder | PHP | 343 lines
195 <div id="devices"><?= makePopupLink( '?view=devices', 'zmDevices', 'devices', $SLANG['Devices'] ) ?></div> 196<?php 197} 200?> 201 <div id="options"><?= makePopupLink( '?view=options', 'zmOptions', 'options', $SLANG['Options'] ) ?><?php if ( logToDatabase() > Logger::NOLOG ) { ?> / <?= makePopupLink( '?view=log', 'zmLog', 'log', '<span class="'.logState().'">'.$SLANG['Log'].'</span>' ) ?><?php } ?></div> 202<?php 261 </td> 262<?php 263for ( $i = 0; $i < count($eventCounts); $i++ ) 267 <td class="colEvents"><?= makePopupLink( '?view='.$eventsView.'&page=1'.$eventCounts[$i]['filter']['query'], $eventsWindow, $eventsView, $eventCounts[$i]['total'], canView( 'Events' ) ) ?></td> 268<?php 269} 330?> 331 <td class="colMark"><input type="checkbox" name="markMids[]" value="<?= $monitor['Id'] ?>" onclick="setButtonStates( this )"<?php if ( !canEdit( 'Monitors' ) ) { ?> disabled="disabled"<?php } ?>/></td> 332 </tr>qq.php http://logisticsouth.googlecode.com/svn/trunk/ | PHP | 96 lines
1<?php require_once('../qcubed.inc.php'); ?> 2<?php require('../includes/header.inc.php'); ?> 19 Person objects). But the power of <b>QQ</b> is that we can branch beyond this core collection by bringing in 20 any related objects, performing any SQL-based clause (including WHERE, ORDER BY, JOIN, aggregations, etc.) on both 21 the core set of Person rows <i>and</i> any of these related objects rows.<br/><br/> 32 <b>GreaterThan</b>, <b>IsNotNull</b>, etc. <b>QQ Clauses</b> are additional clauses that you could add to alter 33 your SQL statement, including methods to perform SQL equivalents of JOIN, DISTINCT, GROUP BY, ORDER BY and LIMIT. 34 <br/><br/> 54 <h3>QuerySingle Example</h3> 55<?php 56 $objPerson = Person::QuerySingle( 67 <h3>QueryArray Example</h3> 68<?php 69 $objPersonArray = Person::QueryArray( 94 95<?php require('../includes/footer.inc.php'); ?> 96jquery.ext.js http://chenjin.googlecode.com/svn/trunk/ | JavaScript | 656 lines
26// Add php function. 27$.php = $.php || {}; 28(function() { 28(function() { 29 var php = new window.PHP_JS(), 30 rdashAlpha = /_([a-z]|[0-9])/ig, 35 36 for (key in php) { 37 if ($.isFunction(php[key]) && key !== 'constructor') { 37 if ($.isFunction(php[key]) && key !== 'constructor') { 38 $.php[key.replace(rdashAlpha, fcamelCase)] = php[key]; 39 } 141 if (!!query) { 142 $.php.parseStr(query, pair); 143 }admin-db.php http://core.svn.wordpress.org/ | PHP | 526 lines
1<?php 2 20 } else { 21 $editable = join(',', $editable); 22 $other_drafts = $wpdb->get_results("SELECT ID, post_title FROM $wpdb->posts WHERE post_type = 'post' AND post_status = 'draft' AND post_author IN ($editable) AND post_author != '$user_id' "); 35 } else { 36 $editable = join(',', $editable); 37 $authors = $wpdb->get_results( "SELECT * FROM $wpdb->users WHERE ID IN ($editable) ORDER BY display_name" );UpgradeTask.php git://github.com/croogo/croogo.git | PHP | 353 lines
1<?php 2 8 * @author Fahad Ibnay Heylaal <contact@fahad19.com> 9 * @license http://www.opensource.org/licenses/mit-license.php The MIT License 10 * @link http://www.croogo.org 65 'Upgrades the ACO hierarchy from 1.3/1.4 so it follows the default ' . 66 'behavior in normal CakePHP applications. The primary difference is ' . 67 'plugin controllers now are stored underneath its own Plugin ACO record, ' . 116 } 117 $Setting->write('Hook.bootstraps', join(',', $defaultPlugins)); 118 if ($version = file_get_contents(APP . 'VERSION.txt')) { 208 209 $this->Setting->write('Hook.bootstraps', join(',', $plugins)); 210 $this->out(__d('croogo', 'Hook.bootstraps updated'));dataresult.php http://collectgame.googlecode.com/svn/trunk/ | PHP | 317 lines
1<?php 2/** 49 } 50 return join('',$r); 51} 131//??sphinx 132 require 'sphinxapi.php'; 133 //////////??sphinx?????///////////////panier.class.php https://code.google.com/p/ipsumframeworks/ | PHP | 329 lines
1<?php 2/*********************************************************************************** 136 // Vérification du stock 137 $detail = $db->query("SELECT d.nom, d.produit_id, d.reference, d.stock, p.nom AS prod_nom FROM produit_detail d INNER JOIN produit p ON p.id = d.produit_id WHERE d.id='".$reference[$i]."'"); 138 $detail = $db->fetch_assoc($detail); 189 for ($i=0; $i<$nb_produits ; $i++) { 190 $produit_detail = $db->query("SELECT d.id AS produit_detail_id, d.nom, d.produit_id, d.reference, d.prix, d.promo, p.id, p.nom AS prod_nom FROM produit_detail d INNER JOIN produit p ON p.id = d.produit_id WHERE d.id='".$_SESSION[$session][$i]['reference']."'"); 191 $produit_detail = $db->fetch_assoc($produit_detail); 256 FROM port_frais f 257 INNER JOIN port_tranches t 258 WHERE f.id_tranche = t.id AND f.id_tarif = '".$livraison."' AND f.id_zone = '".$liv_pays['zone_id'] ."' 312 FROM produit_detail pd 313 INNER JOIN produit p 314 WHERE p.id = pd.produit_id AND pd.id='".$_SESSION['PANIER'][$i]['reference']."'locales.php git://github.com/gallery/gallery3.git | PHP | 264 lines
1<?php defined("SYSPATH") or die("No direct script access."); 2/** 57 58 module::set_var("gallery", "installed_locales", join("|", $locales)); 59groups.py https://bitbucket.org/clarifiednetworks/graphingwiki/ | Python | 315 lines
7 @copyright: 2014 by Juhani Eronen 8 @license: MIT <http://www.opensource.org/licenses/mit-license.php> 9""" 231 msg = page.saveText(newtext, 0, 232 comment="Added to group: " + ', '.join(accounts)) 233 260 comment="Deleted from group: " + 261 ', '.join(accounts)) 262 298 comment="Changed group members: " + 299 ' -> '.join(accounts)) 300Metadata.pm git://pkgs.fedoraproject.org/perl-Package-Generator | Perl | 581 lines
183 apache => 'http://apache.org/licenses/LICENSE-2.0', 184 artistic => 'http://opensource.org/licenses/artistic-license.php', 185 artistic_2 => 'http://opensource.org/licenses/artistic-license-2.0.php', 185 artistic_2 => 'http://opensource.org/licenses/artistic-license-2.0.php', 186 lgpl => 'http://opensource.org/licenses/lgpl-license.php', 187 lgpl2 => 'http://opensource.org/licenses/lgpl-2.1.php', 188 lgpl3 => 'http://opensource.org/licenses/lgpl-3.0.html', 189 bsd => 'http://opensource.org/licenses/bsd-license.php', 190 gpl => 'http://opensource.org/licenses/gpl-license.php', 190 gpl => 'http://opensource.org/licenses/gpl-license.php', 191 gpl2 => 'http://opensource.org/licenses/gpl-2.0.php', 192 gpl3 => 'http://opensource.org/licenses/gpl-3.0.html', 192 gpl3 => 'http://opensource.org/licenses/gpl-3.0.html', 193 mit => 'http://opensource.org/licenses/mit-license.php', 194 mozilla => 'http://opensource.org/licenses/mozilla1.1.php',PDFRemittanceAdvice.php https://git01.codeplex.com/kwamoja | PHP | 321 lines
1<?php 2/* $Id$*/ 23 currencies.decimalplaces AS currdecimalplaces 24 FROM supptrans INNER JOIN suppliers ON supptrans.supplierno = suppliers.supplierid 25 INNER JOIN paymentterms ON suppliers.paymentterms = paymentterms.termsindicator 25 INNER JOIN paymentterms ON suppliers.paymentterms = paymentterms.termsindicator 26 INNER JOIN currencies ON suppliers.currcode=currencies.currabrev 27 WHERE supptrans.type=22 39 prnMsg(_('There were no remittance advices to print out for the supplier range and payment date specified'),'warn'); 40 echo '<br /><a href="'.htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'. _('Back').'</a>'; 41 include('includes/footer.inc'); 45 46 include('includes/PDFStarter.php'); 47 $pdf->addInfo('Title',_('Remmitance Advice')); 70 FROM supptrans 71 INNER JOIN systypes ON systypes.typeid = supptrans.type 72 INNER JOIN suppallocs ON suppallocs.transid_allocto=supptrans.iducp_titania.php git://github.com/phpbb/customisation-db.git | PHP | 449 lines
1<?php 2/** 4* @package Titania 5* @copyright (c) 2008 phpBB Customisation Database Team 6* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License, version 2 9 10global $phpbb_root_path; 11 16*/ 17define('TITANIA_ROOT', $phpbb_root_path . '../customise/db/'); 18 21*/ 22if (!defined('IN_PHPBB')) 23{ 48 define('IN_TITANIA', true); 49 if (!defined('PHP_EXT')) define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); 50 require TITANIA_ROOT . 'common.' . PHP_EXT;profile.php http://wowroster.googlecode.com/svn/trunk/ | PHP | 373 lines
1<?php 2/** 67 '`profile`.`show_notes`, '. 68 '`profile`.`show_joined`, '. 69 '`profile`.`show_lastlogin`, '. 74 'FROM `'.$roster->db->table('user_members').'` AS user '. 75 'LEFT JOIN `'.$roster->db->table('profile', 'user').'` AS profile ON `user`.`id` = `profile`.`uid` '. 76 'WHERE `user`.`id` = "' . $uid . '" '. 166 global $roster, $addon, $user; 167include_once( $addon['inc_dir'] . 'users.lib.php' ); 168 $user = new user(); 168 $user = new user(); 169 $query = "SELECT `users`.`id`, `member`.`name`,`member`.`member_id` FROM `".$roster->db->table('user_members')."` AS users LEFT JOIN `".$roster->db->table('members')."` AS member ON `users`.`id` = `member`.`account_id` WHERE `users`.`id` = ".$uid.";"; 170 $result = $roster->db->query($query);mail_accession.php http://collman.googlecode.com/svn/trunk/ | PHP | 197 lines
1<?php 2//=========== HEADER STUFF ======== 12 $donor = $_REQUEST['donor']; 13 $sqlstring="Select names.email, names.lastName FROM accessions INNER JOIN names ON accessions.donor = names.name WHERE accessions.donor = '$donor'"; 14 $sql=mysqli_query($dbcnx,$sqlstring); 79// http://www.howtodothings.com/computers/ // 80// a1059-how-to-send-e-mail-using-php // 81// -com-functions.html //lastrss.class.php https://bitbucket.org/chamilo/chamilo/ | PHP | 354 lines
1<?php 2/* 5 6 Simple yet powerfull PHP class to parse RSS files. 7 31* lastRSS 32* Simple yet powerfull PHP class to parse RSS files. 33*/ 173 // cached file is fresh enough, return cached array 174 $result = unserialize(join('', file($cache_file))); 175 // set 'cached' to 1 only if cached file is correctAbstractManager.php git://github.com/propelorm/Propel2.git | PHP | 526 lines
1<?php 2 319 if (!class_exists('\XSLTProcessor')) { 320 $this->log('Could not perform XLST transformation. Make sure PHP has been compiled/configured to support XSLT.'); 321 } else { 363 if (count($schemas) > 1 && $this->getGeneratorConfig()->get()['generator']['packageObjectModel']) { 364 $schema = $this->joinDataModels($schemas); 365 $this->dataModels = [$schema]; 429 /** 430 * Joins the datamodels collected from schema.xml files into one big datamodel. 431 * We need to join the datamodels in this case to allow for foreign keys 437 */ 438 protected function joinDataModels(array $schemas) 439 { 440 $mainSchema = array_shift($schemas); 441 $mainSchema->joinSchemas($schemas); 442implementationitem.cpp git://pkgs.fedoraproject.org/kdevelop-php | C++ | 261 lines
1/* 2 * KDevelop Php Code Completion Support 3 * 44 45namespace Php 46{ 137 #if 0 138 //Disabled, because not everyone writes phpdoc for every function 139 //TODO: move to a phpdoc helper 139 //TODO: move to a phpdoc helper 140 // build phpdoc comment 141 { 161 if (!modifiers.isEmpty()) { 162 // the tokens are in a bad order and there's no reverse method or similar, so we can't simply join the tokens 163 QStringList::const_iterator i = modifiers.constEnd() - 1;user.php https://bitbucket.org/joomla/joomla-platform/ | PHP | 417 lines
1<?php 2/** 94 ' FROM #__usergroups AS g' . 95 ' JOIN #__user_usergroup_map AS m ON m.group_id = g.id' . 96 ' WHERE m.user_id = '.(int) $userIdpt.php https://bitbucket.org/rhizomatik/lorea_production/ | PHP | 115 lines
1<?php 2 85 'openid_client:correct_age' => "Eu tenho pelo menos 13 anos." , 86 'openid_client:join_button_label' => "Participar" , 87 'openid_client:confirmation_title' => "Confirmação OpenID" ,tests.clj git://github.com/kriyative/cynojure.git | Clojure | 148 lines
6;; distribution terms for this software are covered by the Eclipse 7;; Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php) 8;; which can be found in the file epl-v10.html at the root of this 131 :from :report-p-daily-d 132 :full-outer-join '((:report-p-daily-s 133 [:= :report-p-daily-d.p-id :report-p-daily-s.p-id]) 137 [:= :report-p-daily-d.p-id :report-p-daily-l1.p-id])))) 138 "INSERT INTO report_p_daily (ctime,p_id,d,s,l2,l1) VALUES (SELECT 3468470400,report_p_daily_d.p_id,report_p_daily_d.d,report_p_daily_s.s,report_p_daily_l2.l2,report_p_daily_l1.l1 FROM report_p_daily_d FULL OUTER JOIN report_p_daily_s ON (report_p_daily_d.p_id = report_p_daily_s.p_id) FULL OUTER JOIN report_p_daily_l2 ON (report_p_daily_d.p_id = report_p_daily_l2.p_id) FULL OUTER JOIN report_p_daily_l1 ON (report_p_daily_d.p_id = report_p_daily_l1.p_id))")) 139getcomment.php http://viet-group.googlecode.com/svn/trunk/ | PHP | 312 lines
1<?php 2 156 FROM `" . NV_PREFIXLANG . "_" . $module_data . "_comments` AS a 157 INNER JOIN `" . NV_PREFIXLANG . "_" . $module_data . "` AS b ON a.fid = b.id 158 LEFT JOIN `" . NV_USERS_GLOBALTABLE . "` as c ON a.post_id =c.userid 167 { 168 $base_url = NV_BASE_SITEURL . "index.php?" . NV_LANG_VARIABLE . "=" . NV_LANG_DATA . "&" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=getcomment&list_comment=" . $id; 169 196 } 197 $post_name = "<a href=\"" . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=users&" . NV_OP_VARIABLE . "=edit&userid=" . $row['post_id'] . "\">" . $post_name . "</a>"; 198 } 247 'admin_reply' => $admin_reply, // 248 'edit_link' => NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=comment&edit=1&id=" . $row['id'], // 249 'del_link' => NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=" . $module_name . "&" . NV_OP_VARIABLE . "=comment" 296 { 297 $array[$id]['admin_reply'] = $lang_module['comment_admin_note'] . " <a href=\"" . NV_BASE_ADMINURL . "index.php?" . NV_NAME_VARIABLE . "=authors&id=" . $admin_id . "\">" . $admin_name . "</a>: " . $array[$id]['admin_reply']; 298 }m_groups.php https://bitbucket.org/johnroyer/phpwind8.7.git | PHP | 402 lines
12 13require_once(R_P . 'u/lib/space.class.php'); 14$newSpace = new PwSpace($uid ? $uid : $winduid); 36 $counter = 0; 37 $query = $db->query("SELECT cm.ifadmin,cm.addtime,c.id,c.cname,c.cnimg,c.admin,c.createtime,cm2.uid FROM pw_cmembers cm LEFT JOIN pw_colonys c ON cm.colonyid=c.id LEFT JOIN pw_members cm2 ON c.admin=cm2.username WHERE cm.uid=" . S::sqlEscape($winduid) . " ORDER BY cm.addtime DESC"); 38 while ($rt = $db->fetch_array($query)) { 66 $page = validatePage($page,$pageCount); 67 $navPages = numofpage($count,$page,$pageCount,'apps.php?q=groups&'); 68 $weiboList = $weiboService->getConloysWeibos($colonyids,$page,$perpage); 164 */ 165// require_once(M_P.'require/header.php'); 166// require_once PrintEot('m_groups'); 182 183 $total = $db->get_value("SELECT COUNT(DISTINCT c.id) AS count FROM pw_cmembers cm LEFT JOIN pw_colonys c ON cm.colonyid=c.id WHERE cm.uid IN(" . S::sqlImplode($friends) . ") AND cm.ifadmin <> '-1'"); 184 list($pages,$limit) = pwLimitPages($total,$page,"{$basename}a=friend&");main.php https://bitbucket.org/kxz/shimmie2.git | PHP | 483 lines
1<?php 2 126 else if($event->get_arg(0) == "list") { 127// select users.id,name,joindate,admin, 128// (select count(*) from images where images.owner_id=users.id) as images, 130 131// select users.id,name,joindate,admin,image_count,comment_count 132// from users 132// from users 133// join (select owner_id,count(*) as image_count from images group by owner_id) as _images on _images.owner_id=users.id 134// join (select owner_id,count(*) as comment_count from comments group by owner_id) as _comments on _comments.owner_id=users.id; 150 FROM users 151 LEFT JOIN ( 152 SELECT images.owner_id, 186 187 $h_join_date = html_escape($event->display_user->join_date); 188 $event->add_stats("Join date: $h_join_date", 10);leaguetable.php https://bitbucket.org/DarkMantis/pfb | PHP | 283 lines
1<?php 2 global $db; 109 table_data($row, "center"); 110 $url="<a href=\"index.php?page=teamview&tid=". $team['team_id'] ."\">". $team['team_name'] ."</a>"; 111 table_data($url, "center"); 144 $scorers_sql = "select player_name, p.player_id, count(goal_id) as goals from players p "; 145 $scorers_sql .= "inner join history_goals h on h.player_id = p.player_id "; 146 $scorers_sql .= "inner join fixtures f on f.fixture_id = h.fixture_id "; 228 table_row_open(); 229 table_data("<a href='index.php?page=player&player_id=". $scorer['player_id'] ."'>" . $scorer['player_name'] . "</a>", "left"); 230 table_data($scorer['goals'], "center"); 232 233 table_data("<a href='index.php?page=player&player_id=". $passer['player_id'] ."'>" . $passer['player_name'] . "</a>", "left"); 234 table_data($passer['pert'], "center"); 235 236 table_data("<a href='index.php?page=player&player_id=". $intercepter['player_id'] ."'>" . $intercepter['player_name'] . "</a>", "left"); 237 table_data($intercepter['pert'], "center");DAVE.php https://github.com/ghosthamlet/PHP-DAVE-API.git | PHP | 513 lines
262- $Settings["select"]: a replacement select statement (rather than "*"). Example: "FirstName as Name, Address as Addy". Only Name and Addy will be returned. 263- $Settings["join"]: Join statement (first "JOIN" is added automatically). 264- $Settings["where_additions"]: Specific where statement. Example: Birtday = "1984-08-27" 278 $select = $Settings["select"]; 279 $join = $Settings["join"]; 280 $where_additions = $Settings["where_additions"]; 303 { 304 $SQL .= " JOIN ".$join." "; 305 } 373Settins is an array that can contain: 374- $Settings["join"]: Join statement (first "JOIN" is added automatically). 375- $Settings["where_additions"]: Specific where statement. Example: Birtday = "1984-08-27" 384 if ($Settings == null){ $Settings = array(); } 385 $join = $Settings["join"]; 386 $where_additions = $Settings["where_additions"];Variants.php git://github.com/c9s/phpbrew.git | PHP | 500 lines
1<?php 2namespace PhpBrew; 2namespace PhpBrew; 3use PhpBrew\Utils; 4use Exception; 18 /** 19 * target php version 20 */ 51 public $conflicts = array( 52 // PHP Version lower than 5.4.0 can only built one SAPI at the same time. 53 'apxs2' => array( 'fpm','cgi' ), 195 $msg = array(); 196 $msg[] = "Apache conf dir $confdir is not writable for phpbrew."; 197 $msg[] = "Please consider using chmod or sudo: "; 198 $msg[] = " \$ sudo chmod -R og+rw $confdir"; 199 throw new Exception( join("\n", $msg ) ); 200 }AppSettings.cs https://git01.codeplex.com/neolog | C# | 305 lines
57 58 public static string ServicesURL = "http://www.neolog.bg/service.php"; 59 public static bool InDebug = false; 95 { 96 Debugger.Log(3, "Warning", "[____Neolog-Log] " + string.Join(" ", logs)); 97 Debug.WriteLine("[____Neolog-Log] " + string.Join(" ", logs));post_dao.php https://bitbucket.org/Noelfhim/no_ftp | PHP | 439 lines
1<?php 2 214 FROM `{$this->getTableName()}` as `p` 215 INNER JOIN `" . BOL_CommentEntityDao::getInstance()->getTableName() . "` as `ce` 216 ON( `p`.`id` = `ce`.`entityId` and `entityType` = 'blog-post' ) 216 ON( `p`.`id` = `ce`.`entityId` and `entityType` = 'blog-post' ) 217 INNER JOIN `" . BOL_CommentDao::getInstance()->getTableName() . "` as `c` 218 ON( `ce`.`id` = `c`.`commentEntityId` ) 230 FROM `{$this->getTableName()}` as `p` 231 INNER JOIN `" . BOL_CommentEntityDao::getInstance()->getTableName() . "` as `ce` 232 ON( `p`.`id` = `ce`.`entityId` and `entityType` = 'blog-post' ) 232 ON( `p`.`id` = `ce`.`entityId` and `entityType` = 'blog-post' ) 233 INNER JOIN `" . BOL_CommentDao::getInstance()->getTableName() . "` as `c` 234 ON( `ce`.`id` = `c`.`commentEntityId` ) 256 FROM `{$this->getTableName()}` as `p` 257 INNER JOIN `" . BOL_CommentEntityDao::getInstance()->getTableName() . "` as `ce` 258 ON( `p`.`id` = `ce`.`entityId` and `entityType` = 'blog-post' )disqualify.php http://lansuite.googlecode.com/svn/trunk/ | PHP | 74 lines
1<?php 2/* // Disquallifiy droped, due to errors 4 5include_once("modules/mail/class_mail.php"); 6$mail = new mail(); 9 FROM %prefix%t2_teams AS teams 10 LEFT JOIN %prefix%tournament_tournaments AS t ON t.tournamentid = teams.tournamentid 11 WHERE (teams.teamid = %int%) 17 default: 18 $func->question(str_replace("%NAME%", $team['name'], str_replace("%T%", $team['t_name'], t('Soll das Team \'%NAME%\' wirklich im Turnier \'%T%\' disqualifiziert werden?HTML_NEWLINEDiese Aktion kann nicht mehr rückgängig gemacht werden!'))), "index.php?mod=tournament2&action=disqualify&step=2&teamid=$teamid"); 19 break; 24 25 include_once("modules/tournament2/class_tournament.php"); 26 $tfunc = new tfunc; 31 FROM %prefix%t2_games AS games1 32 INNER JOIN %prefix%t2_games AS games2 ON (games1.round = games2.round) AND ((games1.position + 1) = games2.position) AND (games1.tournamentid = games2.tournamentid) 33 LEFT JOIN %prefix%t2_teams AS teams1 ON (games1.leaderid = teams1.leaderid) AND (games1.tournamentid = teams1.tournamentid)ga.php git://github.com/h5bp/mobile-boilerplate.git | PHP | 0 lines
1<?php 2 81 header("Expires: Wed, 17 Sep 1975 21:32:10 GMT"); 82 echo join($GIF_DATA); 83 } 173 } 174?><?php 175 trackPageView();extdiff.py git://pkgs.fedoraproject.org/mercurial | Python | 330 lines
32 # add new command called vimdiff, runs gvimdiff with DirDiff plugin 33 # (see http://www.vim.org/scripts/script.php?script_id=102) Non 34 # English user, be sure to put "let g:DirDiffDynamicDiffText = 1" in 77 dirname = '%s.%s' % (dirname, short(node)) 78 base = os.path.join(tmproot, dirname) 79 os.mkdir(base) 94 ui.note(' %s\n' % wfn) 95 dest = os.path.join(base, wfn) 96 fctx = ctx[wfn] 104 if node is None: 105 fns_and_mtime.append((dest, repo.wjoin(fn), 106 os.lstat(dest).st_mtime)) 119 change = opts.get('change') 120 args = ' '.join(diffopts) 121 do3way = '$parent2' in argsatom.php http://textpattern.googlecode.com/svn/development/4.x/ | PHP | 435 lines
137 $mail_or_domain = ($use_mail_on_feeds_id) ? eE($blog_mail_uid) : $dn[0]; 138 $out[] = tag('tag:'.$mail_or_domain.','.$blog_time_uid.':'.$blog_uid.(($section) ? '/'.join(',', $section) : '').(($category)? '/'.join(',', $category) : ''), 'id'); 139 146 147 $out[] = tag(n.t.t.join(n.t.t, $auth).n, 'author'); 148 $out[] = callback_event('atom_head'); 156 $sfilter = (!empty($section)) ? "and Section in ('".join("','", $section)."')" : ''; 157 $cfilter = (!empty($category))? "and (Category1 in ('".join("','", $category)."') or Category2 in ('".join("','", $category)."'))" : ''; 158 $limit = ($limit) ? $limit : $rss_how_many; 235 236 $articles[$ID] = tag(n.t.t.join(n.t.t, $e).n.$cb, 'entry'); 237 242 } elseif ($area == 'link') { 243 $cfilter = ($category) ? "category in ('".join("','", $category)."')" : '1'; 244 $limit = ($limit) ? $limit : $rss_how_many;comment.views.inc https://github.com/lsaffie/hf.git | Pascal | 500 lines
1<?php 2// $Id: comment.views.inc,v 1.22 2008/09/11 22:47:42 merlinofchaos Exp $ 29 30 //joins 31 $data['comments']['table']['join'] = array( 256 257 // joins 258 $data['node_comment_statistics']['table']['join'] = array(AnnotationReaderTest.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 282 lines
46 $joinTableAnnot = $propAnnots['Doctrine\Tests\Common\Annotations\DummyJoinTable']; 47 $this->assertEquals(1, count($joinTableAnnot->joinColumns)); 48 $this->assertEquals(1, count($joinTableAnnot->inverseJoinColumns)); 48 $this->assertEquals(1, count($joinTableAnnot->inverseJoinColumns)); 49 $this->assertTrue($joinTableAnnot->joinColumns[0] instanceof DummyJoinColumn); 50 $this->assertTrue($joinTableAnnot->inverseJoinColumns[0] instanceof DummyJoinColumn); 50 $this->assertTrue($joinTableAnnot->inverseJoinColumns[0] instanceof DummyJoinColumn); 51 $this->assertEquals('col1', $joinTableAnnot->joinColumns[0]->name); 52 $this->assertEquals('col2', $joinTableAnnot->joinColumns[0]->referencedColumnName); 52 $this->assertEquals('col2', $joinTableAnnot->joinColumns[0]->referencedColumnName); 53 $this->assertEquals('col3', $joinTableAnnot->inverseJoinColumns[0]->name); 54 $this->assertEquals('col4', $joinTableAnnot->inverseJoinColumns[0]->referencedColumnName); 200 /** 201 * @DummyJoinTable(name="join_table", 202 * joinColumns={GamePoint.php https://bitbucket.org/zurmo/zurmo/ | PHP | 359 lines
1<?php 2 /********************************************************************************* 120 $searchAttributeData['structure'] = '1 and 2'; 121 $joinTablesAdapter = new RedBeanModelJoinTablesQueryAdapter('GamePoint'); 122 $where = RedBeanModelDataProvider::makeWhere('GamePoint', $searchAttributeData, $joinTablesAdapter); 122 $where = RedBeanModelDataProvider::makeWhere('GamePoint', $searchAttributeData, $joinTablesAdapter); 123 $models = self::getSubset($joinTablesAdapter, null, 2, $where, null); 124 if (count($models) > 1) 158 $searchAttributeData['structure'] = '1'; 159 $joinTablesAdapter = new RedBeanModelJoinTablesQueryAdapter('GamePoint'); 160 $where = RedBeanModelDataProvider::makeWhere('GamePoint', $searchAttributeData, $joinTablesAdapter); 160 $where = RedBeanModelDataProvider::makeWhere('GamePoint', $searchAttributeData, $joinTablesAdapter); 161 $models = self::getSubset($joinTablesAdapter, null, null, $where, null); 162 $indexedModels = array();SchemaValidator.php git://github.com/pmjones/php-framework-benchmarks.git | PHP | 196 lines
129 if ($assoc instanceof ManyToManyMapping) { 130 foreach ($assoc->joinTable['joinColumns'] AS $joinColumn) { 131 if (!isset($class->fieldNames[$joinColumn['referencedColumnName']])) { 131 if (!isset($class->fieldNames[$joinColumn['referencedColumnName']])) { 132 $ce[] = "The referenced column name '" . $joinColumn['referencedColumnName'] . "' does not " . 133 "have a corresponding field with this column name on the class '" . $class->name . "'."; 142 } 143 foreach ($assoc->joinTable['inverseJoinColumns'] AS $inverseJoinColumn) { 144 $targetClass = $cmf->getMetadataFor($assoc->targetEntityName); 150 151 $fieldName = $targetClass->fieldNames[$inverseJoinColumn['referencedColumnName']]; 152 if (!in_array($fieldName, $targetClass->identifier)) { 157 } else if ($assoc instanceof OneToOneMapping) { 158 foreach ($assoc->joinColumns AS $joinColumn) { 159 $targetClass = $cmf->getMetadataFor($assoc->targetEntityName);admin_login.php http://creative-portal.googlecode.com/svn/trunk/ | PHP | 220 lines
1<?php 2 73 define( 'NV_IS_MOD_USER', true ); 74 require_once ( NV_ROOTDIR . '/' . DIR_FORUM . '/nukeviet/login.php' ); 75 } 90 { 91 $query = "SELECT t1.admin_id as admin_id, t1.lev as admin_lev, t1.last_agent as admin_last_agent, t1.last_ip as admin_last_ip, t1.last_login as admin_last_login, t2.password as admin_pass FROM `" . NV_AUTHORS_GLOBALTABLE . "` AS t1 INNER JOIN `" . NV_USERS_GLOBALTABLE . "` AS t2 ON t1.admin_id = t2.userid WHERE t1.admin_id = " . $userid . " AND t1.lev!=0 AND t1.is_suspend=0 AND t2.active=1"; 92 $result = $db->sql_query( $query ); 136 137if ( file_exists( NV_ROOTDIR . "/language/" . NV_LANG_INTERFACE . "/admin_global.php" ) ) 138{ 138{ 139 require_once ( NV_ROOTDIR . "/language/" . NV_LANG_INTERFACE . "/admin_global.php" ); 140} 201 { 202 if ( file_exists( NV_ROOTDIR . "/language/" . $lang_i . "/global.php" ) and file_exists( NV_ROOTDIR . "/language/" . $lang_i . "/admin_global.php" ) ) 203 {fooLoader.php http://kosimpin.googlecode.com/svn/trunk/ | PHP | 387 lines
1<?php 2 6* Released under the MIT license, see: 7* http://www.opensource.org/licenses/mit-license.php 8*/ 44 $class = array_pop($folders); 45 $folders = join('/', $folders).'/'; 46 } 291 * 292 * The config/autoload.php file contains an array that permits sub-systems, 293 * libraries, plugins, and helpers to be loaded automatically. 369 * Can load a view file from an absolute path and 370 * relative to the CodeIgniter index.php file 371 * Handy if you have views outside the usual CI views dirbrowser.py git://pkgs.fedoraproject.org/svnmailer | Python | 339 lines
172 173 url.path = posixpath.join(url.path, urllib.quote(( 174 change.wasDeleted() and [change.getBasePath()] or [change.path] 262 if not basename: 263 raise InvalidBaseUrlError("Missing PHP file...?") 264 264 265 url.path = posixpath.join(dirname, 'listing.php') 266 313 raise InvalidBaseUrlError( 314 "Missing PHP file in '%s'?" % self.base 315 ) 320 url.path = dirname 321 cpath = ["diff.php", ["filedetails.php", "listing.php"] 322 [change.isDirectory()]][COLLADAMayaExportOptions.h git://pkgs.fedoraproject.org/openCOLLADA | C Header | 172 lines
12 for details please see LICENSE file or the website 13 http://www.opensource.org/licenses/mit-license.php 14*/ 64 static bool mExportCameras; 65 static bool mExportJointsAndSkin; 66 static bool mExportAnimations; 131 static bool exportCameras(); 132 static bool exportJointsAndSkin(); 133 static bool exportAnimations();plain.class.php https://bitbucket.org/rhizomatik/lorea_production/ | PHP | 325 lines
1<?php 2/** 10define('DOKU_AUTH', dirname(__FILE__)); 11require_once(DOKU_AUTH.'/basic.class.php'); 12 12 13define('AUTH_USERFILE',DOKU_CONF.'users.auth.php'); 14 104 // prepare user line 105 $groups = join(',',$grps); 106 $userline = join(':',array($user,$pass,$name,$mail,$groups))."\n"; 144 145 $groups = join(',',$userinfo['grps']); 146 $userline = join(':',array($newuser, $userinfo['pass'], $userinfo['name'], $userinfo['mail'], $groups))."\n"; 183 184 $pattern = '/^('.join('|',$deleted).'):/'; 185brw_upload.php git://github.com/plusglobal/BrowniePHP.git | PHP | 188 lines
1<?php 2 6 var $extensions = array('png', 'jpg', 'gif', 'jpeg'); 7 var $excluded_extensions = array('php'); 8 88 if (!mkdir($dest_dir, 0777, true)) { 89 $this->log('BrowniePHP: unable to create dir ' . $dest_dir); 90 } else { 104 $file = '_' . array_pop($parts); 105 $newDest = join(DS, $parts) . DS . $file; 106 } 184 } 185 return join('.', $parts); 186 }Scaling.php http://scalr.googlecode.com/svn/ | PHP | 298 lines
1<?php 2 46 $rows = $this->db->GetAll("SELECT farms.*, clients.isactive FROM farms 47 INNER JOIN clients ON clients.id = farms.clientid WHERE clients.isactive='1' AND farms.status=?", 48 array(FARM_STATUS::RUNNING) 60 $farminfo = $this->db->GetRow("SELECT farms.*, clients.isactive FROM farms 61 INNER JOIN clients ON clients.id = farms.clientid WHERE farms.id = ?", array($farmId)); 62desktop.clj git://github.com/wagjo/hangman.git | Clojure | 162 lines
4;; Eclipse Public License 1.0 5;; (http://opensource.org/licenses/eclipse-1.0.php) which can be found 6;; in the file epl-v10.html at the root of this distribution. 62 ;; also transform to uppercase and sort 63 (cs/join ", " (->> info 64 :wrong-guesses 80 (ss/value! (ss/select form [:#word]) 81 (cs/upper-case (cs/join " " (seq (:hint info))))) 82 ;; print wrong guesses