mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +02:00
remove some deprecated lines and debug
This commit is contained in:
parent
17b9f83bef
commit
2f23875a67
2 changed files with 2 additions and 8 deletions
|
@ -392,8 +392,6 @@ if (typeof gtag !== \"function\") {
|
||||||
} else {
|
} else {
|
||||||
$sql = "INSERT INTO users (user, password, email, name, isAdmin, canStream, canUpload, canViewChart, status,photoURL,recoverPass, created, modified, channelName, analyticsCode) VALUES ('{$this->user}','{$this->password}','{$this->email}','{$this->name}',{$this->isAdmin}, {$this->canStream}, {$this->canUpload}, false, '{$this->status}', '{$this->photoURL}', '{$this->recoverPass}', now(), now(), '{$this->channelName}', '{$this->analyticsCode}')";
|
$sql = "INSERT INTO users (user, password, email, name, isAdmin, canStream, canUpload, canViewChart, status,photoURL,recoverPass, created, modified, channelName, analyticsCode) VALUES ('{$this->user}','{$this->password}','{$this->email}','{$this->name}',{$this->isAdmin}, {$this->canStream}, {$this->canUpload}, false, '{$this->status}', '{$this->photoURL}', '{$this->recoverPass}', now(), now(), '{$this->channelName}', '{$this->analyticsCode}')";
|
||||||
}
|
}
|
||||||
//echo $sql;
|
|
||||||
error_log($sql);
|
|
||||||
$insert_row = sqlDAL::writeSql($sql);
|
$insert_row = sqlDAL::writeSql($sql);
|
||||||
|
|
||||||
if ($insert_row) {
|
if ($insert_row) {
|
||||||
|
|
|
@ -431,10 +431,6 @@ $advancedCustom = json_decode($json_file);
|
||||||
swal("<?php echo __("Sorry!"); ?>", "<?php echo addslashes($_GET['error']); ?>", "error");
|
swal("<?php echo __("Sorry!"); ?>", "<?php echo addslashes($_GET['error']); ?>", "error");
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
$refererUrl = $_SERVER["HTTP_REFERER"];
|
|
||||||
if (strpos($_SERVER["HTTP_REFERER"], "?error=" . __("You%20can%20not%20manage")) != false) {
|
|
||||||
$refererUrl = substr($_SERVER["HTTP_REFERER"], 0, strpos($_SERVER["HTTP_REFERER"], "?"));
|
|
||||||
}
|
|
||||||
?>
|
?>
|
||||||
$('#loginForm').submit(function (evt) {
|
$('#loginForm').submit(function (evt) {
|
||||||
evt.preventDefault();
|
evt.preventDefault();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue