예제 #1
0
파일: ajax.php 프로젝트: HRNIT/paris2015
        $location = "Analytics";
    }
    if (isset($_SESSION['SpeakerCompanyId'])) {
        $result = $the_main->file_upload('press/' . $location . '/CompanyLogos/', $_POST['Name']);
        if (isset($result['name'])) {
            $the_main->press_pic_upload($_POST['entity_id'], $_SESSION['SpeakerCompanyId'], $result['name'], $_POST['Name']);
        }
    }
}
/*///////////// 
Edit press Data
///////////////*/
if (isset($_POST['action']) && $_POST['action'] == 'edit_press') {
    $the_main = new main\main();
    if (isset($_POST['sId']) && isset($_POST['edit_type'])) {
        $result = $the_main->edit_press();
        if (isset($result) && $result != "Deleted") {
            $_SESSION['Result'] = 'Success';
            echo 'Success';
        }
    }
}
/*///////////// 
Change speaker image
///////////////*/
if (isset($_POST['action']) && $_POST['action'] == 'edit_press_image') {
    $the_main = new main\main();
    if (isset($_POST['entity_id']) && $_POST['entity_id'] == 6) {
        $location = "BlogSquad";
    } else {
        $location = "Analytics";