function addnewurl() { // put new urls out for RSS feed collection and first go at scoring. foreach ($newinputfeeds as $keyn => $newfurl) { echo $newfurl; // activates monkeychow to add url to feedreader fof_add_feed($newfurl); //echo 'afteradd'; // split text into individual words in a table blogpostwords(); if ($lastchow && $firstitem) { // allocate votes/scoring based on wikipedia lifestyle definitions blostposttopfifty(); // sum votes to an indiviudal to see if they qualify for a lifestyle inclusion lifestylelightstatsi(); } // closes if } // closes foreach }
<input type="Submit" name="newfeeds" value="Start new feeds manager"><br><br> </form> <?php if (isset($_POST['newfeeds'])) { error_reporting(5); // set arrays for speical words and lifestyle words specialwords(); lifestylearray(); // query to find top 20% of scorers for each lifestyle? Do as a function scalelist(); // put new urls out for RSS feed collection and first go at scoring. foreach ($newinputurl as $newfurl) { echo $newfurl; // activates monkeychow to add url to feedreader fof_add_feed('http://' . $newfurl); //echo 'afteradd'; // split text into individual words in a table blogpostwords(); if ($lastchow && $firstitem) { // allocate votes/scoring based on wikipedia lifestyle definitions blostposttopfifty(); // sum votes to an indiviudal to see if they qualify for a lifestyle inclusion lifestylelightstatsi(); } // closes if } // closes foreach } // closes if
function processnewurl($meurl, $meurlfeedid) { global $meurlfeedid; // make sure new url has been added $db->query = "SELECT * FROM " . RSSDATA . ".feeds WHERE (" . RSSDATA . ".feeds.url LIKE '%{$meurl}%') "; $resultunique = mysql_query($db->query) or die("Error in query: {$db->query}. " . mysql_error()); //echo $db->query; // if successfully add the progress if (mysql_num_rows($resultunique) == 1) { $row = mysql_fetch_object($resultunique); // then find out which lifestyle qualify for this url? $meurlmatched = $newblog; $meurlfeedid = $row->id; specialwords(); lifestylearray(); // split text into individual words in a table blogpostwords(); // sum votes to an indiviudal to see if they qualify for a lifestyle inclusion singlefeedstat($meurlfeedid); // create me averages and compare to 'crowd' averages singlemelifecalc($meurlfeedid); // find out the number of top level lifestyles, first form arrary of all possible lifestyle options standardtopmenutwo(); // find out if this url qualifies for any lifestyle? memenu($meurlfeedid); $_SESSION[lifemenu] = $lifemenu; $_SESSION[lifequalify] = $lifequalify; // find lifestyles that qualify compareusermenutwo($lifemenu, $lifequalify); // builds menus ///////////////////////////////////////////////////////////////////////////////////////////////////////////// memenucode($topmenu, $lifestylelid); } else { standardtopmenutwo(); $topmenu = $lifemenu; //echo $topmenu; $_SESSION[topmenu] = $topmenu; if ($_GET['lifestyleid']) { $lifestylelid = $_GET['lifestyleid']; //echo $lifestylelid; } else { $lifestylelid = 1; } if ($_GET['lifestylesubid']) { $lifestylesubid = $_GET['lifestylesubid']; //echo $lifestylesubid; } else { $lifestylesubid = 0; } } // closes else }