public static function getIns() { if (self::$cry === null) { if (\PFC\Editor\Config::crypting == self::USE_Bcrypt && \PFC\Crypting\Bcrypt::isEnabled()) { self::$cry = self::getBcrypt(); } else { self::$cry = self::getSimple(); } } return self::$cry; }
type="radio" name="crypting" value="<?php echo AppCryptor::USE_Bcrypt; ?> "> Bcrypt <span <?php if (!\PFC\Crypting\Bcrypt::isEnabled()) { echo 'style="display:none"'; } ?> > rounders: <input type="text" name="bcryptrounders" value="<?php echo AppConfig::$BcryptRounds; ?> " style="width:100px"> </span> <?php if (!\PFC\Crypting\Bcrypt::isEnabled()) { echo 'NOT ENABLED ON SERVER'; } ?> <br class="clear"> </div> <br class="clear"> <div class="pfc-config-help"> used crypting method for password protection </div> </div> <br class="clear"> </div> <a class="accordicon-head" href="#pfc-editor-config-php">PHP settings</a>
color: lightskyblue; } </style> </head> <body> <h1>pfc editor login</h1> <div> server time: <span class="pfc-editor-server-time"><?php echo date('j.n.Y G:i:s'); ?> </span> </div> <?php if (AppConfig::$crypting == AppCryptor::USE_Bcrypt && !\PFC\Crypting\Bcrypt::isEnabled()) { ?> <h4>BCRYPTING IS TURN ON, BUT NOT SUPPORTED BY SERVER</h4> reset password <?php } ?> <br> <?php AppLogin::setFreeForLogingAccess(); if (isset($_GET['wrong-creditials']) && AppLogin::isFreeForLoging()) { //echo date('j.n.y G:i:s'); ?> <div>wrong creditials provided</div><br><?php } elseif (isset($_GET['wrong-creditials']) && !AppLogin::isFreeForLoging()) { ?>
} </style> </head> <body> <h1>pfc editor login</h1> <br> <div> server time: <span class="pfc-editor-server-time"><?php echo date('j.n.Y G:i:s'); ?> </span> </div> <?php if (AppConfig::crypting == AppCryptor::USE_Bcrypt && !Bcrypt::isEnabled()) { ?> <h4>BCRYPTING IS TURN ON, BUT NOT SUPPORTED BY SERVER</h4> reset password <?php } ?> <br> <div class="error" style="display:none;color:lightred;"> wrong creditials provided<br><br> </div> <div class="banned" style="display:none;color:lightred;"> banned until <span class="bannedToTime"></span> - too much tryies