-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
398 additions
and
440 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,2 @@ | ||
#ueaa | ||
.vs | ||
.git | ||
build | ||
out | ||
out |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,22 @@ | ||
cmake_minimum_required(VERSION 3.10.0) | ||
cmake_minimum_required(VERSION 3.21) | ||
set(CMAKE_CXX_STANDARD 20) | ||
set(CMAKE_CXX_STANDARD_REQUIRED ON) | ||
set(CMAKE_CXX_EXTENSIONS OFF) | ||
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /MANIFEST:NO") | ||
cmake_policy(SET CMP0057 NEW) | ||
set(CMAKE_OSX_ARCHITECTURES "x86_64") | ||
set(CMAKE_CXX_VISIBILITY_PRESET hidden) | ||
|
||
project ("ProfileImage") | ||
set(developer "user95401") | ||
set(version "v1.1.0") | ||
set(description "ProfileImage, feat. [GTPS](https://discord.gg/mezwaFZ9Hk)") | ||
set(repository "https://github.com/user95401/gdModTemplate") | ||
set(issues_url "https://discord.gg/89VGJH6QQg") | ||
set(issues_info "U can write about it on <cb>user666's discord...</c>") | ||
set(LIBRARY_OUTPUT_PATH "${CMAKE_CURRENT_LIST_DIR}") # dll output | ||
set(GEODE_MOD_OUTPUT_PATH "D:\\Games\\user666\\Geometry.Dash.v07.24.2021\\geode\\mods") # geode mod output | ||
project(ProfileImage VERSION 1.0.0) | ||
|
||
#curly-eureka | ||
include("C:\\Users\\Lenovo\\source\\curly-eureka\\CURLY-EUREKA-INCL.cmake") | ||
|
||
#mod | ||
file(GLOB_RECURSE src | ||
src/* | ||
src/Layers/* | ||
add_library(${PROJECT_NAME} SHARED | ||
src/main.cpp | ||
# Add your cpp files here | ||
) | ||
add_library(${PROJECT_NAME} SHARED ${src} ${curly_eureka_src}) | ||
|
||
#geode-makeup | ||
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/geode geode-build) | ||
if (NOT DEFINED ENV{GEODE_SDK}) | ||
message(FATAL_ERROR "Unable to find Geode SDK! Please define GEODE_SDK environment variable to point to Geode") | ||
else() | ||
message(STATUS "Found Geode: $ENV{GEODE_SDK}") | ||
endif() | ||
|
||
add_subdirectory($ENV{GEODE_SDK} ${CMAKE_CURRENT_BINARY_DIR}/geode) | ||
|
||
setup_geode_mod(${PROJECT_NAME}) |
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
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
# ProfileImage | ||
# Profile Image | ||
|
||
ProfileImage, feat. [GTPS](https://discord.gg/mezwaFZ9Hk) | ||
u can set ur image on | ||
|
||
Logo by zemonkamin | ||
- profile btn | ||
- profile page | ||
|
||
![image](https://github.com/user95401/ProfileImage/assets/90561697/d804aead-05af-420f-90b8-41fd313cc101) | ||
![image](https://github.com/user95401/ProfileImage/assets/90561697/f334555c-1f21-469c-94c3-baac49e95dec) | ||
![image](https://github.com/user95401/ProfileImage/assets/90561697/02c3c67b-f774-48d7-ad95-7fe37cecdf97) | ||
### and | ||
- others who installed that will see ur profile and stuff yea | ||
- may support gdps unno | ||
|
||
|
||
## Install [for geode](https://github.com/user95401/ProfileImage/blob/main/geode/release/user95401.ProfileImage.geode) | ||
put .geode file to GeometryDash/geode/mods | ||
## Install [dll](https://github.com/user95401/ProfileImage/blob/main/ProfileImage.dll) | ||
just load it with any modloader | ||
Logo by [zemonkamin](https://github.com/zemonkamin) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# Profile Image | ||
|
||
u can set ur image on | ||
|
||
- profile btn | ||
- profile page | ||
|
||
### and | ||
- others who installed that will see ur profile and stuff yea | ||
- may support gdps unno | ||
|
||
Logo by [zemonkamin](https://github.com/zemonkamin) |
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
File renamed without changes
Binary file not shown.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"geode": "2.0.0-beta.20", | ||
"gd": "2.204", | ||
"version": "v2.0.0", | ||
"id": "user95401.profile_image", | ||
"name": "Profile Image", | ||
"developer": "user95401", | ||
"description": "ur avatar thingy", | ||
"repository": "https://github.com/user95401/ProfileImage", | ||
"issues": { | ||
"url": "https://discord.gg/89VGJH6QQg", | ||
"info": "U can write about it on <cb>user666's discord...</c>" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
<?php | ||
//preload page stuff | ||
|
||
mkdir('users', 0700, true);//make users dir (700 its owner only prems) | ||
|
||
if(isset($_GET["id"]) and isset($_GET["name"]) and isset($_GET["linker"])) { | ||
$file = "./users/" . $_GET["id"] . "." . $_GET["name"]. ".php";// ./users/228.name.php | ||
include $file;//$url var in it | ||
exit(filter_var($url, FILTER_VALIDATE_URL) ? $url : "0"); | ||
} | ||
|
||
?> | ||
|
||
<style> | ||
html { | ||
overflow-wrap: anywhere; | ||
zoom: 1.2; | ||
width: 100%; | ||
height: 100%; | ||
overflow-x: scroll; | ||
color-scheme: dark; | ||
font-family: monospace; | ||
background-color: #232428; | ||
color: azure; | ||
} | ||
button:not([class]), input:not([class]), a:not([class]) { | ||
border-radius: 0; | ||
margin: 0.6rem 0.0rem; | ||
padding: 0.3rem; | ||
width: 100%; | ||
zoom: 1.2; | ||
} | ||
</style> | ||
|
||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
|
||
<?php | ||
|
||
function html_putPassword($msg){ | ||
return (" | ||
<h1>Hello! ${_GET['name']}?</h1> | ||
Create a password to take over this user register point (${_GET['id']}.${_GET['name']}) for your own use. | ||
<br>Or just login if already registered. | ||
<br>$msg | ||
<form method=\"post\"> | ||
<input value=\"${_POST['Password']}\" placeholder=\"Password\" type=\"Password\" name=\"Password\" required> | ||
<input type=\"submit\"> | ||
"); | ||
} | ||
function html_saveImgLink($msg){ | ||
return (" | ||
<h1>Hello, ${_GET['name']}! again.. huh</h1> | ||
(${_GET['id']}.${_GET['name']}) | ||
<br>Now u can set link up to ur image: | ||
<br>$msg | ||
<form method=\"post\"> | ||
<input value=\"${_POST['Password']}\" type=\"hidden\" name=\"Password\"> | ||
<input value=\"${_POST['url']}\" placeholder=\"Image url\" type=\"url\" name=\"url\" id=\"imgInp\" required> | ||
<div style=\" | ||
display: flex; | ||
align-items: flex-start; | ||
flex-direction: row; | ||
justify-content: space-between; | ||
\"> | ||
<img name=\"url\" id=\"blah\" src=\"${_POST['url']}\" alt=\"Link is bad seems\" style=\"max-height: 22vh;\"/> | ||
<input type=\"submit\" style=\"width: 10rem;margin: 0px;\"> | ||
</div> | ||
<script>imgInp.onchange = evt => {blah.src = imgInp.value}</script> | ||
"); | ||
} | ||
function userEntryContent($pass, $url){//php file gen | ||
return | ||
(" | ||
<?php | ||
\$usr_pass = (\"".escapeshellcmd(password_hash($_POST["Password"], PASSWORD_DEFAULT))."\"); | ||
\$url = (\"".escapeshellcmd("$url")."\"); | ||
"); | ||
} | ||
|
||
if(isset($_GET["id"]) and isset($_GET["name"])) { | ||
//no pass = put it pls | ||
if(!isset($_POST["Password"])) exit(html_putPassword("")); | ||
//userEntry | ||
$file = "./users/" . $_GET["id"] . "." . $_GET["name"]. ".php";// ./users/228.name.php | ||
$usr_pass_valid = false; | ||
if(file_exists($file)) {//file_exists vrfy pass | ||
include $file; | ||
echo"User exists, verify pass...";//(${_POST['Password']}, $usr_pass)"; | ||
$usr_pass_valid = password_verify($_POST["Password"], $usr_pass); | ||
echo" - ".($usr_pass_valid ? "IS VALID" : "INVALID"); | ||
} | ||
else {//!file_exists save pass | ||
echo"Password saved."; | ||
file_put_contents($file, userEntryContent($_POST["Password"], "0")); | ||
$usr_pass_valid = true; | ||
} | ||
//print pass form if $usr_pass_valid isnt true | ||
if(!$usr_pass_valid) exit(html_putPassword("<b style=\"color: coral;\">Invalid password!</b>")); | ||
$_POST["url"] = strtok( | ||
(isset($_POST["url"]) ? $_POST["url"] : $url),//a ? a : b | ||
'\?'//str to key^ | ||
); | ||
//print image set form | ||
echo html_saveImgLink(""); | ||
//update userEntry | ||
file_put_contents($file, userEntryContent($_POST["Password"], $_POST["url"])); | ||
} | ||
|
||
?> |
Oops, something went wrong.