The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Webpage Generator
Author Message
pinku
Journeyman
*

Posts: 118
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Apr 2013
Reputation: 4



Post: #1
Webpage Generator
Hey all,

I decided to try this guide out:

http://forum.spherecommunity.net/Thread-...-Generator

I did it in a very similar way.

Well, everything goes right, except the numbers. As everyone knows, they are stored in hexadecimals by sphere.

Is there anyway I can use EVAL there or anything to convert back to decimals to show on the HTML page?

I tried EVAL but it didn't go any right.

Thanks!
(This post was last modified: 03-02-2014 10:41 PM by pinku.)
03-02-2014 10:41 PM
Find all posts by this user Like Post Quote this message in a reply
Avatar
Journeyman
*

Posts: 172
Likes Given: 6
Likes Received: 27 in 12 posts
Joined: Apr 2012
Reputation: 5

The North Shield

Post: #2
RE: Webpage Generator
You better use mysql instead. Because HTML generator have you open to vulnerabilities. Then you can show your values with Php, Asp, whatever you like.

Also, in html generator dont take eval of values before showing html page. I mean think like that;

You want to show a value on html web page. So you assign var, for instance, as var.value = 5.

So put it on html page like %eval %var.value%%.

This should work if I dont remember wrongly. I used this 5-6 years ago.
03-03-2014 12:02 AM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
pinku
Journeyman
*

Posts: 118
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Apr 2013
Reputation: 4



Post: #3
RE: Webpage Generator
(03-03-2014 12:02 AM)Avatar Wrote:  You better use mysql instead. Because HTML generator have you open to vulnerabilities. Then you can show your values with Php, Asp, whatever you like.

Also, in html generator dont take eval of values before showing html page. I mean think like that;

You want to show a value on html web page. So you assign var, for instance, as var.value = 5.

So put it on html page like %eval %var.value%%.

This should work if I dont remember wrongly. I used this 5-6 years ago.

Thanks Avatar,
I lack MySQL knowledge, so I would probably be risking my (future) users more. :/
I have seen many shards being MySQL injected, I don't know how that happens, but I'm trying to keep safe my own way. Sad
Would love to use MySQL though.

Back to the subject, I haven't tried a VAR yet, but when I use %UID.MYUIDHERE.TAG% and this tag is a number, it doesn't seem to EVAL correctly.

I have tried:

%EVAL %UID.MYUIDHERE.TAG%% - This will show a zero% IIRC.

%EVAL UID.MYUIDHERE.TAG% - This will EVAL the UID number.

%EVAL %UID.MYUIDHERE.TAG% - This will show a zero only. I think it EVALs nothing.

When the tag is a player name, it works smooth, as I explained on the first post.

I haven't tried with a VAR, but I would love to see it working with the UID.

Any thoughts?

Thanks everyone!
03-03-2014 02:38 PM
Find all posts by this user Like Post Quote this message in a reply
Staff_Stanic
Journeyman
*

Posts: 96
Likes Given: 25
Likes Received: 14 in 8 posts
Joined: Nov 2012
Reputation: 1

Dimension Shard

Post: #4
RE: Webpage Generator
Try this:
Code:
%dUID.MYUIDHERE.TAG% //note the 'd' before UID[...]
(This post was last modified: 03-12-2014 01:47 PM by Staff_Stanic.)
03-12-2014 01:46 PM
Visit this user's website Find all posts by this user Like Post Quote this message in a reply
pinku
Journeyman
*

Posts: 118
Likes Given: 4
Likes Received: 2 in 2 posts
Joined: Apr 2013
Reputation: 4



Post: #5
RE: Webpage Generator
Thanks, it works!
03-12-2014 08:09 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 2 Guest(s)