Ejemplo n.º 1
0
                                                 $output = $userRegBasic->getVideos($accessToken);
                                             } else {
                                                 if ($post_func == 'poststatus') {
                                                     $title = isset($post_value['title']) && !empty($post_value['title']) ? trim($post_value['title']) : '';
                                                     $url = isset($post_value['url']) && !empty($post_value['url']) ? trim($post_value['url']) : '';
                                                     $imageurl = isset($post_value['imageurl']) && !empty($post_value['imageurl']) ? trim($post_value['imageurl']) : '';
                                                     $status = isset($post_value['status']) && !empty($post_value['status']) ? trim($post_value['status']) : '';
                                                     $description = isset($post_value['description']) && !empty($post_value['description']) ? trim($post_value['description']) : '';
                                                     $output = $userRegBasic->postStatus($accessToken, $title, $url, $imageurl, $status, $title, $description);
                                                     // $_SESSION[$post_func] = $output;
                                                 } else {
                                                     if ($post_func == 'sendmessage') {
                                                         $to = isset($post_value['to']) && !empty($post_value['to']) ? trim($post_value['to']) : '';
                                                         $subject = isset($post_value['subject']) && !empty($post_value['subject']) ? trim($post_value['subject']) : '';
                                                         $message = isset($post_value['message']) && !empty($post_value['message']) ? trim($post_value['message']) : '';
                                                         $output = $userRegBasic->sendMessage($accessToken, $to, $subject, $message);
                                                         $_SESSION[$post_func] = $output;
                                                     }
                                                 }
                                             }
                                         }
                                     }
                                 }
                             }
                         }
                     }
                 }
             }
         }
     }
 }