From 443887dc10210481643f2cacbeb0f7a213db6d14 Mon Sep 17 00:00:00 2001 From: whotookelburg <> Date: Thu, 26 Jan 2023 23:08:50 +0000 Subject: [PATCH] more shit --- .gitignore | 1 + assets/themes/default/index.css | 21 +++++++++++ assets/themes/default/main.css | 22 ++++++++++++ data/locale/en_US/strings/aboutpage.ini | 5 +++ data/locale/en_US/strings/main.ini | 20 ++++++++--- data/locale/en_US/strings/search.ini | 6 ++-- data/locale/en_US/strings/theme.ini | 2 +- data/misc/icon/html.html | 1 + data/misc/icon/text.txt | 1 + dynamicGen.php | 16 +++++++++ index.php | 46 ++++++++++++++++++++----- serve.ini | 18 ++++++---- src/pages/aboutPage.php | 37 ++++++++++++++++++++ 13 files changed, 171 insertions(+), 25 deletions(-) create mode 100644 assets/themes/default/index.css create mode 100644 assets/themes/default/main.css create mode 100644 data/locale/en_US/strings/aboutpage.ini create mode 100644 data/misc/icon/html.html create mode 100644 data/misc/icon/text.txt create mode 100644 dynamicGen.php create mode 100644 src/pages/aboutPage.php diff --git a/.gitignore b/.gitignore index 5a8a3c9..4d910ea 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ *replit* +data/index \ No newline at end of file diff --git a/assets/themes/default/index.css b/assets/themes/default/index.css new file mode 100644 index 0000000..e1dc376 --- /dev/null +++ b/assets/themes/default/index.css @@ -0,0 +1,21 @@ +h1 { + text-align: center; + margin-top: 15%; + font-size: 14vw; +} +div { + white-space: nowrap; + width: auto; + display: block; + margin-left: 30%; + margin-right: 30%; + line-height: 1.5; +} +input[type="submit"]{ + /*margin: 0;*/ + margin-right: 30; + text-align: center; +} +input[type="text"]{ + width: 85%; +} \ No newline at end of file diff --git a/assets/themes/default/main.css b/assets/themes/default/main.css new file mode 100644 index 0000000..7903c06 --- /dev/null +++ b/assets/themes/default/main.css @@ -0,0 +1,22 @@ +body { + background-color: #262631; + color: white; +} +a:link { + color: cyan; +} +a:visited{ + color: mediumpurple; +} +a:hover { + color: rebeccapurple; +} +sts-icon.bracket { + color: #4f4f4f; +} +sts-icon.s{ + color: darkolivegreen; +} +sts-icon.t{ + color: saddlebrown; +} \ No newline at end of file diff --git a/data/locale/en_US/strings/aboutpage.ini b/data/locale/en_US/strings/aboutpage.ini new file mode 100644 index 0000000..da485e7 --- /dev/null +++ b/data/locale/en_US/strings/aboutpage.ini @@ -0,0 +1,5 @@ +a = '
%s: %s' +b = 'running v%s' +ca = 'if there are problems with this page or any other page, contact' +cb = 'if there are problems with this page or any other page, contact either' +d = ' %s (email)' \ No newline at end of file diff --git a/data/locale/en_US/strings/main.ini b/data/locale/en_US/strings/main.ini index b6a17a4..a3efa25 100644 --- a/data/locale/en_US/strings/main.ini +++ b/data/locale/en_US/strings/main.ini @@ -1,5 +1,15 @@ -interactions[basic][cancel] = "Cancel" -interactions[basic][no] = "No" -interactions[basic][okay] = "OK" -interactions[basic][yes] = "Yes" - +locale_en_native = "English" +locale_en_this = "English" +region_us_native = "United States" +region_us_this = "United States" +misc_stslogohover = "sts logo" +meta_project_name = "super tiny search" +meta_project_desc = "a super lightweight and privacy-centered search engine!" +interactions_basic_cancel = "Cancel" +interactions_basic_no = "No" +interactions_basic_okay = "OK" +interactions_basic_yes = "Yes" +interactions_basic_search = "Search" +interactions_basic_about = "About" +interactions_adv_aboutx = "About $" +interactions_searcharea_hint = "Search query" diff --git a/data/locale/en_US/strings/search.ini b/data/locale/en_US/strings/search.ini index e57287b..4b001a4 100644 --- a/data/locale/en_US/strings/search.ini +++ b/data/locale/en_US/strings/search.ini @@ -1,3 +1,3 @@ -results[found] = "found $ results" -results[foundonlyone] = "found 1 result" -results[none] = "no results found" +results_found = "found $ results" +results_foundonlyone = "found 1 result" +results_none = "no results found" diff --git a/data/locale/en_US/strings/theme.ini b/data/locale/en_US/strings/theme.ini index 290a39d..126d3bf 100644 --- a/data/locale/en_US/strings/theme.ini +++ b/data/locale/en_US/strings/theme.ini @@ -1 +1 @@ -interactions[choose][tp][acceptnew] = "Accept" \ No newline at end of file +interactions_choose_tp_acceptnew = "Accept" \ No newline at end of file diff --git a/data/misc/icon/html.html b/data/misc/icon/html.html new file mode 100644 index 0000000..d23491d --- /dev/null +++ b/data/misc/icon/html.html @@ -0,0 +1 @@ +[sts] \ No newline at end of file diff --git a/data/misc/icon/text.txt b/data/misc/icon/text.txt new file mode 100644 index 0000000..eb72654 --- /dev/null +++ b/data/misc/icon/text.txt @@ -0,0 +1 @@ +[sts] \ No newline at end of file diff --git a/dynamicGen.php b/dynamicGen.php new file mode 100644 index 0000000..a53b73b --- /dev/null +++ b/dynamicGen.php @@ -0,0 +1,16 @@ +'; + echo ""; + echo ''; + $out = genAbout('en_US') or die('something went wrong! go piss of tyler!'); + echo $out; + echo ''; + die; + } +?> \ No newline at end of file diff --git a/index.php b/index.php index c659aee..0e8fd43 100644 --- a/index.php +++ b/index.php @@ -1,15 +1,43 @@ + - <? + <?php echo $cfg['META']['name']; ?> + + "; + echo ""; + ?> - Hello World

'; ?> - - - + ".file_get_contents("data/misc/icon/html.html")."
"; + ?> +
\n"; + echo ""; + echo "\n"; + echo "
" + ?> + + \ No newline at end of file diff --git a/serve.ini b/serve.ini index 3ac97f4..9e8616f 100644 --- a/serve.ini +++ b/serve.ini @@ -1,22 +1,26 @@ [META] name = "superTinySearch" version = [0, 0, 0] -maintain[][name] = "brendan Berger" -maintain[][email] = "whotookelburg" -svn = "<>" +svn = 'https://basedwa.re/elburg/sts' + +[MAINTAINERS] +vals = 1 + +[MAINTAINERS_0] +name = 'brendan Berger' +email = 'whotookelburg@hotmail.com' [FEATURES] langs[] = "en_US" regions[] = "us" -[FEATURES.APPLETS] +[APPLETS] enabled = false -runtimes[] = "ecmascript" -[FEATURES.UI] +[UI] themes[] = "default" default = "default" +icon = "text" [INDEX] sites[] = "none" - diff --git a/src/pages/aboutPage.php b/src/pages/aboutPage.php new file mode 100644 index 0000000..74030ac --- /dev/null +++ b/src/pages/aboutPage.php @@ -0,0 +1,37 @@ +".file_get_contents(__DIR__."/../../data/misc/icon/html.html").""; + $output=$output.sprintf( + $strings['a'], + $conf['META']['svn'], + $strings['meta_project_name'], + $strings['meta_project_desc'] + ). + '
'. + sprintf( + $strings['b'], + sprintf( + '%d.%d.%d', + $conf['META']['version'][0], + $conf['META']['version'][1], + $conf['META']['version'][2] + ) + ). + '
'. + $strings['ca']. + '
'. + sprintf( + $strings['d'], + $conf['MAINTAINERS_0']['name'], + $conf['MAINTAINERS_0']['email'], + $conf['MAINTAINERS_0']['email'] + ); + + return $output; + } +?> \ No newline at end of file