/** * Magnus * Returns the URL for a language/title combination * May be called with additional parameter $action */ function get_wikipedia_url($lang, $title, $action = "", $project = "wikipedia") { $lang = trim(strtolower($lang)); $url = "http://"; if ($lang != 'xxx') { $url .= "{$lang}."; } if ($lang == "commons") { $url .= "wikimedia"; } else { $url .= $project; } $url .= ".org/w/index.php?"; if ($action != "") { $url .= "action={$action}&"; } $url .= "title=" . myurlencode($title); return $url; }
?> '.split('.'); ftype = ftype[ftype.length-1].toLowerCase(); if ($.browser.msie && ftype == 'flv') { top.frames[0].frames[0].document.body.innerHTML+=html; } else { //var editor = top.FCKeditorAPI.GetInstance('description'); //editor.InsertHtml(html); var textarea = top.document.getElementsByName("description"); textarea[0].innerHTML += html; var furl = top.document.getElementById("file_name"); furl.value = "<?php echo myurlencode($_obj['file_url']); ?> "; } <?php } ?> setTimeout("document.getElementById('msg').style.display='none'",3000); </script> <?php } else { echo LANG_ACCESS_DENIED; } ?> </body> </html>
function print_tag($tag, $text) { if (!isset($text)) { print "<{$tag}/>"; } else { print "<{$tag}>" . myurlencode($text) . "</{$tag}>"; } }
<?php include_once "./header.php"; include_once "./commonlib.php"; $conn = getConnection("ibabymall"); $source_id = (int) $_GET['source'] ? (int) $_GET['source'] : 0; $store_id = (int) $_GET['store'] ? (int) $_GET['store'] : 0; $now_date = date('Y/m/d'); $start_date = $_GET['start_date'] ? myurlencode($_GET['start_date']) : $now_date; $end_date = $_GET['end_date'] ? myurlencode($_GET['end_date']) : $now_date; $showpage = (int) $_GET['page'] ? (int) $_GET['page'] : 1; $total = getNewProductTotal($conn, $source_id, $store_id, $start_date, $end_date); $each_page_count = 50; $page_max = ceil($total / $each_page_count); $showpage = max(1, min($showpage, $page_max)); $start = ($showpage - 1) * $each_page_count; $ary = getNewProductList($conn, $source_id, $store_id, $start_date, $end_date, $start, $each_page_count); ?> <link href="./assets/css/bootstrap-datetimepicker.min.css" rel="stylesheet"> <style> .small.photo{ height: 50px; width: 50px; } </style> <h1>新上架商品列表</h1> <form action="" method="get" data-toggle="validator"> <div class="row"> <div class='col-md-6'> <div class="form-group"> <label>起始日期</label> <div class='input-group date' id='since_datetime'>
exit; } print "<h1>{$category}</h1>"; if ($language == 'pl') { $f = array('kategorię', 'kategorie', 'kategorii'); print "Przeszukano {$cd} " . pluralPl($cd, $f) . " w poszukiwaniu nieprzejrzanych artykułów..."; myflush(); } else { print "Durchsuche {$cd} Kategorien auf neu zu sichtende Artikel..."; //myflush() ; } print '<ol>'; } $had_that = array(); foreach ($data as $d) { $url = "http://{$language}.wikipedia.org/w/index.php?title=Spezial%3ASeiten_mit_ungesichteten_Versionen&namespace=14&category=" . myurlencode($d); // $pages = db_get_articles_in_category ( $language , $d , 0 , 0 ) ; $last_revs = array(); $last_ts = array(); $page_len = array(); $page_is_redirect = array(); $oos = db_get_in_sight($language, $d); foreach ($oos as $k => $v) { // Show each article only once if (isset($had_that[$v])) { unset($oos[$k]); } } if (count($oos) == 0) { continue; }