get_image_link fix
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / eventz / spamuj_ubik.inc
CommitLineData
9b80aa4a 1<?php
51ff3226 2function spamuj_ubik() {
3global $db,$node,$error;
ac3bdc72 4
5/* XXX TODO Rewrite (insecure)
6
51ff3226 7$sprava="Ahoj! tak s radostou ta mozem poinformovat o par zmenach v systeme<br>";
8
9// oznamovanie niektorych ficur z newlistu via ubik vsem userom
10
11if (is_array($_POST['node_chosen'])) {
12$srcs=$_POST['node_chosen'];
13}else{ global $error;
14 $error="EE wisco zlatko. to nepude. mozno si nic nevybral tak nemam co rozspamovat. cmuk* Ubik";
15 return false;}
16
17
18foreach ($srcs as $chosen) { // konstructor of the messages
19$kset=$db->query("select node_content from node_content where node_id='$chosen'");$kset->next();
20$sprava=$sprava.$kset->getString('node_content').'<br><hr><br>';
21}
22
23$pocitadlo=0;
24$q="select user_id from users";
25$set=$db->query($q);
26while ($set->next()) {
27 $adresat=$set->getString('user_id');echo '<br>';
28 $ubik['mail_to']=$adresat;
29 $ubik['mail_text']=$sprava;
30 ubik::ubikMail($ubik);
31$pocitadlo=$pocitadlo+1;
32
33}
34
35
36echo "sprava $sprava <br> bola odoslana $pocitadlo userom";
ac3bdc72 37*/
51ff3226 38return false;
39
ac3bdc72 40}?>
This page took 0.569127 seconds and 4 git commands to generate.