Beispiel #1
0
                    $agreed = 0;
                }
            }
            $username = $FETCH_LOGIN['uname'];
            $type = $FETCH_LOGIN['type'];
            $head_admin = $FETCH_LOGIN['head_admin'];
            $email = $FETCH_LOGIN['email'];
            $user_id = $FETCH_LOGIN['id'];
            $gender = $FETCH_LOGIN['gender'];
        }
        if ($logged == 1) {
            /* LOGGED IN */
            /* CHECK FOR STATUS */
            switch ($status) {
                case 'active':
                    runAchievementCheck('checkBadgeMessages', $properties, $user_id, $WEBSITE_URL);
                    /* START OF INSIDE PAGE */
                    if ($properties->TURN_ON_TOP_NAV == "yes") {
                        ?>
<div id="topnavigation-full">
<div class="wrap">
<div id="topnav">
<?php 
                        if (getGlobalVars($properties, 'top_nav_use') == "toolkit") {
                            include "includes/private/bin/modules/native/toolkit.php";
                        } else {
                            if (getGlobalVars($properties, 'top_nav_use') == "top navigation w/ search") {
                                include "includes/private/bin/modules/native/topnavwithsearch.php";
                            } else {
                                if (getGlobalVars($properties, 'top_nav_use') == "top navigation w/o search") {
                                    include "includes/private/bin/modules/native/topnavwithoutsearch.php";
Beispiel #2
0
     echo $value;
     if ($foruid > 0) {
         /* UID IS LIKING SOMETHING THAT IS NOT THERE OWN */
         /* FOR A USER */
         /* IF UID>1 THEN CHECK FOR A BADGE THAT AWARDS THEM FOR GETTING A LIKE FIRST THE FIRST TIME ON A COMMENT */
         $weburl = $WEBSITE_URL;
         /* FIND THE BID OF THE BADGE THAT HAS A REQUIREMENT OF 1likeoncomment */
         $REQUIREMENTS = "Someone other than you must like one of your comments";
         $FIND_BID_OF_REQUIRE = mysql_query("SELECT * FROM {$properties->DB_PREFIX}badges WHERE requirements='" . $REQUIREMENTS . "'");
         if (mysql_num_rows($FIND_BID_OF_REQUIRE) < 1) {
             /* SOMETHING WENT WRONG */
         } else {
             while ($FETCH_BID_OF_REQUIRE = mysql_fetch_array($FIND_BID_OF_REQUIRE)) {
                 $theBID = $FETCH_BID_OF_REQUIRE['id'];
             }
             runAchievementCheck('firstCommentLiked', $properties, $foruid, $weburl);
         }
     }
 } else {
     /* UIP HAS LIKED IT; CHECK TO SEE IF IT HAS BEEN 24 HOURS OR CHECK FOR OPPOSITE ACTION (if like = dislike; if dislike - like*/
     while ($FETCH_UIP = mysql_fetch_array($CHECK_UIP)) {
         $last_like = $FETCH_UIP['last_like'];
         $lldate = $FETCH_UIP['last_like'];
         $indbtype = $FETCH_UIP['type'];
     }
     if ($type == $indbtype) {
         /* SAME TYPE; CHECK LAST DATE */
         /* 2013-06-24 = TODAY */
         /* 0123456789 		  */
         /* BREAK THE DATES APART */
         $todaydate_y = substr($todaydate, 0, 4);