function get_user_setting($key, $should_set = true) { global $default_user_settings, $mobile_detect; if (array_key_exists($key, $_COOKIE)) { return $_COOKIE[$key]; } else { switch ($key) { case 'use_dialogs': $default_value = is_mobile_browser() ? 'no' : 'yes'; break; default: $default_value = $default_user_settings[$key]; break; } if ($should_set) { set_user_setting($key, $default_value); } return $default_value; } }
} $str = ''; if ($tshirt != 0) { $str .= 't恤x' . $tshirt . ','; } if ($phone != 0) { $str .= '手机壳x' . $phone . ','; } if ($pillow != 0) { $str .= '抱枕x' . $pillow . ','; } if ($bag != 0) { $str .= '手提袋x' . $bag . ','; } if ($battery != 0) { $str .= '移动电源x' . $battery . ','; } $body = trim($str, ','); //商品展示地址 if (is_mobile_browser()) { $show_url = URL . 'weixin/usercenter/order_detail/' . $order_info['order_id']; } else { $show_url = URL . 'index/index/order_3/' . $order_info['order_id']; } //需以http://开头的完整路径,例如:http://www.商户网址.com/myorder.html //防钓鱼时间戳 $anti_phishing_key = ""; //若要使用请调用类文件submit中的query_timestamp函数 //客户端的IP地址 $exter_invoke_ip = ""; //非局域网的外网IP地址,如:221.0.0.1
} } else { message($mysql->error); } ?> </div> <?php } else { ?> <!-- Folders starts here. --> <h2 id="folders-head" class="mobile nav mnu" target="folders">Folders</h2> <div id="folders" class="folders mnu <?php echo is_mobile_browser() ? "mobile" : ""; ?> " style="width: <?php echo $column_width_folder == 0 ? "auto" : $column_width_folder; ?> ; height: <?php echo $table_height == 0 ? "auto" : $table_height; ?> ;"> <?php require_once ABSOLUTE_PATH . "folders.php"; $tree = new folder(); $tree->make_tree(0); $tree->print_tree(); ?>
/** * Fontion utililée dans le blog (dans le footer) */ public function wsi_addSplashImageWpFooter() { // Chargement des données en base $configBean = ConfigManager::getInstance()->get(); $siBean = SplashImageManager::getInstance()->get(1); // Si le plugin n'est pas activé dans ses options, on ne fait rien if ($configBean->isSplash_active() != 'true') { return; } // If not in First Load Mode, exit the function if ($configBean->isWsi_first_load_mode_active() == 'true') { return; } // Si la Splash Image n'est pas dans sa plage de validité, on ne fait rien if (WsiCommons::getdate_is_in_validities_dates() == "false") { return; } // If option selected, hide splash image on mobile devices if ($siBean->isWsi_hide_on_mobile_devices() == 'true') { if (is_mobile_browser()) { return; } } // If wsi_display_always option is activated, not paying attention to idle time if ($siBean->isWsi_display_always() != 'true') { // Si l'utilisateur n'a pas été inactif assez longtemps, on ne fait rien if (WsiCommons::enough_idle_to_splash($this->last_display) == false) { return; } } require "splash/content.inc.php"; }