get_image_link fix
[mirrors/Kyberia-bloodline.git] / wwwroot / inc / eventz / spamuj_ubik.inc
1 <?php
2 function spamuj_ubik() {
3 global $db,$node,$error;
4
5 /* XXX TODO Rewrite (insecure)
6
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
11 if (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
18 foreach ($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);
26 while ($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
36 echo "sprava $sprava <br> bola odoslana $pocitadlo userom";
37 */
38 return false;
39
40 }?>
This page took 0.579757 seconds and 4 git commands to generate.