mirror of
https://gitlab.com/CodeSolutionsProject/CodeGuide
synced 2026-02-14 17:11:36 +01:00
Initial commit
This commit is contained in:
15
searchhelper.php
Normal file
15
searchhelper.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
$searchstr = $_GET['str'];
|
||||
$send = "";
|
||||
$lang = $_GET['lang'];
|
||||
if ($_GET['what'] == "func"){ //Si es el buscador rápido de newmidi.php (Tanto para nuevas como las del cajón)
|
||||
$send .= "<p>Mostrando funciones que contengan $searchstr...</p>";
|
||||
$funcs = scandir("langs/$lang/functions/");
|
||||
foreach ($funcs as $file){
|
||||
if (strpos($file, $searchstr) !== false){
|
||||
$file = explode('.',$file)[0];
|
||||
$send .= "<p><a href='?lang=$lang&func=$file'>$file</a></p>";
|
||||
}
|
||||
}
|
||||
}
|
||||
echo $send;
|
||||
Reference in New Issue
Block a user