PHP User::getCharterAcceptance Examples

PHP User::getCharterAcceptance - 2 examples found. These are the top rated real world PHP examples of User::getCharterAcceptance extracted from open source projects. You can rate examples to help us improve the quality of examples.
Example #1
0
 public static function changeUserFameLevel($fameLevel)
 {
     if (User::isLogged()) {
         if (User::getCharterAcceptance(self::getId())) {
             $newStaticBdd = new BDD();
             if (isset($fameLevel) and !empty($fameLevel)) {
                 $fameLevel = $newStaticBdd->real_escape_string(htmlspecialchars($fameLevel));
                 $newStaticBdd->update("users", "fame_level = '" . $fameLevel . "'", "WHERE token = '" . self::getToken() . "'");
                 $dataArray['result'] = true;
                 $dataArray['error'] = null;
                 $dataArray['reply'] = "Fame Level changed !";
             }
         } else {
             $dataArray['result'] = false;
             $dataArray['error'] = "Non-acceptance of the charter !";
             $dataArray['reply'] = null;
         }
     } else {
         $dataArray['result'] = false;
         $dataArray['error'] = "User not logged !";
         $dataArray['reply'] = null;
     }
     return $dataArray;
 }
Example #2
0
						<div id="charter-acceptance-container">
<?php 
        if (User::getCharterAcceptance($argPage)) {
            ?>
							<input type="checkbox" name="fb-permission" checked="checked">
<?php 
        } else {
            ?>
							<input type="checkbox" name="fb-permission" >
<?php 
        }
        ?>
							<p>I certify to have gave real informations and I accept the risk of being banned</p>
						</div>
<?php 
        if (User::getCharterAcceptance($argPage)) {
            ?>
							<div id="charter-acceptance-blocker" class="unactivate">
<?php 
        } else {
            ?>
							<div id="charter-acceptance-blocker" class="activate">
<?php 
        }
        ?>
								<h2>You must check the acceptance of the charter before edit your account !</h2>
							</div>
<?php 
    }
    ?>
					<li id="user-mutant-container">