本文整理汇总了PHP中convert_url函数的典型用法代码示例。如果您正苦于以下问题:PHP convert_url函数的具体用法?PHP convert_url怎么用?PHP convert_url使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了convert_url函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sql_free_result
}
sql_free_result($res_team);
sql_close($sgbd);
if ($right_user['add_member']) {
$page['link_add'] = convert_url("index.php?r=" . $lang['general']['idurl_member'] . "&v1=form_member");
$page['admin'] = "1";
} else {
$page['link_add'] = "";
$page['admin'] = "";
}
$page['form_action'] = convert_url("index.php?r=" . $lang['general']['idurl_team'] . "&v1=player_list");
# text
$page['link_team_player_list'] = convert_url("index.php?r=" . $lang['general']['idurl_team'] . "&v1=player_list");
$page['link_tri_name'] = convert_url("index.php?r=" . $lang['general']['idurl_team'] . "&v1=page_1_name_" . $sens_inv);
$page['link_tri_club'] = convert_url("index.php?r=" . $lang['general']['idurl_team'] . "&v1=page_1_club_" . $sens_inv);
$page['link_tri_position'] = convert_url("index.php?r=" . $lang['general']['idurl_team'] . "&v1=page_1_position_" . $sens_inv);
$page['L_order'] = $lang['team']['order_by'];
$page['L_player'] = $lang['team']['player'];
$page['L_team'] = $lang['team']['team_name'];
$page['L_number'] = $lang['team']['number'];
$page['L_position'] = $lang['team']['position'];
$page['L_captain'] = $lang['team']['captain'];
$page['L_club'] = $lang['team']['club'];
$page['L_position'] = $lang['team']['position'];
$page['L_season'] = $lang['team']['season'];
$page['L_first_page'] = $lang['team']['first_page'];
$page['L_previous_page'] = $lang['team']['previous_page'];
$page['L_next_page'] = $lang['team']['next_page'];
$page['L_last_page'] = $lang['team']['last_page'];
$page['L_add'] = $lang['team']['add_player'];
$page['L_choose_season'] = $lang['team']['choose_season'];
示例2: sql_connect
}
if (isset($_POST['name'])) {
$page['value_name'] = $_POST['name'];
}
}
}
# listes des country
$sql_liste = $sql['member']['select_country'];
$sgbd = sql_connect();
$res_liste = sql_query($sql_liste);
$i = "0";
while ($ligne = sql_fetch_array($res_liste)) {
$page['country'][$i]['id'] = $ligne['country_id'];
$page['country'][$i]['name'] = $ligne['country_name'];
$page['country'][$i]['form_action'] = $page['form_action'];
$page['country'][$i]['link_modification'] = convert_url("index.php?r=" . $lang['general']['idurl_member'] . "&v1=form_country&v2=" . $ligne['country_id']);
$page['country'][$i]['link_suppression'] = convert_url("index.php?r=" . $lang['general']['idurl_member'] . "&v1=country_list&v2=" . $ligne['country_id'] . "&v3=delete");
$page['country'][$i]['L_edit'] = $lang['member']['edit'];
$page['country'][$i]['L_delete'] = $lang['member']['delete'];
$i++;
}
sql_free_result($res_liste);
sql_close($sgbd);
$page['L_title'] = $lang['member']['country_list'];
$page['L_liste'] = $lang['member']['country_list'];
$page['L_add'] = $lang['member']['add_country'];
$page['L_valider'] = $lang['member']['submit'];
$page['L_erreur'] = $lang['general']['E_erreur'];
$page['L_field_required'] = $lang['general']['field_required'];
$page['meta_title'] = $lang['member']['country_list'];
$page['template'] = $tpl['member']['country_list'];
示例3: own_link_count
function own_link_count($html, $url)
{
$domain_name = get_domain($url);
$link_arr = _striplinks($html);
if ($link_arr) {
$re_link_arr = is_array($link_arr) ? array_unique($link_arr) : $link_arr;
$i = 0;
foreach ($re_link_arr as $v) {
$v = convert_url($v);
if (strexists(trim(_expandlinks($v, $url)), $domain_name)) {
$i++;
}
}
return $i;
}
}
示例4: convert_url
$page['L_current_step_info'] = $lang['match']['associate_value_info'];
break;
case 4:
$page['L_current_step'] = $lang['match']['check_data'];
$page['L_current_step_info'] = $lang['match']['check_data_info'];
break;
default:
$page['L_current_step'] = $lang['match']['upload_file'];
$page['L_current_step_info'] = $lang['match']['upload_file_info'];
}
if ($page['value_first_line'] == "1") {
$page['first_line_checked'] = "checked=\"checked\"";
}
# link
$page['form_action'] = convert_url("index.php?r=" . $lang['general']['idurl_match'] . "&v1=import_match");
$page['link_list'] = convert_url("index.php?r=" . $lang['general']['idurl_match'] . "&v1=match_list");
# text
$page['L_title'] = $lang['match']['import_match'];
$page['L_step'] = $lang['match']['step'];
$page['L_csv_file'] = $lang['match']['csv_file'];
$page['L_separator'] = $lang['match']['separator'];
$page['L_first_line'] = $lang['match']['first_line'];
$page['L_file_column'] = $lang['match']['file_column'];
$page['L_associated_field'] = $lang['match']['associated_field'];
$page['L_action'] = $lang['match']['action'];
$page['L_valider'] = $lang['match']['submit'];
$page['L_delete'] = $lang['match']['delete'];
$page['L_back_list'] = $lang['match']['back_list'];
$page['L_erreur'] = $lang['general']['E_erreur'];
$page['L_field_required'] = $lang['general']['field_required'];
$page['L_home'] = $lang['match']['home'];
示例5: array
$page['aff_dirigeant'] = "";
if ($page['nb_dirigeant'] != 0) {
$page['aff_dirigeant'] = "1";
} else {
$page['season'] = array();
}
# link
$page['link_match'] = convert_url("index.php?r=" . $lang['general']['idurl_match'] . "&v1=match_list&v2=club_" . $page['id']);
# modification
$page['link_edit'] = "";
$page['link_delete'] = "";
if ($right_user['edit_club']) {
$page['link_edit'] = convert_url("index.php?r=" . $lang['general']['idurl_club'] . "&v1=form_club&v2=" . $page['id']);
}
if ($right_user['delete_club']) {
$page['link_delete'] = convert_url("index.php?r=" . $lang['general']['idurl_club'] . "&v1=club_list&v2=delete&v3=" . $page['id']);
}
# text
$page['L_title'] = $page['name'];
$page['L_club'] = $lang['club']['club'];
$page['L_name'] = $lang['club']['name'];
$page['L_abbreviation'] = $lang['club']['abbreviation'];
$page['L_creation_year'] = $lang['club']['creation_year'];
$page['L_color'] = $lang['club']['color'];
$page['L_color_alternative'] = $lang['club']['color_alternative'];
$page['L_address'] = $lang['club']['address'];
$page['L_telephone'] = $lang['club']['telephone'];
$page['L_fax'] = $lang['club']['fax'];
$page['L_email'] = $lang['club']['email'];
$page['L_url'] = $lang['club']['url'];
$page['L_comment'] = $lang['club']['comment'];
示例6: convert_url
<?php
$page['L_title'] = $lang['member']['home'];
$page['link_profile'] = convert_url("index.php?r=" . $lang['general']['idurl_member'] . "&v1=profile");
$page['L_profile'] = $lang['member']['profile'];
$page['template'] = $tpl['member']['home'];
示例7: sql_free_result
$page['sex'][$i]['id'] = $ligne['sex_id'];
$page['sex'][$i]['name'] = $ligne['sex_name'];
if (isset($page['value_sex']) and $page['value_sex'] == $ligne['sex_id']) {
$page['sex'][$i]['checked'] = "checked";
} else {
$page['sex'][$i]['checked'] = "";
}
$i++;
}
}
sql_free_result($res_sex);
sql_close($sgbd);
}
# links
$page['form_action'] = convert_url("index.php?r=" . $lang['general']['idurl_member'] . "&v1=registration");
$page['link_choose_avatar'] = convert_url("index.php?r=" . $lang['general']['idurl_file'] . "&v1=image_manager&parent_form=form_registration&field_name=avatar&file_type=image&fen=pop&folder=" . AVATAR_FOLDER, 0);
# text
$page['L_title'] = $lang['member']['form_registration'];
$page['L_valider'] = $lang['member']['submit'];
$page['L_delete'] = $lang['member']['delete'];
$page['L_back_list'] = $lang['member']['back_list'];
$page['L_erreur'] = $lang['general']['E_erreur'];
$page['L_field_required'] = $lang['general']['field_required'];
$page['L_identity'] = $lang['member']['identity'];
$page['L_name'] = $lang['member']['name'];
$page['L_firstname'] = $lang['member']['firstname'];
$page['L_date_birth'] = $lang['member']['date_birth'];
$page['L_place_birth'] = $lang['member']['place_birth'];
$page['L_email'] = $lang['member']['email'];
$page['L_size'] = $lang['member']['size'];
$page['L_size_unit'] = $lang['member']['size_unit'];
示例8: sql_free_result
$page['page_parent'][$i]['id'] = $ligne['page_id'];
$page['page_parent'][$i]['name'] = $ligne['page_title'];
$page['value_page_parent'] == $ligne['page_id'] ? $page['page_parent'][$i]['selected'] = "selected" : ($page['page_parent'][$i]['selected'] = "");
$i++;
}
}
}
sql_free_result($res_page_parent);
sql_close($sgbd);
# links
if ($right_user['delete_information'] and !empty($page['value_id'])) {
$page['link_delete'] = convert_url("index.php?r=" . $lang['general']['idurl_information'] . "&v1=page_list&v2=delete&v3=" . $page['value_id']);
} else {
$page['link_delete'] = "";
}
$page['link_list'] = convert_url("index.php?r=" . $lang['general']['idurl_information'] . "&v1=page_list");
/* text */
if (empty($page['value_id'])) {
$page['L_title'] = $lang['information']['form_page_add'];
} else {
$page['L_title'] = $lang['information']['form_page_edit'];
}
$page['L_idurl'] = $lang['information']['idurl'];
$page['L_title_page'] = $lang['information']['title'];
$page['L_summary'] = $lang['information']['summary'];
$page['L_text'] = $lang['information']['text'];
$page['L_keyword'] = $lang['information']['keyword'];
$page['L_idurl_auto'] = $lang['information']['idurl_auto'];
$page['L_page_parent'] = $lang['information']['page_parent'];
$page['L_choose_page_parent'] = $lang['information']['choose_page_parent'];
$page['L_status'] = $lang['information']['status'];
示例9: convert_url
if (isset($page['meta_description']) and $page['meta_description'] != "") {
$index['meta_description'] = $page['meta_description'];
} else {
$index['meta_description'] = $lang['general']['meta_description'];
}
/* mots cles */
if (isset($page['meta_keyword']) and $page['meta_keyword'] != "") {
$index['meta_keyword'] = $page['meta_keyword'];
} else {
$index['meta_keyword'] = $lang['general']['meta_keyword'];
}
/* url */
$index['meta_url'] = ROOT_URL;
$index['page_url'] = ROOT_URL;
if (isset($_SERVER['QUERY_STRING']) and $_SERVER['QUERY_STRING'] != "") {
$index['page_url'] = convert_url("index.php?" . $_SERVER['QUERY_STRING']);
}
/*****************************************/
/**********************/
/* PAGE MAIN CONTENT */
/**********************/
/* on cherche si le contenu a un template declare */
/* si ce n'est pas le cas, erreur, sinon on charge le contenu */
if (!isset($page['template'])) {
$page['template'] = $tpl['general']['message'];
$page['L_message'] = "Template non trouvé";
$page['erreur'] = array();
}
if ($in_plugin == 1) {
$index['contenu'] = parse_template(ROOT . "/plugin/" . $page['template'], $page);
} else {
示例10: convert_url
$page['valid'][$i]['id'] = $id;
$page['valid'][$i]['name'] = $lang['member']['valid_' . $id . ''];
$page['valid'][$i]['checked'] = "";
if ($page['value_valid'] == $id) {
$page['valid'][$i]['checked'] = 'checked="checked"';
}
}
# links
if ($right_user['delete_member'] and !empty($page['value_id'])) {
$page['link_delete'] = convert_url("index.php?r=" . $lang['general']['idurl_member'] . "&v1=member_list&v2=delete&v3=" . $page['value_id']);
} else {
$page['link_delete'] = "";
}
$page['link_list'] = convert_url("index.php?r=" . $lang['general']['idurl_member'] . "&v1=member_list");
$page['link_choose_image'] = convert_url("index.php?r=" . $lang['general']['idurl_file'] . "&v1=image_manager&parent_form=form_member&field_name=photo&file_type=image&fen=pop", 0);
$page['link_choose_avatar'] = convert_url("index.php?r=" . $lang['general']['idurl_file'] . "&v1=image_manager&parent_form=form_member&field_name=avatar&file_type=image&fen=pop", 0);
# text
if (empty($page['value_id'])) {
$page['L_title'] = $lang['member']['form_member_add'];
} else {
$page['L_title'] = $lang['member']['form_member_edit'];
}
$page['L_valider'] = $lang['member']['submit'];
$page['L_delete'] = $lang['member']['delete'];
$page['L_back_list'] = $lang['member']['back_list'];
$page['L_erreur'] = $lang['general']['E_erreur'];
$page['L_field_required'] = $lang['general']['field_required'];
$page['L_identity'] = $lang['member']['identity'];
$page['L_name'] = $lang['member']['name'];
$page['L_firstname'] = $lang['member']['firstname'];
$page['L_date_birth'] = $lang['member']['date_birth'];
示例11: SendSoloAD
public function SendSoloAD($website)
{
if ($website == 'fap') {
$GLOBALS['domain_name'] = $domain_name = 'freeadplanet';
$database = 'fap';
$abbr = 'FAP';
$mail_from = 'Free AD Planet';
$master_affid = '11187448';
} else {
if ($website == 'tap') {
$GLOBALS['domain_name'] = $domain_name = 'targetedadplanet';
$database = 'tap';
$abbr = 'TAP';
$mail_from = 'Targeted AD Planet';
$master_affid = '99999';
} else {
exit("FATAL ERROR: website:{$website} in sendqueue.php unknown\n");
}
}
$db = $this->db;
$bad_emails = array();
$good = $bad = $i = 0;
$u_seconds = 2500000;
$db->SelectDB('mle');
// get bounced emails
$db->Query("SELECT bademail FROM bounced WHERE count < 5 OR mailboxfull > 0 ORDER BY bademail");
while (list($e) = $db->FetchRow()) {
$bad_emails[] = strtolower($e);
}
$db->SelectDB($database);
echo "Begin mailing {$abbr} {$domain_name} ... \n";
if ($db->Query("SELECT id, affid, subject, message, crediturl, usecredits, soload FROM mailqueue WHERE 1 ORDER BY id LIMIT 1")) {
list($id, $affid, $subject, $message, $crediturl, $usecredits, $soload) = $db->FetchRow();
$db->Query("DELETE FROM mailqueue WHERE id='{$id}' LIMIT 1");
if ($db->Query("SELECT fname, username FROM users WHERE affid='{$affid}' LIMIT 1")) {
list($fname, $username) = $db->FetchRow();
} else {
return;
}
if ($soload) {
$isHTML = $soload == '2' ? 1 : 0;
// $soload 0=downline, 1=textsoload, 2=HTMLsoload
$headerID = 'S';
$type = 9;
$typename = 'Solo Ad';
$from_name = $abbr . ' SOLO AD';
$mailcount = $db->Query("SELECT fname, username, email, affid FROM users WHERE email != '' AND verified='1' AND vacation='0' ORDER BY email");
} else {
$isHTML = 0;
$headerID = 'D';
$type = 0;
$typename = 'DownLine';
$from_name = $mail_from;
$mailcount = $db->Query("SELECT fname, username, email, affid FROM users WHERE sponsor='{$affid}' AND email != '' AND verified='1' AND vacation='0' ORDER BY email LIMIT {$usecredits}");
}
$res = $db->result;
$footer = "\n\n** Click URL below to Earn Credits:\n[credit_url]\n\n______________________________________________________________\nThis message is not spam! You received this because you joined\nthe very successful {$domain_name}.com sent by {$typename} Submit\nand agreed to receive periodic mail from other members, in return\nfor You being able to post Your own offers.\n\n[remove_url]\n32811 7th Ave SW, Federal Way, WA, 98023\n";
while ($e = mysqli_fetch_assoc($res)) {
$e['email'] = strtolower($e['email']);
// skip bounced emails
if (in_array($e['email'], $bad_emails)) {
echo "Skipping {$e['email']} ...\n";
continue;
}
if (in_array($e['email'], $this->prevmailed)) {
echo 'Skipping previous mailed: ' . $e['email'] . "\n";
continue;
}
$this->prevmailed[] = $e['email'];
$head = "From: {$from_name} <do_not_reply@{$domain_name}.com>\n";
$hash = substr(sha1('jd93JdmAz3hF1' . $e['affid']), 0, 5);
$head .= "X-{$abbr}-UID: {$headerID}{$e['affid']} {$hash} Report: http://{$domain_name}.com/openticket.php";
$hash = substr(sha1($e['affid'] . 'sjdhf3938483jhdsjh'), 0, 5);
// do not change tied to fap/tap
$remove_url = "http://{$domain_name}.com/?c=remove&a={$e['affid']}&h={$hash}";
if ($e['affid'] != $affid or $affid == $master_affid) {
$cred_url = convert_url($e['affid'], $crediturl, $affid, $db, $type);
} else {
$cred_url = 'Confirmation of your mailing. Earn links are valid only from other members.';
}
if ($isHTML) {
if (!stristr($cred_url, 'confirmation')) {
$cred_url = '<a href="' . $cred_url . '">** Click Here</a> to Earn 5 times the Credits from this Solo AD.';
}
$remove_url = '<a href="' . $remove_url . '">Click Here to Unsubscribe</a>';
$head .= "MIME-Version: 1.0\nContent-type: text/html; charset=iso-8859-1\n";
$mess = $message . str_replace("\n", '<br />', $footer);
} else {
$mess = $message . $footer;
}
$subj = str_ireplace(array('[fname]', '[firstname]', '[first_name]'), array($e['fname'], $e['fname'], $e['fname']), $subject);
$mess = str_ireplace(array('[fname]', '[firstname]', '[first_name]', '[credit_url]', '[remove_url]'), array($e['fname'], $e['fname'], $e['fname'], $cred_url, $remove_url), $mess);
if (mail($e['email'], $subj, $mess, $head)) {
$good++;
echo "{$lifecycle_counter}/{$this->lifecycle} " . ($i + 1) . "/{$mailcount} total:{$this->totalmailed} usecs:{$u_seconds} {$abbr}:{$typename} {$e['email']}\n";
} else {
$bad++;
echo "--> {$bad} BAD {$e['email']}\n";
}
$i++;
//.........这里部分代码省略.........
示例12: sql_free_result
$page['news'][$i]['vignette_url']=ROOT_URL."/".IMG_DOSSIER."/".$ligne_image['vignette_dossier']."/".$ligne_image['vignette_url'];
$page['news'][$i]['vignette_largeur']=$ligne_image['vignette_largeur'];
$page['news'][$i]['vignette_hauteur']=$ligne_image['vignette_hauteur'];
}
else
{
$page['news'][$i]['image_url']="";
}
*/
$i++;
}
}
sql_free_result($res_news);
sql_close($sgbd);
if ($right_user['add_news']) {
$page['link_add'] = convert_url("index.php?r=" . $lang['general']['idurl_news'] . "&v1=form_news");
} else {
$page['link_add'] = "";
}
$page['L_add'] = $lang['news']['add_news'];
$page['L_title'] = $lang['news']['news_list'];
$page['L_first_page'] = $lang['news']['first_page'];
$page['L_previous_page'] = $lang['news']['previous_page'];
$page['L_next_page'] = $lang['news']['next_page'];
$page['L_last_page'] = $lang['news']['last_page'];
# meta
$page['meta_title'] = $lang['news']['news_list'];
if (isset($page['news'][0]['summary'])) {
$page['meta_description'] = $page['news'][0]['summary'];
$page['meta_keyword'] = $page['news'][0]['summary'];
$page['meta_date'] = $page['news'][0]['release'];
示例13: convert_url
<?php
/***************************/
# MENU ADMIN
/***************************/
$index['link_admin_home'] = '';
$index['link_admin'] = '';
$index['link_admin_configuration'] = '';
if ($right_user['home']) {
$index['link_admin_home'] = convert_url("index.php?r=" . $lang['general']['idurl_admin']);
}
if ($right_user['admin']) {
$index['link_admin'] = convert_url("index.php?r=" . $lang['general']['idurl_admin'] . "&v1=admin");
}
if ($right_user['configuration']) {
$index['link_admin_configuration'] = convert_url("index.php?r=" . $lang['general']['idurl_admin'] . "&v1=configuration");
}
# text
$index['L_administration'] = $lang['general']['administration'];
$index['L_admin_home'] = $lang['general']['admin_home'];
$index['L_admin'] = $lang['general']['admin'];
$index['L_configuration'] = $lang['general']['configuration'];
示例14: index_site
function index_site($url, $reindex, $maxlevel, $soption, $url_inc, $url_not_inc, $can_leave, $use_robot, $use_nofollow, $cl, $all, $use_pref)
{
global $db_con, $mysql_table_prefix, $command_line, $mainurl, $tmp_urls, $domain_arr, $all_keywords, $smp, $follow_sitemap;
global $link_check, $smap_dir, $index_media, $clear, $create_sitemap, $tmp_dir, $domaincb;
global $max_links, $realnum, $debug, $no_log, $dba_act, $add_auth, $interrupt, $index_media, $thumb_folder;
if (!$can_leave) {
$can_leave = $domaincb;
}
$can_leave_domain = $can_leave;
$starttime = getmicrotime();
// start time to index this site
$black = '0';
// will become counter for hits of blacklist
$site_id = '';
$skip = '';
$smp = '0';
$omit = array();
$url = $db_con->real_escape_string(stripslashes($url));
if (strstr($interrupt, "-")) {
// if indexer should not be interrupted periodically
$interrupt = '999999';
// never
}
$int_count = $interrupt;
// $int_count will be decreased by each indexed link until $int_count = 1
printStandardReport('starting', $command_line, $no_log);
if (!isset($all_keywords)) {
mysqltest();
$sql_query = "SELECT keyword_ID, keyword from " . $mysql_table_prefix . "keywords";
$result = $db_con->query($sql_query);
if ($debug && $db_con->errno) {
$err_row = __LINE__ - 2;
printf("<p><span class='red'> MySQL failure: %s \n<br /></span></p>", $db_con->error);
if (__FUNCTION__) {
printf("<p><span class='red'> Found in script: " . __FILE__ . " row: {$err_row} in function(): " . __FUNCTION__ . " <br /></span></p>");
} else {
printf("<p><span class='red'> Found in script: " . __FILE__ . " row: {$err_row} <br /></span></p>");
}
printf("<p><span class='red'> Script execution aborted. <br /></span>");
printf("<p><strong>Invalid query string, which caused the SQL error:</strong></p>");
echo "<p> {$sql_query} </p>";
exit;
}
while ($row = $result->fetch_array(MYSQLI_NUM)) {
$all_keywords[addslashes($row[1])] = $row[0];
}
if ($clear == 1) {
clean_resource($result, '06');
}
}
$url = convert_url($url);
$compurl = parse_addr($url);
if ($compurl['path'] == '') {
$url = $url . "/";
}
$t = microtime();
$a = getenv("REMOTE_ADDR");
$sessid = md5($t . $a);
if ($url != '/') {
// ignore dummies
$urlparts = parse_addr($url);
$domain = $urlparts['host'];
if (isset($urlparts['port'])) {
$port = (int) $urlparts['port'];
} else {
$port = 80;
}
if (strpos($url, "?")) {
$url_bas = substr($url, 0, strpos($url, "?"));
} else {
$url_bas = $url;
}
mysqltest();
$sql_query = "SELECT * from " . $mysql_table_prefix . "sites where url like '{$url_bas}%'";
$result = $db_con->query($sql_query);
if ($debug && $db_con->errno) {
$err_row = __LINE__ - 2;
printf("<p><span class='red'> MySQL failure: %s \n<br /></span></p>", $db_con->error);
if (__FUNCTION__) {
printf("<p><span class='red'> Found in script: " . __FILE__ . " row: {$err_row} in function(): " . __FUNCTION__ . " <br /></span></p>");
} else {
printf("<p><span class='red'> Found in script: " . __FILE__ . " row: {$err_row} <br /></span></p>");
}
printf("<p><span class='red'> Script execution aborted. <br /></span>");
printf("<p><strong>Invalid query string, which caused the SQL error:</strong></p>");
echo "<p> {$sql_query} </p>";
exit;
}
$row = $result->fetch_array(MYSQLI_NUM);
$site_id = $row[0];
$authent = $row[2];
if ($add_auth && $authent) {
// for sites with authentication we need to verify the value
$url_status = url_status($url, $site_id, $sessid);
$url_parts = parse_all_url($url);
if ($url_status['state'] == 'ok' && $url_status['content'] == 'text') {
if ($url_status['relocate']) {
// if relocated, print message and redirect to new URL
printRedirected($url_status['relocate'], $url_status['path'], $cl);
if (strstr($url_status['path'], "//")) {
//.........这里部分代码省略.........
示例15: elseif
$page['status']['2']['selected'] = "";
if ($page['value_status'] == "0") {
$page['status']['0']['selected'] = "selected";
} elseif ($page['value_status'] == "1") {
$page['status']['1']['selected'] = "selected";
} elseif ($page['value_status'] == "2") {
$page['status']['2']['selected'] = "selected";
}
/* end status */
# links
if ($right_user['delete_news'] and !empty($page['value_id'])) {
$page['link_delete'] = convert_url("index.php?r=" . $lang['general']['idurl_news'] . "&v1=news_list&v2=delete&v3=" . $page['value_id']);
} else {
$page['link_delete'] = "";
}
$page['link_list'] = convert_url("index.php?r=" . $lang['general']['idurl_news'] . "&v1=news_list");
# text
$page['L_idurl'] = $lang['news']['idurl'];
$page['L_subhead'] = $lang['news']['subhead'];
$page['L_title_news'] = $lang['news']['title'];
$page['L_subtitle'] = $lang['news']['subtitle'];
$page['L_summary'] = $lang['news']['summary'];
$page['L_text'] = $lang['news']['text'];
$page['L_ps'] = $lang['news']['ps'];
$page['L_keyword'] = $lang['news']['keyword'];
$page['L_release'] = $lang['news']['date_release'];
$page['L_format_date'] = $lang['news']['format_date'];
$page['L_release_time'] = $lang['news']['time_release'];
$page['L_format_time'] = $lang['news']['format_time'];
$page['L_idurl_auto'] = $lang['news']['idurl_auto'];
/* elements de text */