added: cover photo to channels page
This commit is contained in:
parent
78376704be
commit
2952bd95e0
1 changed files with 7 additions and 1 deletions
|
@ -6,7 +6,6 @@
|
|||
| @ Software : ClipBucket , © PHPBucket.com
|
||||
****************************************************************
|
||||
*/
|
||||
|
||||
define("THIS_PAGE","edit_account");
|
||||
|
||||
require 'includes/config.inc.php';
|
||||
|
@ -28,6 +27,12 @@ if(isset($_POST['update_avatar_bg']))
|
|||
$userquery->update_user_avatar_bg($array);
|
||||
}
|
||||
|
||||
if(isset($_FILES["coverPhoto"])){
|
||||
$array = $_FILES;
|
||||
$array['userid'] = userid();
|
||||
$userquery->updateCover($array);
|
||||
}
|
||||
|
||||
//Changing Email
|
||||
if(isset($_POST['change_email']))
|
||||
{
|
||||
|
@ -69,6 +74,7 @@ switch($mode)
|
|||
|
||||
case 'avatar_bg':
|
||||
{
|
||||
assign("coverPhoto", $userquery->getCover(userid()));
|
||||
assign('mode','avatar_bg');
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Add table
Reference in a new issue