Page Menu
Home
GitPull.it
Search
Configure Global Search
Log In
Files
F15177654
class-PageHome.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Authored By
Unknown
Size
1 KB
Referenced Files
None
Subscribers
None
class-PageHome.php
View Options
<?php
# WikiCAPTCHA Control Room
# Copyright (C) 2019 Valerio Bozzolan and contributors
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
/**
* Homepage of my website
*/
class
PageHome
extends
Page
{
/**
* User requested by ID
*/
public
$requestedUser
=
false
;
/**
* Do something at startup
*
* @override
*/
protected
function
prepare
(
)
{
// read the ID from the query string or zero
$id
=
$_GET
[
'id'
]
??
0
;
// make sure that it's an integer
$id
=
(int)
$id
;
// if it's non-zero
if
(
$id
)
{
// query the User with that ID (or get NULL)
$this
->
requestedUser
=
(
new
QueryUser
(
)
)
->
whereUserID
(
$id
)
->
queryRow
(
)
;
}
}
/**
* Get the requested User (if any!)
*
* @return User|null
*/
public
function
getRequestedUser
(
)
{
return
$this
->
requestedUser
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Thu, Nov 19, 04:02 (5 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2264676
Default Alt Text
class-PageHome.php (1 KB)
Attached To
Mode
R22 WikiCAPTCHA Control Room
Attached
Detach File
Event Timeline