This repository has been archived by the owner on Apr 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- fix for Bug #838190 'RESTORE-PASSWORD: 404 error with restore URL' - improvements in PlayerScores and Top10Players portlet - bug fixing ZenTag - changes in metadatagames css
- Loading branch information
1 parent
d89b0e0
commit a22b5bc
Showing
16 changed files
with
207 additions
and
189 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,7 +83,7 @@ CREATE TABLE IF NOT EXISTS `user` ( | |
`username` VARCHAR(32) NOT NULL , | ||
`password` VARCHAR(128) NOT NULL , | ||
`email` VARCHAR(128) NOT NULL , | ||
`activkey` VARCHAR(128) NOT NULL DEFAULT '' , | ||
`activekey` VARCHAR(128) NOT NULL DEFAULT '' , | ||
`lastvisit` DATETIME NULL , | ||
`role` VARCHAR(45) NOT NULL DEFAULT 'player' , | ||
`status` INT(1) NOT NULL DEFAULT '0' , | ||
|
@@ -198,6 +198,7 @@ CREATE TABLE IF NOT EXISTS `image` ( | |
`name` VARCHAR(254) NOT NULL , | ||
`size` INT(11) NOT NULL , | ||
`mime_type` VARCHAR(45) NOT NULL , | ||
`batch_id` VARCHAR(45) NOT NULL DEFAULT 'BATCH-001' , | ||
`last_access` DATETIME NULL , | ||
`locked` INT(1) NOT NULL DEFAULT 0 , | ||
`created` DATETIME NOT NULL , | ||
|
@@ -708,10 +709,10 @@ COMMIT; | |
-- Data for table `user` | ||
-- ----------------------------------------------------- | ||
START TRANSACTION; | ||
INSERT INTO `user` (`id`, `username`, `password`, `email`, `activkey`, `lastvisit`, `role`, `status`, `edited_count`, `created`, `modified`) VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', '[email protected]', '9a24eff8c15a6a141ece27eb6947da0f', NULL, 'admin', 1, 0, '2011-01-01 12:00', '2011-01-01 12:00'); | ||
INSERT INTO `user` (`id`, `username`, `password`, `email`, `activkey`, `lastvisit`, `role`, `status`, `edited_count`, `created`, `modified`) VALUES (2, 'dbmanager', 'a945e003507368542f40f13b3076ca6f', '[email protected]', 'b58e465dcb47f8459439cf54535bc8ae', NULL, 'dbmanager', 1, 0, '2011-01-01 12:00', '2011-01-01 12:00'); | ||
INSERT INTO `user` (`id`, `username`, `password`, `email`, `activkey`, `lastvisit`, `role`, `status`, `edited_count`, `created`, `modified`) VALUES (3, 'editor', '5aee9dbd2a188839105073571bee1b1f', '[email protected]', '52c200c7ca710d13f2ba1bea3788723c', NULL, 'editor', 1, 0, '2011-01-01 12:00', '2011-01-01 12:00'); | ||
INSERT INTO `user` (`id`, `username`, `password`, `email`, `activkey`, `lastvisit`, `role`, `status`, `edited_count`, `created`, `modified`) VALUES (4, 'player', '912af0dff974604f1321254ca8ff38b6', '[email protected]', 'd3f33d7d0e80bbe3004adc82fc9e779c', NULL, 'player', 1, 0, '2011-01-01 12:00', '2011-01-01 12:00'); | ||
INSERT INTO `user` (`id`, `username`, `password`, `email`, `activekey`, `lastvisit`, `role`, `status`, `edited_count`, `created`, `modified`) VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', '[email protected]', '9a24eff8c15a6a141ece27eb6947da0f', NULL, 'admin', 1, 0, '2011-01-01 12:00', '2011-01-01 12:00'); | ||
INSERT INTO `user` (`id`, `username`, `password`, `email`, `activekey`, `lastvisit`, `role`, `status`, `edited_count`, `created`, `modified`) VALUES (2, 'dbmanager', 'a945e003507368542f40f13b3076ca6f', '[email protected]', 'b58e465dcb47f8459439cf54535bc8ae', NULL, 'dbmanager', 1, 0, '2011-01-01 12:00', '2011-01-01 12:00'); | ||
INSERT INTO `user` (`id`, `username`, `password`, `email`, `activekey`, `lastvisit`, `role`, `status`, `edited_count`, `created`, `modified`) VALUES (3, 'editor', '5aee9dbd2a188839105073571bee1b1f', '[email protected]', '52c200c7ca710d13f2ba1bea3788723c', NULL, 'editor', 1, 0, '2011-01-01 12:00', '2011-01-01 12:00'); | ||
INSERT INTO `user` (`id`, `username`, `password`, `email`, `activekey`, `lastvisit`, `role`, `status`, `edited_count`, `created`, `modified`) VALUES (4, 'player', '912af0dff974604f1321254ca8ff38b6', '[email protected]', 'd3f33d7d0e80bbe3004adc82fc9e779c', NULL, 'player', 1, 0, '2011-01-01 12:00', '2011-01-01 12:00'); | ||
|
||
COMMIT; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,122 +1,122 @@ | ||
<?php | ||
$this->breadcrumbs=array( | ||
Yii::t('app', 'Admin')=>array('/admin'), | ||
UserModule::t('Users')=>array('/admin/user'), | ||
$model->username, | ||
); | ||
|
||
$this->menu=array( | ||
array('label'=>Yii::t('app', 'Manage') . ' ' . $model->label(2), 'url'=>array('admin')), | ||
array('label'=>Yii::t('app', 'Create') . ' ' . $model->label(), 'url'=>array('create')), | ||
array('label'=>Yii::t('app', 'Update') . ' ' . $model->label(), 'url'=>array('update', 'id' => $model->id)), | ||
array('label'=>Yii::t('app', 'Delete') . ' ' . $model->label(), 'url'=>'#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm'=>'Are you sure you want to delete this user?')), | ||
); | ||
?> | ||
|
||
<?php | ||
|
||
$attributes = array( | ||
'id', | ||
'username', | ||
); | ||
|
||
$profileFields=ProfileField::model()->forOwner()->sort()->findAll(); | ||
if ($profileFields) { | ||
foreach($profileFields as $field) { | ||
array_push($attributes,array( | ||
'label' => UserModule::t($field->title), | ||
'name' => $field->varname, | ||
'type'=>'raw', | ||
'value' => (($field->widgetView($model->profile))?$field->widgetView($model->profile):(($field->range)?Profile::range($field->range,$model->profile->getAttribute($field->varname)):$model->profile->getAttribute($field->varname))), | ||
)); | ||
} | ||
} | ||
// xxx the order of the fields might want to be changed. | ||
array_push($attributes, | ||
'password', | ||
'email', | ||
'activkey', | ||
'created', | ||
'modified', | ||
array( | ||
'name' => 'edited_count', | ||
'value' => $model->edited_count . " (xxx this functionality is not yet active)", | ||
), | ||
array( | ||
'name' => 'lastvisit', | ||
'value' => (($model->lastvisit)?$model->lastvisit:UserModule::t('Not visited')) | ||
), | ||
array( | ||
'name' => 'role', | ||
'value' => $model->role, | ||
), | ||
array( | ||
'name' => 'status', | ||
'value' => User::itemAlias("UserStatus",$model->status), | ||
) | ||
); | ||
?> | ||
|
||
<h1><?php echo Yii::t('app', 'View') . ' ' . GxHtml::encode($model->label()) . ' ' . GxHtml::encode(GxHtml::valueEx($model)); ?></h1> | ||
|
||
<?php $this->widget('zii.widgets.CDetailView', array( | ||
'data' => $model, | ||
'attributes' => $attributes | ||
)); ?> | ||
|
||
<h2><?php echo GxHtml::encode($model->getRelationLabel('log')); ?></h2> | ||
<?php | ||
echo GxHtml::openTag('ul'); | ||
if (count($model->logs) == 0) { | ||
echo "<li>no item(s) assigned</li>"; | ||
} | ||
|
||
foreach($model->logs as $relatedModel) { | ||
echo GxHtml::openTag('li'); | ||
echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('log/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true))); | ||
echo GxHtml::closeTag('li'); | ||
} | ||
echo GxHtml::closeTag('ul'); | ||
?><h2><?php echo GxHtml::encode($model->getRelationLabel('session')); ?></h2> | ||
<?php | ||
echo GxHtml::openTag('ul'); | ||
|
||
if (count($model->sessions) == 0) { | ||
echo "<li>no item(s) assigned</li>"; | ||
} | ||
|
||
foreach($model->sessions as $relatedModel) { | ||
echo GxHtml::openTag('li'); | ||
echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('sessions/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true))); | ||
echo GxHtml::closeTag('li'); | ||
} | ||
echo GxHtml::closeTag('ul'); | ||
?><h2><?php echo GxHtml::encode($model->getRelationLabel('game')); ?></h2> | ||
<?php | ||
echo GxHtml::openTag('ul'); | ||
|
||
if (count($model->games) == 0) { | ||
echo "<li>no item(s) assigned</li>"; | ||
} | ||
|
||
foreach($model->games as $relatedModel) { | ||
echo GxHtml::openTag('li'); | ||
echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('games/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true))); | ||
echo GxHtml::closeTag('li'); | ||
} | ||
echo GxHtml::closeTag('ul'); | ||
?><h2><?php echo GxHtml::encode($model->getRelationLabel('subjectMatter')); ?></h2> | ||
<?php | ||
echo GxHtml::openTag('ul'); | ||
|
||
if (count($model->subjectMatters) == 0) { | ||
echo "<li>no item(s) assigned</li>"; | ||
} | ||
|
||
foreach($model->subjectMatters as $relatedModel) { | ||
echo GxHtml::openTag('li'); | ||
echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('subjectMatters/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true))); | ||
echo GxHtml::closeTag('li'); | ||
} | ||
echo GxHtml::closeTag('ul'); | ||
?> | ||
<?php | ||
$this->breadcrumbs=array( | ||
Yii::t('app', 'Admin')=>array('/admin'), | ||
UserModule::t('Users')=>array('/admin/user'), | ||
$model->username, | ||
); | ||
|
||
$this->menu=array( | ||
array('label'=>Yii::t('app', 'Manage') . ' ' . $model->label(2), 'url'=>array('admin')), | ||
array('label'=>Yii::t('app', 'Create') . ' ' . $model->label(), 'url'=>array('create')), | ||
array('label'=>Yii::t('app', 'Update') . ' ' . $model->label(), 'url'=>array('update', 'id' => $model->id)), | ||
array('label'=>Yii::t('app', 'Delete') . ' ' . $model->label(), 'url'=>'#', 'linkOptions' => array('submit' => array('delete', 'id' => $model->id), 'confirm'=>'Are you sure you want to delete this user?')), | ||
); | ||
?> | ||
|
||
<?php | ||
|
||
$attributes = array( | ||
'id', | ||
'username', | ||
); | ||
|
||
$profileFields=ProfileField::model()->forOwner()->sort()->findAll(); | ||
if ($profileFields) { | ||
foreach($profileFields as $field) { | ||
array_push($attributes,array( | ||
'label' => UserModule::t($field->title), | ||
'name' => $field->varname, | ||
'type'=>'raw', | ||
'value' => (($field->widgetView($model->profile))?$field->widgetView($model->profile):(($field->range)?Profile::range($field->range,$model->profile->getAttribute($field->varname)):$model->profile->getAttribute($field->varname))), | ||
)); | ||
} | ||
} | ||
// xxx the order of the fields might want to be changed. | ||
array_push($attributes, | ||
'password', | ||
'email', | ||
'activekey', | ||
'created', | ||
'modified', | ||
array( | ||
'name' => 'edited_count', | ||
'value' => $model->edited_count . " (xxx this functionality is not yet active)", | ||
), | ||
array( | ||
'name' => 'lastvisit', | ||
'value' => (($model->lastvisit)?$model->lastvisit:UserModule::t('Not visited')) | ||
), | ||
array( | ||
'name' => 'role', | ||
'value' => $model->role, | ||
), | ||
array( | ||
'name' => 'status', | ||
'value' => User::itemAlias("UserStatus",$model->status), | ||
) | ||
); | ||
?> | ||
|
||
<h1><?php echo Yii::t('app', 'View') . ' ' . GxHtml::encode($model->label()) . ' ' . GxHtml::encode(GxHtml::valueEx($model)); ?></h1> | ||
|
||
<?php $this->widget('zii.widgets.CDetailView', array( | ||
'data' => $model, | ||
'attributes' => $attributes | ||
)); ?> | ||
|
||
<h2><?php echo GxHtml::encode($model->getRelationLabel('log')); ?></h2> | ||
<?php | ||
echo GxHtml::openTag('ul'); | ||
if (count($model->logs) == 0) { | ||
echo "<li>no item(s) assigned</li>"; | ||
} | ||
|
||
foreach($model->logs as $relatedModel) { | ||
echo GxHtml::openTag('li'); | ||
echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('log/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true))); | ||
echo GxHtml::closeTag('li'); | ||
} | ||
echo GxHtml::closeTag('ul'); | ||
?><h2><?php echo GxHtml::encode($model->getRelationLabel('session')); ?></h2> | ||
<?php | ||
echo GxHtml::openTag('ul'); | ||
|
||
if (count($model->sessions) == 0) { | ||
echo "<li>no item(s) assigned</li>"; | ||
} | ||
|
||
foreach($model->sessions as $relatedModel) { | ||
echo GxHtml::openTag('li'); | ||
echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('sessions/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true))); | ||
echo GxHtml::closeTag('li'); | ||
} | ||
echo GxHtml::closeTag('ul'); | ||
?><h2><?php echo GxHtml::encode($model->getRelationLabel('game')); ?></h2> | ||
<?php | ||
echo GxHtml::openTag('ul'); | ||
|
||
if (count($model->games) == 0) { | ||
echo "<li>no item(s) assigned</li>"; | ||
} | ||
|
||
foreach($model->games as $relatedModel) { | ||
echo GxHtml::openTag('li'); | ||
echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('games/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true))); | ||
echo GxHtml::closeTag('li'); | ||
} | ||
echo GxHtml::closeTag('ul'); | ||
?><h2><?php echo GxHtml::encode($model->getRelationLabel('subjectMatter')); ?></h2> | ||
<?php | ||
echo GxHtml::openTag('ul'); | ||
|
||
if (count($model->subjectMatters) == 0) { | ||
echo "<li>no item(s) assigned</li>"; | ||
} | ||
|
||
foreach($model->subjectMatters as $relatedModel) { | ||
echo GxHtml::openTag('li'); | ||
echo GxHtml::link(GxHtml::encode(GxHtml::valueEx($relatedModel)), array('subjectMatters/view', 'id' => GxActiveRecord::extractPkValue($relatedModel, true))); | ||
echo GxHtml::closeTag('li'); | ||
} | ||
echo GxHtml::closeTag('ul'); | ||
?> |
Oops, something went wrong.