Exemple #1
0
function noCachePage()
{
    // error_log('noCachePage Called',0);
    global $signedinuser, $page, $flag, $url, $href, $eventdate, $zipcode;
    global $order, $numPages, $curr_page, $prev_page, $next_page, $offset;
    $connection = DBConnection::getInstance();
    $eventlist = Events_Controller::getInstance();
    $tagcloud = Tags_Controller::getInstance();
    if (!is_null($page)) {
        $numPages = $eventlist->getNumPages($zipcode, $eventdate, $connection);
    }
    $indexEvents = $eventlist->getIndexEvents($zipcode, $order, $eventdate, $offset, null, $signedinuser, $connection);
    ob_start();
    require "../views/paginate.php";
    $paginateView = ob_get_clean();
    ob_start();
    require "../views/index.php";
    $fillContent = ob_get_clean();
    if ($flag == "authenticated") {
        $fillMessage = "<font color=green>Successfully logged in!</font>";
    }
    require "../views/site.php";
}
Exemple #2
0
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/**
 * PHP Template.
 * Author: Sheetal Patil. Sun Microsystems, Inc.
 *
 */
session_start();
require_once "../etc/config.php";
$se = $_REQUEST['socialEventID'];
$comments = $_POST['comments'];
$cid = $_POST['editingcid'];
$editcomments = $_POST['editcomments'];
$tagslist = Tags_Controller::getInstance();
$events = Events_Controller::getInstance();
$username = $_SESSION["uname"];
$dateFormat = "l,  F j,  Y,  h:i A";
$txBegun = false;
if (isset($_POST['commentsratingsubmit']) || isset($_POST['editcommentsratingsubmit']) && isset($_POST['editingcid'])) {
    $connection = DBConnection::getWriteInstance();
    $connection->beginTransaction();
    $txBegun = true;
} else {
    $connection = DBConnection::getInstance();
}
$eventTaglist = $tagslist->getEventsPageTagCloud($connection, $se);
$numAttendees = $events->getNumAttendees($se, $connection);
$_SESSION["numofattendees"] = $numAttendees;
$rating = $_SESSION["rating"];