mirror of
https://github.com/gamaio/lobli.git
synced 2024-12-22 19:52:40 +00:00
Move seperator into process.php and test shorten function
This commit is contained in:
parent
c2dbb861d0
commit
27f70868b3
@ -5,6 +5,8 @@
|
|||||||
$catchid = $catches[0];
|
$catchid = $catches[0];
|
||||||
$catchVal = $catches[1];
|
$catchVal = $catches[1];
|
||||||
|
|
||||||
|
$seperator = "ᐖ"; // Chosen because it looks like a smiling face
|
||||||
|
|
||||||
// Returns will be in the structure: Message code / seperator / extra data and will be formatted client side
|
// Returns will be in the structure: Message code / seperator / extra data and will be formatted client side
|
||||||
/*
|
/*
|
||||||
Message codes:
|
Message codes:
|
||||||
@ -96,11 +98,11 @@
|
|||||||
if(strpos($short, "http://") === false && strpos($short, "https://") === false){
|
if(strpos($short, "http://") === false && strpos($short, "https://") === false){
|
||||||
$short = "http://$short";
|
$short = "http://$short";
|
||||||
}
|
}
|
||||||
echo shorten($shortdb, $short);
|
echo shorten($shortdb, $short, $seperator);
|
||||||
|
|
||||||
foreach($messages as $message){
|
//foreach($messages as $message){
|
||||||
echo $message;
|
// echo $message;
|
||||||
}
|
//}
|
||||||
|
|
||||||
}else{ die("<div id=\"danger\" class=\"alert alert-danger\">I can't do my job if I'm not given a link to work on...</div>"); }
|
}else{ die("<div id=\"danger\" class=\"alert alert-danger\">I can't do my job if I'm not given a link to work on...</div>"); }
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user