$ uname -r
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"crypto/aes" | |
"crypto/cipher" | |
"fmt" | |
"crypto/rand" | |
"io" | |
"encoding/base64" | |
"encoding/hex" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Http\Controllers\Admin; | |
use Illuminate\Http\Request; | |
use App\Model\user\User; | |
use Illuminate\Support\Facades\DB; | |
use App\Http\Controllers\Controller; | |
class UserController extends Controller |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Copyright 2010 The Go Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
package main | |
import ( | |
"html/template" | |
"io/ioutil" | |
"net/http" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$data = Foo::with('bar') | |
->with('foo') | |
->paginate(10); | |
echo $data; | |
/* returns: | |
« | |
1 | |
2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(isset($_GET['err']) AND $_GET['err'] == 1) { // eğer adres satırında err parametresi varsa ve 1 ise ekrana hata bastır. | |
echo "kullanıcı adı yada şifre yanlış."; | |
} | |
else { // burada ne yapacağını başlatıp php betiğini bitiriyoruz ki düz HTML yazabilelim. | |
?> | |
<form method="POST" action="loginCheck.php"> | |
<label for="username">Kullanıcı Adı </label> | |
<input type="text" name="username" id="username"> | |
<label for="password">Şifre</label> |