strg + V
Re: strg + V
$sql_ref = &$this->sql;
$update_user = function ($pass_new,$email,$pass_old) use (&$sql_ref) {
if(md5($pass_old) != $_SESSION["passwd"])
return false;
$sql_ref->query("UPDATE `".USERS_TABLE."` SET ".(empty($email)?'':"`email` = '".$email."'").(empty($email) XOR empty($pass_new)?"":", ").(empty($pass_new)?"":"`pass` = '".md5($pass_new)."'")." WHERE id=".$_SESSION["id"]);
return true;
};
$update_user = function ($pass_new,$email,$pass_old) use (&$sql_ref) {
if(md5($pass_old) != $_SESSION["passwd"])
return false;
$sql_ref->query("UPDATE `".USERS_TABLE."` SET ".(empty($email)?'':"`email` = '".$email."'").(empty($email) XOR empty($pass_new)?"":", ").(empty($pass_new)?"":"`pass` = '".md5($pass_new)."'")." WHERE id=".$_SESSION["id"]);
return true;
};
Bogs sind meine Spezialität - Signaturen sind eigentlich doch überflüssig...
Re: strg + V
$sql = $this->sql->query("SELECT pm.msg_id,pm.author_id,pm.message_time,pm.message_subject,pm.message_text,pm.to_address,bg_users.name AS userfrom,pm_to.pm_deleted,pm_to.pm_unread FROM bg_privmsgs AS pm,bg_privmsgs_to AS pm_to,bg_users WHERE (pm.author_id=bg_users.id && pm.msg_id=pm_to.msg_id && pm_to.user_id=".$_SESSION['id']." && pm.msg_id=".mysql_real_escape_string($_GET['id']).")");
if ($msg = $sql->fetch_object()) {
$this->sql->query("UPDATE bg_privmsgs_to AS pm_to SET pm_to.pm_unread=0 WHERE (pm_to.msg_id=".$msg->msg_id." && pm_to.user_id=".$_SESSION['id'].")");
$this->template->assign_vars(array(
'USER' => $msg->userfrom,
'SUBJECT' => $msg->message_subject,
'TEXT' => parse_bbcode($msg->message_text),
'DATE' => date("d-m-Y H:i:s",$msg->message_time),
'S_DISPLAY_MESSAGE' => true,
'ID' => $_GET['id']
));
@pFT: ist doch nur 'n md5-Hash…
if ($msg = $sql->fetch_object()) {
$this->sql->query("UPDATE bg_privmsgs_to AS pm_to SET pm_to.pm_unread=0 WHERE (pm_to.msg_id=".$msg->msg_id." && pm_to.user_id=".$_SESSION['id'].")");
$this->template->assign_vars(array(
'USER' => $msg->userfrom,
'SUBJECT' => $msg->message_subject,
'TEXT' => parse_bbcode($msg->message_text),
'DATE' => date("d-m-Y H:i:s",$msg->message_time),
'S_DISPLAY_MESSAGE' => true,
'ID' => $_GET['id']
));
@pFT: ist doch nur 'n md5-Hash…
Bogs sind meine Spezialität - Signaturen sind eigentlich doch überflüssig...
Re: strg + V
$this->template->destroy();
Bogs sind meine Spezialität - Signaturen sind eigentlich doch überflüssig...
Re: strg + V
select `m`.`id` AS `id`,`m`.`haufen_id` AS `haufen_id`,`m`.`fuer_ress_id` AS `fuer_ress_id`,`m`.`fuer_anzahl` AS `inner_fuer_anzahl`,(`m`.`fuer_anzahl` / 1000) AS `fuer_anzahl`,`m`.`gegen_ress_id` AS `gegen_ress_id`,`m`.`gegen_anzahl` AS `gegen_anzahl`,(`m`.`gegen_anzahl` / 1000) AS `inner_gegen_anzahl`,`bg_new`.`bg_haufen`.`koord_x` AS `koord_x`,`bg_new`.`bg_haufen`.`koord_y` AS `koord_y`,`bg_new`.`bg_haufen`.`koord_z` AS `koord_z`,`bg_new`.`bg_haufen`.`univ_id` AS `univ_id`,`m`.`bg_rohstoffe_namen`.`name` AS `fuer_ress_name`,`m2`.`bg_rohstoffe_namen`.`name` AS `gegen_ress_name` from ((`bg_markt_angebote` `m` left join `bg_haufen` on((`m`.`haufen_id` = `bg_new`.`bg_haufen`.`id`))) left join `bg_rohstoffe_namen` on((`m`.`fuer_ress_id` = `bg_new`.`bg_rohstoffe_namen`.`id`))), ((`bg_markt_angebote` `m2` left join `bg_haufen` on((`m`.`haufen_id` = `bg_new`.`bg_haufen`.`id`))) left join `bg_rohstoffe_namen` on((`m`.`fuer_ress_id` = `bg_new`.`bg_rohstoffe_namen`.`id`)))
(bevor pTF meckert, ich weiß, dass dies SEHR unperformant ist…)
(bevor pTF meckert, ich weiß, dass dies SEHR unperformant ist…)
Bogs sind meine Spezialität - Signaturen sind eigentlich doch überflüssig...
Re: strg + V
35.230078125000006, 24.578613281249996
Warum sind diese Floats so unpräzise… bcmath und bc**** ftw
Warum sind diese Floats so unpräzise… bcmath und bc**** ftw

Bogs sind meine Spezialität - Signaturen sind eigentlich doch überflüssig...
Re: strg + V
http://v9.lscache2.c.youtube.com/videop ... 5e6da93269
http://v23.lscache1.c.youtube.com/video ... 5383501179
http://v2.lscache4.c.youtube.com/videop ... 1d8c35d0ae
http://v24.lscache1.c.youtube.com/video ... 896f285825
http://v1.lscache8.c.youtube.com/videop ... dd2a53c554
http://v19.lscache7.c.youtube.com/video ... eb6e99e1b4
http://v1.lscache4.c.youtube.com/videop ... 67d4bbfd12
http://v2.lscache4.c.youtube.com/videop ... b094e8aac9
http://v7.lscache3.c.youtube.com/videop ... 0a7c62e070
http://v13.lscache7.c.youtube.com/video ... 220bf3c2ba
http://v10.lscache6.c.youtube.com/video ... 1677eba9eb
http://v10.lscache5.c.youtube.com/video ... 9b2b8c6436
http://v7.lscache6.c.youtube.com/videop ... a7311938e2
http://v3.lscache2.c.youtube.com/videop ... e746199dfd
http://v20.lscache3.c.youtube.com/video ... 050915c8e8
http://v12.lscache3.c.youtube.com/video ... c7e0bf59dc
http://v20.lscache5.c.youtube.com/video ... 792073be62
http://v13.lscache4.c.youtube.com/video ... fc21a1d14c
http://v12.lscache5.c.youtube.com/video ... 96db0ec8b8
http://v21.lscache1.c.youtube.com/video ... 1e18b01d48
http://v12.lscache4.c.youtube.com/video ... 0d6287e0a9
http://v2.lscache6.c.youtube.com/videop ... d07173abf1
http://v7.lscache4.c.youtube.com/videop ... bbd540a582
http://v3.lscache5.c.youtube.com/videop ... 3faebc05b3
http://v13.lscache8.c.youtube.com/video ... 19ce566f56
http://v17.lscache4.c.youtube.com/video ... 434a1c86ec
http://v4.lscache5.c.youtube.com/videop ... 1e98361bf9
http://v6.lscache2.c.youtube.com/videop ... 360fb94d71
http://v1.lscache1.c.youtube.com/videop ... a072971710
http://v17.lscache8.c.youtube.com/video ... 08eabe3df1
http://v6.lscache4.c.youtube.com/videop ... c9d853c8fd
http://v6.lscache4.c.youtube.com/videop ... c9d853c8fd
http://v23.lscache1.c.youtube.com/video ... 5383501179
http://v2.lscache4.c.youtube.com/videop ... 1d8c35d0ae
http://v24.lscache1.c.youtube.com/video ... 896f285825
http://v1.lscache8.c.youtube.com/videop ... dd2a53c554
http://v19.lscache7.c.youtube.com/video ... eb6e99e1b4
http://v1.lscache4.c.youtube.com/videop ... 67d4bbfd12
http://v2.lscache4.c.youtube.com/videop ... b094e8aac9
http://v7.lscache3.c.youtube.com/videop ... 0a7c62e070
http://v13.lscache7.c.youtube.com/video ... 220bf3c2ba
http://v10.lscache6.c.youtube.com/video ... 1677eba9eb
http://v10.lscache5.c.youtube.com/video ... 9b2b8c6436
http://v7.lscache6.c.youtube.com/videop ... a7311938e2
http://v3.lscache2.c.youtube.com/videop ... e746199dfd
http://v20.lscache3.c.youtube.com/video ... 050915c8e8
http://v12.lscache3.c.youtube.com/video ... c7e0bf59dc
http://v20.lscache5.c.youtube.com/video ... 792073be62
http://v13.lscache4.c.youtube.com/video ... fc21a1d14c
http://v12.lscache5.c.youtube.com/video ... 96db0ec8b8
http://v21.lscache1.c.youtube.com/video ... 1e18b01d48
http://v12.lscache4.c.youtube.com/video ... 0d6287e0a9
http://v2.lscache6.c.youtube.com/videop ... d07173abf1
http://v7.lscache4.c.youtube.com/videop ... bbd540a582
http://v3.lscache5.c.youtube.com/videop ... 3faebc05b3
http://v13.lscache8.c.youtube.com/video ... 19ce566f56
http://v17.lscache4.c.youtube.com/video ... 434a1c86ec
http://v4.lscache5.c.youtube.com/videop ... 1e98361bf9
http://v6.lscache2.c.youtube.com/videop ... 360fb94d71
http://v1.lscache1.c.youtube.com/videop ... a072971710
http://v17.lscache8.c.youtube.com/video ... 08eabe3df1
http://v6.lscache4.c.youtube.com/videop ... c9d853c8fd
http://v6.lscache4.c.youtube.com/videop ... c9d853c8fd
Re: strg + V
ah… Scheiße… war was persönliches -.-
Bogs sind meine Spezialität - Signaturen sind eigentlich doch überflüssig...
Re: strg + V
#1442 - Can't update table 'bg_markt_angebote' in stored function/trigger because it is already used by statement which invoked this stored function/trigger.
Bogs sind meine Spezialität - Signaturen sind eigentlich doch überflüssig...
Re: strg + V
Die Spieleranfrage wird schon von einem anderen Moderator bearbeitet.
Über alles hat der Mensch Gewalt, nur nicht über sein Herz.
Friedrich Hebbel
Friedrich Hebbel
Wer ist online?
Mitglieder in diesem Forum: 0 Mitglieder und 9 Gäste