Exemplo n.º 1
0
    }
}
if (isset($_POST['upload'])) {
    if (isset($_FILES['media'])) {
        upload_profilepic($_FILES['media'], $uid);
    } else {
        echo "<script language=\"javascript\" type=\"text/javascript\">";
        echo "alert('Please choose an image')";
        echo "</script>";
    }
}
if (isset($_POST['all'])) {
    if (!empty($_POST['about'])) {
        if (strlen($_POST['password']) > 5 && strlen($_POST['password_check']) > 5) {
            if (strcmp($_POST['password'], $_POST['password_check']) == 0) {
                updateAll($_POST['password'], $_POST['about'], $uid);
                if (isset($_FILES['media'])) {
                    upload_profilepic($_FILES['media'], $uid);
                } else {
                    echo "<script language=\"javascript\" type=\"text/javascript\">";
                    echo "alert('Choose a proper file! thanks')";
                    echo "</script>";
                }
            } else {
                echo "<script language=\"javascript\" type=\"text/javascript\">";
                echo "alert('The Passwords not matching! Try again.Thank you')";
                echo "</script>";
            }
        } else {
            echo "<script language=\"javascript\" type=\"text/javascript\">";
            echo "alert('Minimum length of password is 6')";
Exemplo n.º 2
0
function onCdr($ev)
{
    global $chans;
    updateAll($chans, $ev->GetValue("external"), $ev, $ev->GetValue("chan"));
    return false;
}
Exemplo n.º 3
0
<?php

include "functions.php";
?>

<?php 
if (isset($_POST['submit'])) {
    updateAll();
}
?>

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <title>Login Update PHP</title>

    <!-- Bootstrap -->
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
  </head>
  <body>

    <div class="container">
      <div class="row">

        <div class="col-md-12">
          <h1>UPDATE</h1>
          <form action="login_update.php" method="post">