예제 #1
0
             // add siteContentId into itemid2 of publishWire log entry
             $db->update("Log", "itemid2={$siteContentId}", "action='publishWire' AND itemid='{$itemid}' AND userid1=" . $userid);
         }
     } else {
         $error = true;
     }
     break;
 case 'showChallengeSubmitDialog':
     $challengeid = requestInt('challengeid');
     //require_once(PATH_CORE.'/classes/content.class.php');
     //$cObj=new content($db);
     //require_once(PATH_CORE.'/classes/utilities.class.php');
     ///$uObj=new utilities($db);
     //$story=$cObj->getById($itemid);
     require_once PATH_FACEBOOK . '/pages/pageChallenges.class.php';
     $code .= pageChallenges::fetchSubmissionDialogForm($db, $challengeid, $userid, $sessionKey);
     /*    $content = "<fb:name uid=\"".$session->fbId."\" firstnameonly=\"true\" shownetwork=\"false\"/> wants to share a story with you: <a href=\"".URL_CANVAS."?p=read&cid='.$itemid.'&referid='.$session->fbId.'\">".$story->title."</a>\n". "<fb:req-choice url=\"".URL_CANVAS."?p=read\" label=\"Read the story\"/>";
           $code='<fb:request-form action="'.URL_CANVAS.'?p=share" method="post" type="'.SITE_TITLE_SHORT.'" content="'.htmlentities($content).'" image="'.$image.'">  <fb:multi-friend-selector bypass="******" showborder="false" actiontext="Select friends you wish to share the story with below:" exclude_ids="" /> </fb:request-form> ';
           */
     /*    $code.='<form id="dialog_form" name="dialog_form">' //onsubmit="return false;">';
           $code .= '<p><strong>To:</strong> <fb:multi-friend-input width="350px" border_color="#8496ba" /></p>';
            $code.='</form>';*/
     // TODO: php redirect after submit
     break;
 case 'fetchTeamFriendsList':
     if (isset($_GET['state'])) {
         $state = $_GET['state'];
     } else {
         $state = 'collapsed';
     }
     require_once PATH_FACEBOOK . "/pages/pageTeam.class.php";