sync, implemented sort, viewing user pages & articles written, updating db
This commit is contained in:
@@ -128,6 +128,17 @@ function read_file($file_path)
|
||||
return $fs;
|
||||
}
|
||||
|
||||
function extract_content_from_tag($string, $start, $end)
|
||||
{
|
||||
$ini = strpos($string, $start);
|
||||
if ($ini != 0)
|
||||
return "nope";
|
||||
|
||||
$ini += strlen($start);
|
||||
$len = strpos($string, $end, $ini) - $ini;
|
||||
return substr($string, $ini, $len);
|
||||
}
|
||||
|
||||
function check_image_upload($target, $filetype, $image)
|
||||
{
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user