コード例 #1
0
ファイル: profile.php プロジェクト: Yoyoyozo/webDiplomacy
		<li class="formlistfield"><input type="submit" class="form-submit" value="' . l_t('Send') . '" /></li>
		</form>
		</ul>
		</div>';
}
libHTML::pagebreak();
$search = new search('Profile');
$profilePager = new PagerGames('profile.php', $total);
$profilePager->addArgs('userID=' . $UserProfile->id);
if (isset($_REQUEST['advanced']) && $User->type['User']) {
    print '<a name="search"></a>';
    print '<h3>' . l_t('Search %s\'s games:', $UserProfile->username) . ' (<a href="profile.php?page=1&amp;userID=' . $UserProfile->id . '#top" class="light">' . l_t('Close') . '</a>)</h3>';
    $profilePager->addArgs('advanced=on');
    $searched = false;
    if (isset($_REQUEST['search'])) {
        libAuth::resourceLimiter('profile game search', 5);
        $searched = true;
        $_SESSION['search-profile.php'] = $_REQUEST['search'];
        $search->filterInput($_SESSION['search-profile.php']);
    } elseif (isset($_REQUEST['page']) && isset($_SESSION['search-profile.php'])) {
        $searched = true;
        $search->filterInput($_SESSION['search-profile.php']);
    }
    print '<div style="margin:30px">';
    print '<form action="profile.php?userID=' . $UserProfile->id . '&advanced=on#top" method="post">';
    print '<input type="hidden" name="page" value="1" />';
    $search->formHTML();
    print '</form>';
    print '<p><a href="profile.php?page=1&amp;userID=' . $UserProfile->id . '#top" class="light">' . l_t('Close search') . '</a></p>';
    print '</div>';
    if ($searched) {
コード例 #2
0
   You should have received a copy of the GNU Affero General Public License
   along with webDiplomacy.  If not, see <http://www.gnu.org/licenses/>.
*/
/**
 * @package Base
 * @subpackage Game
 */
require_once 'header.php';
require_once l_r('gamesearch/search.php');
require_once l_r('pager/pagergame.php');
require_once l_r('objects/game.php');
require_once l_r('gamepanel/game.php');
libHTML::starthtml();
print '<div class="content">';
if (isset($_REQUEST['find'])) {
    libAuth::resourceLimiter('search games', 5);
    if (isset($_REQUEST['find']['game'])) {
        $game = $DB->escape($_REQUEST['find']['game']);
    }
    if (isset($_REQUEST['find']['member'])) {
        $member = $DB->escape($_REQUEST['find']['member']);
    }
    if (isset($_REQUEST['find']['type']) && $_REQUEST['find']['type'] == 'id') {
        $useID = true;
        $game = (int) $game;
        $member = (int) $member;
    } else {
        $useID = false;
    }
    $tabl = $DB->sql_tabl('SELECT g.id, g.variantID FROM wD_Games g
			INNER JOIN wD_Members m ON ( m.gameID = g.id )