mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 10:49:36 +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) {
|
||||||
|
|
|
@ -70,7 +70,7 @@ $advancedCustom = json_decode($json_file);
|
||||||
<span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span>
|
<span class="input-group-addon"><i class="glyphicon glyphicon-envelope"></i></span>
|
||||||
<input id="inputEmail" placeholder="<?php echo __("E-mail"); ?>" class="form-control" type="email" value="<?php echo $user->getEmail(); ?>" required >
|
<input id="inputEmail" placeholder="<?php echo __("E-mail"); ?>" class="form-control" type="email" value="<?php echo $user->getEmail(); ?>" required >
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<?php
|
<?php
|
||||||
if ($user->getEmailVerified()) {
|
if ($user->getEmailVerified()) {
|
||||||
|
@ -192,7 +192,7 @@ $advancedCustom = json_decode($json_file);
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
var uploadCrop;
|
var uploadCrop;
|
||||||
|
|
||||||
function isAnalytics() {
|
function isAnalytics() {
|
||||||
str = $('#analyticsCode').val();
|
str = $('#analyticsCode').val();
|
||||||
return str === '' || (/^ua-\d{4,9}-\d{1,4}$/i).test(str.toString());
|
return str === '' || (/^ua-\d{4,9}-\d{1,4}$/i).test(str.toString());
|
||||||
|
@ -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