Home"); } if($_POST['add_to_set'] && $_POST['set_id']) { add_to_set($_POST['set_id'], $_GET['photo_id'], MY_ID); fix_set($_POST['set_id'], MY_ID, 1); //check that there is a rep pic, and add if necessary }elseif($_POST['add_to_group'] && $_POST['group_id']) { add_to_group($_POST['group_id'], $_GET['photo_id'], MY_ID); }elseif($_POST['set_name']){ $set_id = new_set(MY_ID, stripslashes($_POST['set_name'])); add_to_set($set_id, $_GET['photo_id'], MY_ID); fix_set($set_id, MY_ID, 1); //check that there is a rep pic, and add if necessary } if($_POST['rotate'])rotate_photo($_POST['rotate'], $_GET['photo_id'], MY_ID); if($_POST['add_tags'] && $_POST['tag'])add_tags(parse_tags(stripslashes($_POST['tag'])), $_GET['photo_id'], MY_ID, 1); //$format = '%Y'.$phrase['year'].'%c'.$phrase['month'].'%e'.$phrase['day']; $format = (LANGUAGE == 'japanese') ? '%Y'.$phrase['year'].'%c'.$phrase['month'].'%e'.$phrase['day'] :' %Y-%c-%e'; $photo_data = return_single_photo($_GET['photo_id'], 'i.views, i.photo_id, i.hash, i.title, i.description, i.make, i.model, DATE_FORMAT(i.date_taken,"'.$format.'") as formatted_taken, DATE_FORMAT(i.date_taken,"%Y") as year_taken, DATE_FORMAT(i.date_taken,"%m") as month_taken, DATE_FORMAT(i.date_taken,"%d") as date_taken, DATE_FORMAT(i.date_uploaded,"%Y") as year_uploaded, DATE_FORMAT(i.date_uploaded,"%m") as month_uploaded, DATE_FORMAT(i.date_uploaded,"%d") as date_uploaded, DATE_FORMAT(i.date_uploaded,"'.$format.'") as formatted_uploaded, ref, orig, ext, privacy'); /* 102128 */ $page_title = PAGE_TITLE_NAME.' | '. $photo_data['title']; if(isset($_POST['recheck'])) { $do_redirect = '/'.OWNERNAME.'/photos/'.$photo_data['photo_id']; $members_only = 1; $_GET['table'] = 'photos'; $_GET['group_id'] = $photo_data['photo_id']; include(PATH_TO_GLOBAL.'/j-shared/htdocs/manage/comments/add.php'); } if($_GET['fjc'] == 1) { header('Location: /'.OWNERNAME.'/photos/'.$photo_data['photo_id'].'/'); } if(THIS_DOT_COM == 'j-cafe.com') { $all_content = array ( 'logo-area' =>array ( $_SERVER["DOCUMENT_ROOT"].'/manage/shared/logo_area.php' ), 'navA' => array ( $_SERVER["DOCUMENT_ROOT"].'/manage/shared/nav/main_nav.php' ), 'navB' => array( $_SERVER["DOCUMENT_ROOT"].'/manage/shared/user_bar.php'), 'content' => array('./image_content.php') ); }else{ $all_content = make_content('./image_content.php', 'viewphoto'); } require($_SERVER["DOCUMENT_ROOT"].'/manage/html/layout/default.phtml'); exit;