rray($bt)) { $b = array_shift($bt); $theme = basename(dirname($b['file'])); setThemeOption($key, $value, NULL, $theme); } else { setOptionDefault($key, $value); // can't determine the theme. } } /** * Sets value for a boolena theme option * insures that the value is either zero or one * * @param string $key Option key * @param bool $bool value to be set * @param object $album album object * @param string $default theme name */ function setBoolThemeOption($key, $bool, $album=NULL, $default=false) { if ($bool) { $value = 1; } else { $value = 0; } setThemeOption($key, $value, $album, $default); } /** * Returns the value of a theme option * * @param string $option option key * @param object $album * @param string $default theme name * @return mixed */ function getThemeOption($option, $album=NULL, $default=false) { global $gallery; if (is_null($album)) { $theme = $default; $id = 0; } else { $id = $album->id; $theme = $album->getAlbumTheme(); } if (empty($theme)) { $theme = $gallery->getCurrentTheme(); } $theme = "'".zp_escape_string($theme)."'"; // album-theme $sql = "SELECT `value` FROM " . prefix('options') . " WHERE `name`='" . zp_escape_string($option) . "' AND `ownerid`=".$id." AND `theme`=".$theme; $db = query_single_row($sql); if (!$db) { // raw theme option $sql = "SELECT `value` FROM " . prefix('options') . " WHERE `name`='" . zp_escape_string($option) . "' AND `ownerid`=0 AND `theme`=".$theme; $db = query_single_row($sql); if (!$db) { // raw album option $sql = "SELECT `value` FROM " . prefix('options') . " WHERE `name`='" . zp_escape_string($option) . "' AND `ownerid`=".$id." AND `theme`=NULL"; $db = query_single_row($sql); if (!$db) { return getOption($option); } } } return $db['value']; } /** * Returns true if all the right conditions are set to allow comments for the $type * * @param string $type Which comments * @return bool */ function commentsAllowed($type) { return getOption($type) && (!getOption('comment_form_members_only') || zp_loggedin(ADMIN_RIGHTS | POST_COMMENT_RIGHTS)); } /** * Returns the viewer's IP address * Deals with transparent proxies * * @return string */ function getUserIP() { if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) { return sanitize($_SERVER['HTTP_X_FORWARDED_FOR'], 0); } else { return sanitize($_SERVER['REMOTE_ADDR'], 0); } } /** * Strips out and/or replaces characters from the string that are not "soe" friendly * * @param string $source * @return string */ function seoFriendly($source) { $string = zp_apply_filter('seoFriendly', $source); if ($source == $string) { // no filter, do basic cleanup $string = preg_replace("/&([a-zA-Z])(uml|acute|grave|circ|tilde|ring),/","",$string); $string = preg_replace("/[^a-zA-Z0-9_.-]/","",$string); $string = str_replace(array('---','--'),'-', $string); } return $string; } //load PHP specific functions require_once(PHPScript('5.0.0', '_functions.php')); setexifvars(); ?> A Tour d'Images | Turquie
Délices d'Orient et plaisir d'Occident.
© A Tour de Roues
Istanbul
Istanbul, Agia Sofia
Istanbul, le Bosphore vue depuis l'Asie
Depart d'Istanbul par le Bosphore
Sur le Bosphore
Bosphore
Maisons sur le bord du Bosphore
Entree nord du Bosphore : adieu a l'Europe
Copines
Copines
Les grands-moments
Aire de repos
Relief le long de la mer Noire
La vache hippie
Mer Noire
Safranbolu
Maisons ottomanes (Safranbolu)
Maison ottomane (Safranbolu)
Mosquee (Safranbolu)
Safranbolu
Safranbolu
Musique traditionnelle Turque
Mont Erciyes (3917m) : cap sur le frigo de l'Anatolie
Ascension du Mont Erciyes
Sur la route du Mont Erciyes
Au pied du Mont Erciyes
Les grimpeurs
Mont Erciyes
Bivouac au pied du Mont Erciyes
Bivouac a 2235m au pied du Mont Erciyes
Bivouac a 2235m au pied de Mont Erciyes
Bivouac 2235m
Copine
Kangal, chien de berger aux bijoux aiguises
Vaisselle au grand air
Compagnons de route
Dur
Desertique
Bergeres
Vent de face
Route dans le desert
Cycling
Anatolie
5000 km et premier village de Cappadoce!
Cappadoce
Cappadoce
Village d'Ulchisar en Cappadoce
Cappadoce
Pigeon valley (Cappadoce)
Powered by zenphoto | theme by cimi