Skip to content

Commit

Permalink
v2
Browse files Browse the repository at this point in the history
  • Loading branch information
user95401 committed Feb 21, 2024
1 parent cd56759 commit 25aa243
Show file tree
Hide file tree
Showing 25 changed files with 398 additions and 440 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
#ueaa
.vs
.git
build
out
out
17 changes: 0 additions & 17 deletions .vscode/tasks.json

This file was deleted.

39 changes: 16 additions & 23 deletions CMakeLists.txt
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})
3 changes: 2 additions & 1 deletion CMakeSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"cmakeCommandArgs": "",
"buildCommandArgs": "",
"ctestCommandArgs": "",
"inheritEnvironments": [ "msvc_x86" ]
"inheritEnvironments": [ "msvc_x86" ],
"variables": []
}
]
}
Binary file removed ProfileImage.dll
Binary file not shown.
19 changes: 8 additions & 11 deletions README.md
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)
12 changes: 12 additions & 0 deletions about.md
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)
69 changes: 0 additions & 69 deletions geode/CMakeLists.txt

This file was deleted.

Binary file removed geode/Resources/Chilipizdrik.png
Binary file not shown.
12 changes: 0 additions & 12 deletions geode/about.md

This file was deleted.

8 changes: 0 additions & 8 deletions geode/changelog.md

This file was deleted.

28 changes: 0 additions & 28 deletions geode/mod.json

This file was deleted.

Binary file removed geode/release/user95401.ProfileImage.geode
Binary file not shown.
File renamed without changes
Binary file removed minhook.x32.lib
Binary file not shown.
14 changes: 14 additions & 0 deletions mod.json
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>"
}
}
109 changes: 109 additions & 0 deletions server side/index.php
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"]));
}

?>
Loading

0 comments on commit 25aa243

Please sign in to comment.