mino code cleanup, moved rss to trash (to rewrite)
authorniekt0 <niekt0@kyberia.cz>
Mon, 26 Sep 2011 18:40:50 +0000 (20:40 +0200)
committerniekt0 <niekt0@kyberia.cz>
Mon, 26 Sep 2011 18:40:50 +0000 (20:40 +0200)
trash/lastRSS.php [moved from wwwroot/inc/lastRSS.php with 99% similarity]
trash/mail_rss.inc [moved from wwwroot/inc/mail_rss.inc with 100% similarity]
trash/rssparse.php [new file with mode: 0644]
wwwroot/inc/rssparse.php [deleted file]
wwwroot/inc/transaction.inc
wwwroot/inc/ubik.inc

similarity index 99%
rename from wwwroot/inc/lastRSS.php
rename to trash/lastRSS.php
index e797a8cfc078ead64fe42f8fd4faf8fe4eca8cf2..6fc30816b25d14cdb4a475e16cfd344ab15b4aec 100644 (file)
@@ -182,4 +182,4 @@ class lastRSS {
        }
 }
 
-?>
\ No newline at end of file
+?>
similarity index 100%
rename from wwwroot/inc/mail_rss.inc
rename to trash/mail_rss.inc
diff --git a/trash/rssparse.php b/trash/rssparse.php
new file mode 100644 (file)
index 0000000..03711cf
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+#dissabled for now, broken
+
+#// include lastRSS library
+#include './lastRSS.php';
+#
+#// create lastRSS object
+#$rss = new lastRSS;
+#
+#// setup transparent cache
+#$rss->cache_dir = './cache';
+#$rss->cache_time = 3600; // one hour
+#
+#// load some RSS file
+#// XXX
+#if ($rs = $rss->get('http://h-k.sk/scripts/google2rss.php?num=15&q=smallpox')) {
+#
+#print_r($rs);
+#}
+#else {
+#      die ('Error: RSS file not found...');
+#}
+
+?>
+
diff --git a/wwwroot/inc/rssparse.php b/wwwroot/inc/rssparse.php
deleted file mode 100644 (file)
index 7af7df0..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-// include lastRSS library
-include './lastRSS.php';
-
-// create lastRSS object
-$rss = new lastRSS;
-
-// setup transparent cache
-$rss->cache_dir = './cache';
-$rss->cache_time = 3600; // one hour
-
-// load some RSS file
-// XXX
-if ($rs = $rss->get('http://h-k.sk/scripts/google2rss.php?num=15&q=smallpox')) {
-
-print_r($rs);
-}
-else {
-       die ('Error: RSS file not found...');
-}
-
-?>
-
index 38754b95a628bc99a0f14aa28223ca4fe67b0ecf..c738e4e053467c6a2517734e2b7a70e1f89e8337 100644 (file)
@@ -13,4 +13,4 @@ if ($status>1) {
 elseif ($status) {
        Header("Location: /id/".$node['node_id']."/");
 }
-*/
+*/
\ No newline at end of file
index 15f4d9d24c62f7d6e195f6080fae64b372462434..37f3e7dd6b3a7080156ed86d1dd7413b777c2c48 100644 (file)
@@ -1,35 +1,32 @@
 <?php
-
-
 class ubik {
 
+function ubikRegister() {
 
-       function ubikRegister() {
+       global $db;
+       $user_info=$_POST['user_info'];
+       $login=$_POST['login'];
+//     $user_www=$_POST['user_www'];
+       $email=$_POST['email'];
+//     $icq=$_POST['user_icq'];
 
-               global $db;
-               $user_info=$_POST['user_info'];
-               $login=$_POST['login'];
-//             $user_www=$_POST['user_www'];
-               $email=$_POST['email'];
-//             $icq=$_POST['user_icq'];
+       $text=nodes::processContent($user_info)."<br><br>";
+       $node_name="user $login registration";
 
-               $text=nodes::processContent($user_info)."<br><br>";
-               $node_name="user $login registration";
+       $params['node_creator']=UBIK_ID;
+       $params['node_content']=$text;
+       $params['node_name']=$node_name;
+       $params['node_parent']=63802;
+       return nodes::addNode($params);
 
-               $params['node_creator']=UBIK_ID;
-               $params['node_content']=$text;
-               $params['node_name']=$node_name;
-               $params['node_parent']=63802;
-               return nodes::addNode($params);
-
-       }
+}
 
-       function ubikMail($params) {
-               global $db;
-               if (is_numeric($params['mail_to'])) $mail_to=$params['mail_to'];
-               else return false;
-               if (!empty($params['mail_text'])) $mail_text=addslashes($params['mail_text']);
-               else return false;
+function ubikMail($params) {
+       global $db;
+       if (is_numeric($params['mail_to'])) $mail_to=$params['mail_to'];
+       else return false;
+       if (!empty($params['mail_text'])) $mail_text=addslashes($params['mail_text']);
+       else return false;
 
 
        $q_i = sprintf('insert into mail set mail_user = %2$d, mail_from = %1$d, mail_to = %2$d, mail_timestamp = NOW(), mail_text = "%3$s"'
@@ -37,7 +34,6 @@ class ubik {
        $db->update($q_i);
        $q_u = sprintf('update users set user_mail = user_mail + 1, user_mail_id = %1$d where user_id = %2$d', UBIK_ID, $mail_to);
        $db->update($q_u);
-       }
 }
 
-?>
+}
\ No newline at end of file
This page took 0.192787 seconds and 4 git commands to generate.