$info['download_rows'] = dbrows($result); } } } if (!empty($info['download_max_rows']) && $info['download_max_rows'] > $dl_settings['download_pagination'] && !isset($_GET['download_id'])) { $page_nav_link = ""; if (!empty($_GET['cat_id']) && isnum($_GET['cat_id'])) { $page_nav_link = INFUSIONS . "downloads/downloads.php?cat_id=" . $_GET['cat_id'] . "&"; } elseif (!empty($_GET['author']) && isnum($_GET['author'])) { $page_nav_link = INFUSIONS . "downloads/downloads.php?author=" . $_GET['author'] . "&"; } $info['download_nav'] = makepagenav($_GET['rowstart'], $dl_settings['download_pagination'], $info['download_max_rows'], 3, $page_nav_link); } if (!empty($info['download_rows'])) { while ($data = dbarray($result)) { $data = array_merge($data, parseInfo($data)); $info['download_item'][$data['download_id']] = $data; } } $author_result = dbquery("SELECT b.download_title, b.download_user, count(b.download_id) as download_count, u.user_id, u.user_name, u.user_status\n\t\t\t\tFROM " . DB_DOWNLOADS . " b\n\t\t\t\tINNER JOIN " . DB_USERS . " u on (b.download_user = u.user_id)\n\t\t\t\tGROUP BY b.download_user ORDER BY b.download_user ASC\n\t\t\t\t"); if (dbrows($author_result)) { while ($at_data = dbarray($author_result)) { $active = isset($_GET['author']) && $_GET['author'] == $at_data['download_user'] ? 1 : 0; $info['download_author'][$at_data['download_user']] = array('title' => $at_data['user_name'], 'link' => INFUSIONS . "downloads/downloads.php?author=" . $at_data['download_user'], 'count' => $at_data['download_count'], 'active' => $active); } } render_downloads($info); require_once THEMES . "templates/footer.php"; /** * Returns Downloads Category Hierarchy Tree Data * @return array
$doc = DOMDocument::loadHTMLFile($source); } else { $doc = DOMDocument::loadHtml($altSource); } $ignoreQuotes = isset($_POST['ignore_quotes']) && $_POST['ignore_quotes']; $posts = $doc->getElementById("posts"); $completePosts = collectPosts($posts); if ($ignoreQuotes) { echo 'Quotes worden <font style="color: red">NIET</font> geteld.<br />'; } else { echo 'Quotes worden <font style="color: green">WEL</font> geteld.<br />'; } echo '<br />'; $parsed = array(); foreach ($completePosts as $post) { $parsed[] = parseInfo($post, $ignoreQuotes, $deadline); } prettyOutput(buildData($parsed), $wordsNeeded); } else { echo 'plak hier de "print" url van je speculatie topic:<br />'; echo '<form method="post" action="">'; echo '<input type="text" name="source" /><br />'; echo 'Of plak hier de source (control+U als de pagina open is, alles kopieren+plakken) van de print-url je speculatie topic, als die niet publiekelijk toegankelijk is:<br />'; echo '<textarea name="altsource" style="width: 100%; height: 500px;"></textarea><br />'; echo 'geef hier op hoeveel woorden per dag nodig zijn:<br />'; echo '<input type="text" name="words" /><br />'; echo '<input type="checkbox" name="ignore_quotes" id="ignore_quotes" /><label for="ignore_quotes">Negeer quotes bij tellen</label><br />'; echo 'geef hier aan hoe laat je deadline is<br />'; echo '<input type="text" name="time" value="22:00" /><br />'; echo '<input type="submit" value="analyseer" />'; echo '</form>';
$info->name = $parts[0]; $info->constructor = true; } else { $info->constructor = false; } if (!preg_match('/(^function\\.)|((\\.|--|__)construct$)/', $info->manualid)) { // Only allow if it's a function like mysqli_prepare that's both procedural // and object-oriented, which is currently best detected by whether or not its // name starts with an uppercase letter or not if (preg_match('/^[A-Z]/', $info->name)) { // echo "Skipping non-constructor (no procedural equivalent to document): {$info->name}\n"; continue; } } $section = getSectionName($info->manualid); $info = parseInfo($info); $data = array('name' => $info->name, 'prototype' => $info->prototype, 'description' => str_replace(array("\n", "\r"), " ", $info->purpose)); // echo "{$section} -- {$info->name} -- {$info->manualid}\n"; if (!$info->constructor) { $sections[$section][] = $info->name; } $functionsTxtLines[$info->name] = implode('%', $data); $functionsPlistLines[$info->name] = "\t{display = '{$info->name}'; insert = '({$info->pArgs})';}"; } $classes = array_unique($classes); sort($classes); asort($functionsTxtLines); sort($functionsPlistLines); ksort($sections); // echo implode("\n", array_keys($sections)) . "\n"; // die();
safeName($title); $title = preg_replace('/^[0-9]+ - /', '', $title); // $fileMp3 = $title .".mp3"; if (is_file("{$tank}/{$fileMp3}")) { // print "YES: $tank/$fileMp3\n"; $haveEpisode = TRUE; } else { // print "NO: $tank/$fileMp3\n"; $haveEpisode = FALSE; } $rerun = strpos($title, '(R)'); // if ( $debug == TRUE ) { print "RERUN: ". strpos($title, '(R)') ."\n"; } if ($haveEpisode == FALSE and !$rerun) { print "{$title} - \"{$fileMp3}\"\n"; print "{$epoch} - {$pubDate}\n"; parseInfo($description); print "{$summary}\n"; print "{$weather}\n"; $url = $v->enclosure->attributes()->url; print "{$url}\n"; print "NO: {$tank}/{$fileMp3}\n"; } else { print "{$title} - \"{$fileMp3}\"\n"; if ($rerun) { print "RERUN\n"; } else { print "YES: {$tank}/{$fileMp3}\n"; } } if ($getShow and !$haveEpisode) { downloadFile($url, $tank, $fileMp3);