Tuesday, 2011-04-19

*** Quits: JonMarkGo (~Jon@ool-18bfe16f.dyn.optonline.net) (Ping timeout: 250 seconds)00:01
*** Joins: kirillka (~Miranda@195.242.142.17)01:06
*** Joins: mellen (~thansen@cl-289.cph-01.dk.sixxs.net)01:14
*** Quits: wolog (~wolog@wolog.info) (Quit: leaving)02:16
*** Joins: wolog (~wolog@wolog.info)02:18
*** Joins: Cupertino (~Cupez@unaffiliated/cupertino)02:32
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 252 seconds)02:39
*** Joins: soustruh (~Miranda@firewall.czech-tv.cz)02:53
*** Joins: giallu (~giallu@fedora/giallu)03:11
*** Joins: soc42 (~soc42@e181179110.adsl.alicedsl.de)03:12
*** Quits: mellen (~thansen@cl-289.cph-01.dk.sixxs.net) (Ping timeout: 248 seconds)03:18
*** Joins: mellen (~thansen@x1-6-00-22-02-00-0c-40.k1109.webspeed.dk)03:19
*** Joins: [KK]Kirill (~Miranda@195.242.142.17)03:35
*** Quits: kirillka (~Miranda@195.242.142.17) (Disconnected by services)03:36
*** [KK]Kirill is now known as kirillka03:36
*** Joins: paulr (~IceChat09@cpc1-enfi9-0-0-cust389.hari.cable.virginmedia.com)04:34
dhx1paulr: hi04:37
paulrlo04:39
paulrmm, dhx04:41
paulrhow well you know sqlite?04:41
dhx1paulr: nothing specific... just the general gist of what it does04:42
dhx1paulr: have had no real need to use it before04:42
*** Quits: mellen (~thansen@x1-6-00-22-02-00-0c-40.k1109.webspeed.dk) (Ping timeout: 260 seconds)04:55
*** Joins: mellen (~thansen@cl-289.cph-01.dk.sixxs.net)05:08
paulrdhx: mm05:11
paulr:)05:11
*** Quits: mellen (~thansen@cl-289.cph-01.dk.sixxs.net) (Ping timeout: 248 seconds)05:13
paulrthis is tedious ;/05:14
paulrCREATE  TABLE IF NOT EXISTS `mantis_tag_table` (05:23
paulr  `id` INTEGER UNSIGNED NOT NULL AUTOINCREMENT ,05:23
paulr  `user_id` INTEGER UNSIGNED NOT NULL DEFAULT '0' ,05:23
paulr  `name` VARCHAR(100) NOT NULL DEFAULT '' ,05:23
paulr  `description` LONGTEXT NOT NULL ,05:23
paulr  `date_created` INTEGER UNSIGNED NOT NULL DEFAULT '1' ,05:23
paulr  `date_updated` INTEGER UNSIGNED NOT NULL DEFAULT '1' ,05:23
paulr  PRIMARY KEY (`id`, `name`) )05:23
*** Joins: Phileas1 (~chatzilla@vpn.rzz.ch)05:28
paulrwhy primary key on id, name??05:30
dhx1haha05:30
dhx1that is wrong05:30
*** Joins: mellen (~thansen@x1-6-00-22-02-00-0c-40.k1109.webspeed.dk)05:32
paulrhmm05:32
paulrwhat default values do you have on config table05:32
paulraccess_reqd I DEFAULT '0',05:33
paulr  46                           type I DEFAULT '90',05:33
paulrshouldn't that be 90 / 005:33
paulrnot 0 /90 :)05:33
dhx1I'm not sure of the context there05:34
paulrwow05:57
paulrthis is gonna be annoying05:57
paulrcan't rely on if( 0 == db_num_rows( $result ) )05:58
dhx1paulr: if I wanted to help with some coding... is there anything I can do? :)06:01
dhx1paulr: it seems that if I was to touch anything it'd break all your work :)06:01
paulri pushed branch to github last night06:02
dhx1paulr: I'll have a look then :)06:02
paulrYour browser either does not know how to handle cookies, or refuses to handle them.06:03
paulrwhat db query failing would cause thaT? :P06:03
dhx1paulr: can I rewrite some queries?06:03
dhx1paulr: SQL standard as opposed to MySQL crap06:03
paulri thought ours were standard ;p06:04
dhx1far from06:04
paulrI thought they were all select * from table ;p006:05
dhx1I assume there is some sort of code to handle query conversion/translation (or search/replace)?06:05
dhx1or would I need to look at that too?06:05
paulrthe pdo layer is quite light06:05
dhx1yeah those are the same... it's more for ORDER BY, GROUP BY, etc clauses06:05
paulri'd take a difficult db06:05
paulrthat you'd expect to play up ;p06:05
paulrFor most databases, PDOStatement::rowCount() does not return the number of rows affected by a SELECT statement. Instead, use PDO::query() to issue a SELECT COUNT(*) statement with the same predicates as your intended SELECT statement, then use PDOStatement::fetchColumn() to retrieve the number of rows that will be returned. Your application06:05
dhx1IMO the best approach is to use an approach similar to string translations06:05
dhx1so we can rewrite queries on a per-database-backend approach where necessary06:06
dhx1it would be the fastest, easiest and most accurate approach06:06
dhx1at the cost of needing to test against each database backend we support... which we should do anyway06:06
paulr---------------------------06:07
paulrFind06:07
paulr---------------------------06:07
paulrCan't find the text:06:07
paulr"cookie"06:07
paulr---------------------------06:07
paulrOK06:07
paulr---------------------------06:07
paulroops06:07
dhx1paulr: COUNT(*) is the only approach we should use... it has to do with asynchronous vs synchronous query methods06:07
paulr# return true if a matching cookie was found06:07
paulrhow evil:06:07
paulr# return true if a matching cookie was found06:07
paulr$row = db_fetch_array( $result );06:07
paulrif( !db_fetch_array( $result ) ) {06:07
paulruser_cache_database_result( $row );06:07
paulrreturn true;06:07
* paulr wonders if that pasted06:07
paulr] <paulr> ---------------------------06:08
paulr[11:07.16] <p06:08
paulr# return true if a matching cookie was found06:08
* paulr gives up06:08
paulr# return true if a matching cookie was found06:08
paulr[11:08.32] $row :Unknown command06:08
paulrcool06:08
paulranyway06:08
paulrdehx: what ydo you think of the change I just pushed?06:22
dhx1checking06:23
*** Joins: Github (~Github@sh1-ext.rs.github.com)06:30
Githubmantisbt: master Stefan Pettersson * acf78fa (8 files in 2 dirs): Use CSS classes instead of bgcolor to apply different status styles ... - http://bit.ly/gPjnKE06:30
*** Parts: Github (~Github@sh1-ext.rs.github.com) ()06:30
CIA-35Mantisbt: stefpet * racf78fa5d9d8 / (8 files in 2 dirs): Use CSS classes instead of bgcolor to apply different status styles06:30
paulrthat doens't look like checking :(06:33
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 246 seconds)06:34
dhx1was half way through doing it06:35
dhx1Undefined variable: t_driver_type06:35
dhx1Filename: MantisDatabase.class.php06:35
*** Joins: giallu (~giallu@fedora/giallu)06:35
dhx1Line: 9506:35
dhx1/var/www/localhost/htdocs/mantis-git/core/database_api.php72MantisDatabase::get_driver_instance( <string>'mysql' )06:35
dhx1do I have to update configuration?06:35
paulryea06:36
paulrfor now pdo_mysql06:36
dhx1ah06:37
dhx1E_ERRORCall to undefined function db_query()06:37
dhx106:37
dhx1Filename: custom_field_api.php06:37
dhx106:37
dhx106:37
dhx1Line: 126206:37
dhx1the stack trace also seems broken now?06:38
paulrin what way?06:38
dhx1it doesn't show for that error (it's blank)06:38
dhx1I get the headings:06:38
dhx1FilenameLineFunctionArgs06:38
dhx1and the page contents dump06:38
dhx1no menu showing06:39
paulrmenu = correct06:39
paulras, atm, it's avoiding html api06:39
paulrcompletely06:39
dhx1it's probably easier if I fix these bugs and push a branch to github for you06:40
paulrcan you edit my branch?06:40
*** Joins: rolfkleef (~rolfkleef@92.254.21.180)06:40
paulri'm a bit confused as to why you get no stack trace06:41
paulrin fact, I know ;p06:41
paulrset:06:41
paulr$g_show_friendly_errors = OFF;06:41
paulrin config inc06:41
dhx1ah06:41
dhx1I was using the old config :)06:41
paulralthough, I dont get the headings06:42
* paulr checks error api06:42
paulryea, not sure why you get filename headers ;/06:44
paulryou should either get:06:44
paulra) application error, text, ID:user_api:39706:44
paulror06:44
paulrb) full dump06:44
paulridea being option A is for users, and has a line number to give someone a clue or where bug occurs06:45
paulroption B is for dev's working on some issue06:45
dhx1can we split the error page into a "template" that is included?06:45
dhx1ie. another PHP file that is mostly HTML with a few <?php if $t_blah ... ?> etc clauses06:46
paulrsurprising that's the plan ;p06:46
paulri.e. i'd like error page to be just that06:47
paulran unseen error page06:47
paulrtherefore, can look **different**06:47
dhx1yeah06:47
paulrand then rather then having horrendous loops where we have06:47
paulrI mean, I had the old error code06:48
paulrfalling over in html_top106:48
paulras that calls config_get06:48
paulrwhich calls db api06:48
paulrand I hadn't got as far as writing db_table_Exists for pdo06:48
paulrI think I might have nuked some of the CSS that daryn added to error api though with this06:49
dhx1never mind, it'll get rewritten 10 times :D06:51
dhx1you've done the hard work though hah06:51
dhx1(ie. refactoring the old code)06:52
*** Quits: mellen (~thansen@x1-6-00-22-02-00-0c-40.k1109.webspeed.dk) (Ping timeout: 248 seconds)06:55
paulrdhx: can you fix http://127.0.0.1/view_all_set.php?type=1&temporary=y&handler_id=1&hide_status=80 ?07:04
dhx1let me see07:04
dhx1yes, change:07:06
dhx1html_meta_redirect( $t_redirect_url, 0 );07:06
dhx1to07:06
dhx1print_header_redirect( $t_redirect_url );07:06
dhx1hang on, I'll commit a cleaner patch07:07
dhx1brb07:12
*** Quits: dhx1 (~anonymous@60-242-108-164.static.tpgi.com.au) (Remote host closed the connection)07:13
paulrright going to go for a swim07:13
paulri'll07:13
paulrfdsk07:13
paulrajksldjsak07:13
*** Joins: dhx1 (~anonymous@60-242-108-164.static.tpgi.com.au)07:14
paulr[12:13.17] <paulr> right going to go for a swim07:15
paulr[12:13.19] <paulr> i'll07:15
paulr[12:13.20] <paulr> fdsk07:15
paulr[12:13.21] <paulr> ajksldjsak07:15
paulrcontinue later on tonight07:15
dhx1I'll push a branch called "dbfixes" to Github with my commits07:16
paulrwe may/maynot cros07:16
paulrhmm07:16
dhx1you can merge those across quite easily07:16
paulrjust leave instructions for what to do with it07:16
paulr!07:16
dhx1just do:07:16
dhx1ok07:16
paulrbbiab07:16
dhx1paulr: I can just send a pull request and you should be able to merge it via github07:18
*** Quits: Phileas1 (~chatzilla@vpn.rzz.ch) (Quit: ChatZilla 0.9.86.1 [Firefox 3.6.16/20110319135224])07:35
*** Quits: giallu (~giallu@fedora/giallu) (*.net *.split)07:58
*** Quits: scribe9343423 (~scribe934@static.96.23.63.178.clients.your-server.de) (*.net *.split)07:58
*** Quits: siebrand (~chatzilla@535392CA.cm-6-4c.dynamic.ziggo.nl) (*.net *.split)07:58
*** Quits: rolfkleef (~rolfkleef@92.254.21.180) (*.net *.split)07:58
*** Quits: killefiz (~sven@fedora/pdpc.base.killefiz) (*.net *.split)07:58
*** Quits: Cupertino (~Cupez@unaffiliated/cupertino) (*.net *.split)07:58
*** Quits: chilts (~chilts@184-106-200-232.static.cloud-ips.com) (*.net *.split)07:58
*** Quits: dhx1 (~anonymous@60-242-108-164.static.tpgi.com.au) (*.net *.split)07:58
*** Quits: deepy (~deepy@wrongplanet/deepa) (*.net *.split)07:58
*** Quits: paulr (~IceChat09@cpc1-enfi9-0-0-cust389.hari.cable.virginmedia.com) (*.net *.split)07:58
*** Quits: CIA-35 (~CIA@208.69.182.149) (*.net *.split)07:58
*** Quits: soustruh (~Miranda@firewall.czech-tv.cz) (*.net *.split)07:58
*** Quits: chris38` (~chris38@bayle.eu) (*.net *.split)07:58
*** Quits: wolog (~wolog@wolog.info) (*.net *.split)07:58
*** Quits: `Leonard (~Leonard@150.237.48.99) (*.net *.split)07:58
*** Quits: PennStater (Aaron@unaffiliated/pennstater) (*.net *.split)07:58
*** Quits: kirillka (~Miranda@195.242.142.17) (*.net *.split)07:58
*** Quits: soc42 (~soc42@e181179110.adsl.alicedsl.de) (*.net *.split)07:58
*** Joins: dhx1 (~anonymous@60-242-108-164.static.tpgi.com.au)08:01
*** Joins: rolfkleef (~rolfkleef@92.254.21.180)08:01
*** Joins: giallu (~giallu@fedora/giallu)08:01
*** Joins: paulr (~IceChat09@cpc1-enfi9-0-0-cust389.hari.cable.virginmedia.com)08:01
*** Joins: kirillka (~Miranda@195.242.142.17)08:01
*** Joins: soustruh (~Miranda@firewall.czech-tv.cz)08:01
*** Joins: Cupertino (~Cupez@unaffiliated/cupertino)08:01
*** Joins: wolog (~wolog@wolog.info)08:01
*** Joins: scribe9343423 (~scribe934@static.96.23.63.178.clients.your-server.de)08:01
*** Joins: `Leonard (~Leonard@150.237.48.99)08:01
*** Joins: siebrand (~chatzilla@535392CA.cm-6-4c.dynamic.ziggo.nl)08:01
*** Joins: CIA-35 (~CIA@208.69.182.149)08:01
*** Joins: deepy (~deepy@wrongplanet/deepa)08:01
*** Joins: killefiz (~sven@fedora/pdpc.base.killefiz)08:01
*** Joins: chilts (~chilts@184-106-200-232.static.cloud-ips.com)08:01
*** Joins: PennStater (Aaron@unaffiliated/pennstater)08:01
*** Joins: chris38` (~chris38@bayle.eu)08:01
dhx1jreese: hi :)08:34
jreeseHowdy08:35
jreeseJust about to head to work08:35
dhx1jreese: Paul's DB branch seems to work nicely without ADOdb.... tested with MySQL only though08:35
dhx1and haven't tested upgrades08:36
dhx1jreese: ah ok :)08:36
dhx1jreese: keep a look out on github for the latest MantisBT work08:36
jreesedhx1: if upgrades still work well, then its fine with me, but without upgrades, IMO its not ready for master branch08:37
dhx1jreese: still some work to do... but it's better than I was expecting :)08:37
jreeseTodd to hear08:38
jreeseGood even08:38
dhx1:)08:38
jreeseCan you tell I'm on my phone? :P08:38
dhx1haha08:39
dhx1jreese: any idea how to change the reference branch a branch on github refers to?08:39
dhx1for instance, I have a local tracking branch of Paul's db branch08:39
dhx1then I push that branch to my github repository08:40
dhx1and Github thinks that the reference is mantisbt/mantisbt instead of grangeway/mantisbt/db08:40
jreeseThat I have no idea08:40
dhx1jreese: no problem, I'll look around :)08:41
jreeseOk, ill be. Back in about 20 mins08:41
dhx1later08:42
*** Joins: mantisbt_74396 (3e995de2@gateway/web/freenode/ip.62.153.93.226)08:44
mantisbt_74396:)08:44
*** Parts: mantisbt_74396 (3e995de2@gateway/web/freenode/ip.62.153.93.226) ()08:46
*** Joins: daryn (~daryn@h158.249.190.173.static.ip.windstream.net)08:52
dhx1daryn: hey08:54
darynhello08:54
dhx1https://github.com/davidhicks/mantisbt/tree/dbfixes08:55
dhx1I've asked Paul to pull those fixes into his db branch08:55
dhx1with those, all the MantisBT functionality I've tested (which is a fair portion) seems to work OK08:55
darynok, i'm reviewing as well and have some changes.  actually quite a few.  mostly moving things around and removing dependencies, self or otherwise08:56
daryni'll take a look at yours08:56
daryndhx1, i have quite a significant 2.0 (or whatever) branch going. it isn't quite working yet but i'm going to try to starting pushing some stuff to github today so people can start taking a look08:58
dhx1daryn: sounds good :)08:58
dhx1daryn: we're going to have so much fun merging though :P08:58
darynthere will be additional refactoring where the branch will be rewritten but i'd rather get eyes on soon08:58
dhx1daryn: basically I think we'll all need to decide on what is good/what is not08:59
darynwhat are you working on?08:59
*** Joins: soc42 (~soc42@e181179110.adsl.alicedsl.de)08:59
dhx1and then give each person a few days to merge their branches one at a time - from scratch because there will be so many merge conflicts08:59
dhx1daryn: was just doing some reviewing/bugfixing09:00
daryni have most of paulrs changes already in my branch09:00
darynjust moved09:00
dhx1daryn: great :)09:00
darynand using camel case in class function names rather than _09:00
dhx1I'd prefer if you kept the "master" development branch and pulled in branches from me/paul09:00
darynwell that will probably make it easier for me anyway09:01
dhx1you seem to have the largest amount of changes :)09:02
dhx1namely directory restructuring09:02
darynyeah...well, much more than that actually but yeah.09:02
darynhm...09:03
darynyou know i think i'm just going to make a temp commit and push so you can see what i've got09:03
darynand start commenting09:03
dhx1:)09:04
dhx1GitHub makes it easy to make a few patches and send a pull request back :)09:04
darynthere is still a good bit of reworking and 'unifying' to do as i'm learning as i go and correcting things09:05
dhx1FYI error_api's look and feel is screwed in Paul's branch09:06
dhx1I'm happy to work on that using the new directory layout09:06
darynyeah, i told him i had some issues with it but haven't fully reviewed it yet09:06
dhx1I really want to try and push towards putting the HTML for that in a separate file we can include09:06
darynyes09:06
dhx1at least it is now decoupled from a lot of unwanted MantisBT code09:06
darynyeah...partially anyway09:07
dhx1yeah... we can make it better still :)09:07
* jreese is back now09:11
jreese20 minutes turned into 30 due to torrential rain09:11
dhx1:)09:13
daryndhx1, jreese, giallu https://github.com/daryn/mantisbt/tree/refactor/application09:27
darynit is broken and in progress so there is stuff that doesn't belong, stuff that will change, etc.09:27
darynbut I think you can see where I'm heading09:28
jreeseI'll try to look at that sometime today09:29
gialluyo09:29
darynk.  most of it is in application/MantisBT09:29
darynhi giallu09:29
darynno template class in yet because i haven't gotten to that yet but i have that part in another branch09:30
dhx1daryn: thanks, will take a look09:31
dhx1giallu: hi09:31
darynlooking forward to comments09:32
darynbtw, you can get to any existing page directly.  index.php is rerouting to the new application but you can login by going to login_page.php09:33
dhx1:)09:34
gialludaryn, can we kill *.class.php files? ;)09:35
daryni don't care...09:35
darynthat's just been the standard so i kept it09:36
daryni'd be happy to use .php09:36
darynjreese?  dhx1? paulr?09:36
dhx1agreed, drop .class.php09:37
jreesedoesn't much matter to me09:37
dhx1it can be inferred from the directory structure :)09:37
dhx1do we need core/classes/MantisBT/09:37
dhx1instead of just core/09:38
dhx1I'm not sure what the Zend standard is though09:38
dhx1also can I suggest we drop the old variable naming scheme09:38
dhx1$t, $p, $f, etc09:39
darynall of the legacy stuff is in core09:39
darynI'm adding no new stuff there09:39
dhx1application/core I see09:39
daryncore will go away completely when the rest of the app is converted09:39
darynwe could name core legacy I guess09:39
darynto be more clear09:40
dhx1core/ seems like the new stuff and application/core/ the old?09:40
darynoh, crap09:40
jreesezounds! today is the launch of Portal 2!09:40
darynignore core09:40
jreeseI should have called in sick!09:40
dhx1ah ok09:40
darynapplication/core is correct legacy09:40
dhx1jreese: haha09:40
jreeseand I already told my brother-in-law I'd help install his new printer after work today....09:41
* jreese cries09:41
darynwell that's like 5 minutes...09:42
jreesehahahahahaha09:42
jreeseI wish09:42
dhx1daryn: it's probably Windows with legacy HP drivers... :P09:42
jreeseI'll have to stop at the store during lunch or on my way home...09:43
dhx1:)09:46
*** Joins: fusenigk (~Karsten@p4FFC9F50.dip.t-dialin.net)09:51
daryngiallu, dhx1, .class is gone.  history rewritten09:52
darynonly for new classes though.09:52
gialluright09:52
dhx1:)09:52
dhx1daryn: wow... I didn't realise you had reworked so much of the API... nice work!09:53
darynwell when you start dependency injection it 'propogates violently to the root objects'09:54
darynthanks09:54
darynthere are pieces in multiple places so if you see dupe code it will be removed as i work out where it belongs09:54
dhx1yep09:56
*** Quits: kirillka (~Miranda@195.242.142.17) (Quit: kirillka)10:02
*** Joins: jreese_ (~jreese@noswap.com)10:13
*** Quits: jreese (~jreese@noswap.com) (Disconnected by services)10:13
*** jreese_ is now known as jreese10:13
*** Joins: JonMarkGo (~Jon@ool-18bfe16f.dyn.optonline.net)10:24
paulrmoo10:30
paulrhas dhx gone?10:30
paulrdaryn?10:32
darynya10:33
paulri have a pull request from dx10:33
paulra) what do I do10:34
paulrb) how do I fix the conflicts in it ? :P10:34
darynpull will merge and tell you what the conflicts are...then you fix them and commit10:37
paulrhmm10:39
*** Joins: soc42_ (~soc42@f052057114.adsl.alicedsl.de)10:41
paulrok10:41
paulrI dont get it10:42
paulrbut i'll assume it's fine10:42
daryndon't get what?10:42
paulrwell, looking at patch10:42
paulrit should conflict10:42
paulrbut it does't10:42
paulranyway10:42
paulrgit push origin db10:42
*** Quits: soc42 (~soc42@e181179110.adsl.alicedsl.de) (Ping timeout: 246 seconds)10:42
paulrI do that at end?10:42
paulror will that update git.mantisbt.org?10:42
darynorigin will update mantisbt.org10:42
jreesedepends on what origin is10:42
daryngit is pretty smart so i'm not too surprised it doesn't conflict10:43
paulrso git push github db:Db right?10:43
darynyah10:43
paulrshame github dont give out the correct help ;p10:43
darynwell if the local branch name is the same as remote you can probably just git push github10:44
paulr[01:37.50] <dhx1> jreese: still some work to do... but it's better than I was expecting :)10:44
jreesegithub assumes you've cloned from them, which is why I said it depends on what origin is10:44
paulrand what was that suppsoed to mean10:44
paulrhttp://git.mantisbt.org/?p=mantisbt.git;a=commitdiff;h=9c64d885ce30699e26641ea60eb15239487dc3ab10:46
paulrahh john10:46
paulrdoes your secure seession support hit db in some way?10:46
jreesecsrf protection uses the database, yes10:47
paulrvia what api10:47
jreeseor at least iirc10:47
paulrhmm, dhx's patch broke something10:47
jreesenvm, csrf should only be using php sessions10:48
paulrit keeps wanting me to log in when i'm trying to use sqlite ;p10:49
paulrYou are visiting a secure page, and your secure session has expired. Please authenticate yourself to continue.10:49
paulrso some db query isn't working I'm guessing ;p10:49
jreesesounds more like php sessions aren't storing correctly10:50
paulrit was fine with mysql10:50
jreeseoh10:50
jreeseyou're visiting an admin page10:50
jreese*that* uses the token_api, which does hit the database...10:50
jreesetoo many different ways that mantis stores temporary data10:51
paulrdid i mention i'm not in work this week ?10:52
paulranyway, we can't really rely on a row count from select queries officially10:55
*** Quits: Cupertino (~Cupez@unaffiliated/cupertino) (Quit: I give up...)11:02
paulrhow well did giallu's import/export model work?11:25
paulrif(( $t_row['user_id'] == $t_user_id ) || db_prepare_bool( $t_row['is_public'] ) ) {11:28
paulrw11:28
paulrt11:28
paulrf11:28
*** Quits: giallu (~giallu@fedora/giallu) (Ping timeout: 260 seconds)11:35
*** Joins: tmckeown (~Adium@64.191.211.43)12:09
*** Parts: tmckeown (~Adium@64.191.211.43) ()12:11
*** Quits: soustruh (~Miranda@firewall.czech-tv.cz) (Quit: visit http://wormscesky.cz)12:57
*** Quits: rolfkleef (~rolfkleef@92.254.21.180) (Ping timeout: 240 seconds)13:05
*** Quits: soc42_ (~soc42@f052057114.adsl.alicedsl.de) (Remote host closed the connection)14:20
*** Joins: giallu (~giallu@fedora/giallu)14:36
*** Joins: mellen (~thansen@x1-6-00-22-02-00-0c-40.k1109.webspeed.dk)14:47
*** Quits: mellen (~thansen@x1-6-00-22-02-00-0c-40.k1109.webspeed.dk) (Ping timeout: 248 seconds)15:02
*** Joins: mellen (~thansen@cl-289.cph-01.dk.sixxs.net)15:03
*** Joins: soc42 (~soc42@f052057114.adsl.alicedsl.de)15:18
* paulr sighs15:26
*** Parts: fusenigk (~Karsten@p4FFC9F50.dip.t-dialin.net) ()16:12
*** Quits: soc42 (~soc42@f052057114.adsl.alicedsl.de) (Remote host closed the connection)16:25
*** Joins: fusenigk (~Karsten@p4FFC9F50.dip.t-dialin.net)16:27
paulrnew push16:54
darynpaulr, what changes?16:57
paulrsee github16:57
darynblah! summary...i'm working :P16:57
paulrdb_num_rows removed a bit16:58
paulrso every file :)16:59
paulr& in urls should be &amp; right?17:01
darynyeah17:02
*** Quits: fusenigk (~Karsten@p4FFC9F50.dip.t-dialin.net) (Quit: fusenigk)17:04
*** Quits: daryn (~daryn@h158.249.190.173.static.ip.windstream.net) (Quit: Ex-Chat)17:45
*** Quits: siebrand (~chatzilla@535392CA.cm-6-4c.dynamic.ziggo.nl) (Quit: ChatZilla 0.9.86.1 [Firefox 4.0/20110318052756])18:11
paulrjohn?18:15
paulrjreese :)18:18
*** Quits: JonMarkGo (~Jon@ool-18bfe16f.dyn.optonline.net) (Ping timeout: 246 seconds)18:39
paulr$t_query = '?' . join( '&', $t_clean_pairs );18:43
paulrshould that be &amp;  ? :P18:43
paulror are we doing that conversion in a different function ;p18:44
jreesepaulr: it all depends on where it's going and how it's being used18:44
paulrpermalink.php currently does:18:44
paulr$f_url = string_sanitize_url( gpc_get_string( 'url' ) );18:44
paulr$t_safe_url = string_display_line( $f_url );18:44
paulr$t_safe_url = string_display_line( $f_url );18:45
paulrecho "<a href=\"$t_safe_url\">$t_safe_url</a></p>";18:45
jreeseso in that case its string_display_line that should be somehow converting & to &amp; -- not string_sanitize_url18:45
paulrwell18:46
paulrit's not really stringdisplay line's job18:46
jreeseit should be18:46
paulrsurely you'd have to parse the url to work out whether & needs replacing?18:46
paulre.g. $t_safe_url doesn't need to show &amp; for the 2nd one18:46
paulrjust for the first ;p18:46
jreesewell, yes18:47
paulrcan we blanket replace &->&amp;18:47
jreeseno18:47
paulrin a url? why not? :)18:47
jreesethis is why I hate web apps18:47
paulr;p18:47
jreese<a href="?a=b&c=d">?a=b&amp;c=d</a>18:48
jreesethat's the correct output18:48
paulrerm18:48
paulrisn't it other way around?18:48
jreeseno18:48
paulrI thought <a href needed to include &amp;18:48
jreeseno18:48
jreeseonly if the actual *data* includes an & in it18:48
jreesealthough iirc that shouldn't be &amp; it should be a %xx18:49
jreeseor something like that18:49
jreesethis is why I hate web apps18:49
paulrhmm18:57
paulrhow do i nuke the last commit I did to git18:57
paulri've not pushed it18:58
jreese`git reset HEAD~1` will drop the commit while leaving the files the way they were; `git reset --hard HEAD~1` will also revert all your files at the same time18:58
paulroops18:59
paulri'm confused18:59
paulrahh it might be alright19:00
*** Quits: scribe9343423 (~scribe934@static.96.23.63.178.clients.your-server.de) (Remote host closed the connection)20:00
*** Joins: scribe9343423 (~scribe934@static.96.23.63.178.clients.your-server.de)20:00
*** Quits: paulr (~IceChat09@cpc1-enfi9-0-0-cust389.hari.cable.virginmedia.com) (Quit: Oops. My brain just hit a bad sector)20:11
*** Quits: deepy (~deepy@wrongplanet/deepa) (Ping timeout: 276 seconds)20:59
*** Joins: deepy (~deepy@c83-248-154-79.bredband.comhem.se)21:06

Generated by irclog2html.py 2.9.2 by Marius Gedminas - find it at mg.pov.lt!