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
<!-- HTML PART --> | |
<form enctype="multipart/form-data" action="<?php echo htmlentities($_SERVER['PHP_SELF']); ?>" method="post" name="changer"> | |
<input name="MAX_FILE_SIZE" value="1002400" type="hidden"> <!-- File size --> | |
<input name="image" accept="image/jpeg" type="file" value=""> | |
<input value="Submit" type="submit"> | |
<?php | |
if(!isset($_FILES['image'])) | |
{ |
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 | |
echo generateRandomString(); | |
function generateRandomString($length = 10) { | |
$characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; | |
$charactersLength = strlen($characters); | |
$randomString = ''; | |
for ($i = 0; $i < $length; $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
<form method="post" enctype="multipart/form-data"> | |
<input type="file" id="file" name="files[]" multiple /> | |
<input type="submit" value="Upload" class="btn btn-success"/> | |
</form> | |
<?php | |
$valid_formats = array("c", "cpp", "php", "java", "bat", "js" ,"sql" ,"html"); | |
$max_file_size = 1024*5000; //100 kb | |
$path = "myfiles/"; // Upload directory | |
$count = 0; |
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
<table> | |
<tr> | |
<th> Header Name </th> | |
<th> Header Details </th> | |
</tr> | |
<tr> | |
<tr> | |
<% | |
// Printing the request and response header | |
Enumeration header = request.getHeaderNames(); |
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
envpath="$PATH" | |
sum=0 | |
IFS=':' | |
read -ra ADDR <<< "$envpath" | |
for x in "${ADDR[@]}"; do | |
cd "$x" | |
for y in `ls -l | grep -E "[d\-](([rw\-]{2})x){1,3}"`; do | |
sum=$((1 + sum)) | |
done | |
done |
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
const debounce = (func, delay) => { | |
let inDebounce | |
return function() { | |
const context = this | |
const args = arguments | |
clearTimeout(inDebounce) | |
inDebounce = setTimeout(() => func.apply(context, args), delay) | |
} | |
} |
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
$("html, body").animate({ scrollTop: $(document).height() }, 1000); |
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 config($key, $default =null) { | |
$file = strtok($key,'.'); | |
$folderPath = __DIR__ . '\\..\\..\\config\\'.$file.'.php'; | |
$value = $default; | |
try { | |
$value = require($folderPath); | |
$keys = strtok('.'); | |
} catch (\Exception $e) { | |
return $default; | |
} |
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
{"lastUpload":"2019-07-23T05:27:49.714Z","extensionVersion":"v3.4.1"} |
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
let arr = []; | |
$('*[data-uniqueid="637612369"] tr').each((e,i)=>{ if($(i).hasClass("even") || $(i).hasClass("odd")) { var l = ($(i).children('td:first').text().split('.')).length; var ll = $(i).children('td:first').text().split('.')[l-1]; arr.push(ll); } }) | |
console.log(arr); | |
// run all lines sapratlly |
OlderNewer