This file contains 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
<form method="post" > | |
Domain/IP: | |
<input type="text" name="domain" /> | |
<input type="submit" value="Scan" /> | |
</form> | |
<br /> | |
<?php | |
if(!empty($_POST['domain'])) { | |
//list of port numbers to scan |
This file contains 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 | |
// ______________________ | |
// / \ | |
// | WARNING: | | |
// | Here will be dragons | | |
// \___ _________________/ | |
// |/ | |
// (o_ | |
// //\ |
This file contains 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
<script type="text/javascript"> | |
function Dropdown(eenheid,regimenten) { | |
var A.B.L = <?php json_encode($Regimenten_ABL); ?> | |
switch (eenheid.value) { | |
case 'A.B.L': | |
regimenten.options.length = 0; | |
for (i = 0; i < colours.length; i++) { | |
createOption(regimenten, A.B.L[i], A.B.L[i]); | |
} |
This file contains 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 | |
ini_set('display_errors',0); | |
require_once('Spinternet/Api.php'); | |
//try { | |
$spinternet = Spinternet_Api::getInstance(); | |
$mm = $spinternet->getMemberManagement('jorisp@spinternet.be','sn1145', 'sn1145tAjgcNFWvMBDR48P9IhncE40uUsD6h', false); | |
This file contains 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
// error = Cannot GET /api/Bears | |
// Error: ER_ACCESS_DENIED_ERROR: Access denied for user 'newuser'@'127.0.0.1' (using password: YES) | |
// Server.js | |
// BASE SETUP | |
// ======================================================================================= | |
// Call the packages we need | |
var express = require('express'); // call express |
This file contains 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
$file = Input::file('file'); | |
$destinationPath = 'uploads'; | |
// If the uploads fail due to file system, you can try doing public_path().'/uploads' | |
$filename = str_random(12); | |
//$filename = $file->getClientOriginalName(); | |
//$extension =$file->getClientOriginalExtension(); | |
$upload_success = Input::file('file')->move($destinationPath, $filename); | |
if( $upload_success ) { | |
return Response::json('success', 200); |
This file contains 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
if($this->Auth) { | |
$config['allowed_types'] = 'jpg'; | |
$config['upload_path'] = './assets/Fotos'; | |
$this->load->library('upload', $config); | |
if (!$this->upload->do_upload()) { | |
$error = array('error' => $this->upload->display_errors()); | |
var_dump($error); | |
} else { |
This file contains 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 | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
class Welcome extends CI_Controller { | |
public function index() | |
{ | |
$this->load->helper('file'); | |
This file contains 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 | |
defined('BASEPATH') OR exit('No direct script access allowed'); | |
require(APPPATH'./includes/Table.php'); | |
class Statistics extends CI_Controller { | |
function __construct() { | |
parent::__construct(); | |
// Controller can only be called from the command line. | |
if(!$this->input->is_cli_request()) show_error('Direct access is not allowed'); | |
// Database Layers |
This file contains 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
function Columns() { | |
// Load variables | |
$Regiment = $this->Regimenten->Regimenten_All(); | |
$Begraafplaats = $this->Begraafplaatsen->Get_all(); | |
$Burgers = $this->Burgers->Doden(); | |
$Correctie = $this->Correcties->Get_all(); | |
$Vrijwilligers = $this->User->Get_users(); | |
$Soldaten = $this->Soldaten->Select(); | |
$query = $$this->db->list_fields('users'); |
OlderNewer