我是CakePHP新手,英语不是我的第一语言,所以如果我的问题不清楚,我很抱歉。不管怎样,我有两个模型:开发者和游戏。
<?php
class Developer extends AppModel
{
var $name = 'Developer';
var $belongsTo = array('Game');
}
?>
和
<?php
class Game extends AppModel
{
var $name = 'Game';
var $hasMany = array('Deve
我最近为我的游戏社区获得了IPBoard板卡软件,我将其从SMF转换而来。
当我使用smf时,我使用了一个系统来授权玩家在我的游戏服务器上注册,这个脚本称为php脚本,它将玩家在游戏中输入的密码进行哈希(sha1),并将其发送回在游戏中运行的脚本。然后在让他玩之前,我检查了玩家是否在论坛中注册了。嗯,IPBoard使用了不同的散列:
$hash = md5( md5( $salt ) . md5( $password ) );
其中:
$hash is the value stored in the database column members_pass_hash.
$salt is the