1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00

remove some deprecated lines and debug

This commit is contained in:
Vinzenz Hersche 2018-06-26 04:03:15 +02:00
parent 17b9f83bef
commit 2f23875a67
2 changed files with 2 additions and 8 deletions

View file

@ -392,8 +392,6 @@ if (typeof gtag !== \"function\") {
} 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}')";
}
//echo $sql;
error_log($sql);
$insert_row = sqlDAL::writeSql($sql);
if ($insert_row) {

View file

@ -431,10 +431,6 @@ $advancedCustom = json_decode($json_file);
swal("<?php echo __("Sorry!"); ?>", "<?php echo addslashes($_GET['error']); ?>", "error");
<?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) {
evt.preventDefault();