Register for your free account! | Forgot your password?

You last visited: Today at 16:57

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[RELEASE] Rough Homepage Template. (No XML)

Discussion on [RELEASE] Rough Homepage Template. (No XML) within the Metin2 PServer Designs, Websites & Scripts forum part of the Metin2 Private Server category.

Reply
 
Old   #1

 
elite*gold: 20
Join Date: Mar 2009
Posts: 653
Received Thanks: 204
[RELEASE] Rough Homepage Template. (No XML)

Hey, i've been bored so i made a little template for anyone who wants to use it.

It's not special and i've kept the design very simple so you can adjust it to your theme.

I also tried to keep it modular, so if you add a new page you can use php to include the modules.

e.g:
PHP Code:
<?php include "data.php" ?>
currently available modules:
PHP Code:
<?php include "head.php" //links
include "nav.php"//navigation
include "jumbotron/jumbotron.php"//...jumbotron.. obviously
include "status.php"// insert your own statuscheck script if needed
include "art.php"//posts
include "footer.php" //footer 
include "regi.php" //register
?>
There currently is a link to a registration page where i used . You may adjust it to your needs or use another code. Also: i recommend to type the credentials into a seperate ".ini" file and include them from there. Its safer.


If you want your own Disqus Channel then follow this and exchange the scripts.



Pics:


Attached Files
File Type: rar Nexi's Template 1.0.rar (20.6 KB, 20 views)
.Nexitis is offline  
Thanks
1 User
Old 02/03/2017, 01:48   #2
 
elite*gold: 0
The Black Market: 105/0/0
Join Date: May 2016
Posts: 8,681
Received Thanks: 1,634
Some people will need it.

thx for the rls.
悪地城 is offline  
Old 02/03/2017, 12:14   #3
 
elite*gold: 0
Join Date: Apr 2015
Posts: 433
Received Thanks: 361
Nice geste.

Two words to your code ...
PHP Code:
<?php

$usr   
$_POST['username'];
$pass  $_POST['password'];
$endPw $md5_key $pass;
$md5   md5($endPw);

$results mssql_query("SELECT * FROM dbo.Accounts WHERE '$usr' LIKE login_name");
$res     mssql_num_rows($results);

if (
strlen($usr) > && strlen($pass) > 4) {
    if (
$res 0) {
        echo 
"This account already exists.";
    } else {
        
mssql_query("INSERT INTO dbo.Accounts(login_name,password,block,withdraw_remain_time,age,auth_ok,pcbang,last_login_server_idx,event_code,result) VALUES('$usr','$md5',0,0,18,1,1,1,0,1)");
        echo 
"Registration Success !";
    }
} else {
    echo 
"Your Username or Password is too small.";
}

?>
Instead of using mssql use sqlsrv's prepare/execute functions.

PHP Code:
sqlsrv_prepare();
sqlsrv_execute(); // etc. pp. 
And do not use SELECT * ... or LIKE ... in this case. Select what you're looking for, use LIMIT xy.

Code:
SELECT myRow1, myRow2, myRow3 FROM myTable WHERE login_name = ? LIMIT 1;
And your if-else tree makes no sense.

And ...:

PHP Code:
s.setAttribute('data-timestamp', new Date()); 
To a dataset you've access with the dataset-object

PHP Code:
s.dataset.timestamp = (new Date()).toString(); 
I know a lot of this is written by Strean and that's maybe not the right section, but you're doing it public again. So you've to adjust his code at least.

edit:

Quote:
Originally Posted by 悪地城 View Post
Some people will need it.

thx for the rls.
Wieso schreibst du unter allem und jenem einen sinnlosen Beitrag?
#Metho is offline  
Thanks
2 Users
Old 02/03/2017, 16:35   #4

 
elite*gold: 380
Join Date: Jan 2012
Posts: 2,088
Received Thanks: 1,472
The basic website looks very nice and clean.
I would prefere it to use it for other projects.

Gute Verbesserungsvorschläge, @.
Wird ihm sicher helfen.
MaxChri is offline  
Thanks
1 User
Old 02/04/2017, 00:08   #5

 
elite*gold: 20
Join Date: Mar 2009
Posts: 653
Received Thanks: 204
Quote:
Originally Posted by MaxChri View Post
The basic website looks very nice and clean.
I would prefere it to use it for other projects.

Gute Verbesserungsvorschläge, @.
Wird ihm sicher helfen.
Danke

Quote:
Originally Posted by #Metho View Post
Nice geste.
Nur das Regiscript ist von Strean da ich noch keine Erfahrung darin gesammelt habe. Danke für deine Tipps! Ich werde sie beachten falls ich mich an mein erstes Script ranwage.

Die Homepage war erst für Rappelz gedacht aber da ich in letzter Zeit auch in Metin2 unterwegs bin dachte ich es könnte hier auch gebraucht werden
.Nexitis is offline  
Thanks
1 User
Old 02/05/2017, 16:37   #6


 
elite*gold: 23
Join Date: Nov 2013
Posts: 885
Received Thanks: 748
Quote:
Originally Posted by #Metho View Post
Nice geste.

Two words to your code ...
PHP Code:
<?php

$usr   
$_POST['username'];
$pass  $_POST['password'];
$endPw $md5_key $pass;
$md5   md5($endPw);

$results mssql_query("SELECT * FROM dbo.Accounts WHERE '$usr' LIKE login_name");
$res     mssql_num_rows($results);

if (
strlen($usr) > && strlen($pass) > 4) {
    if (
$res 0) {
        echo 
"This account already exists.";
    } else {
        
mssql_query("INSERT INTO dbo.Accounts(login_name,password,block,withdraw_remain_time,age,auth_ok,pcbang,last_login_server_idx,event_code,result) VALUES('$usr','$md5',0,0,18,1,1,1,0,1)");
        echo 
"Registration Success !";
    }
} else {
    echo 
"Your Username or Password is too small.";
}

?>
Instead of using mssql use sqlsrv's prepare/execute functions.

PHP Code:
sqlsrv_prepare();
sqlsrv_execute(); // etc. pp. 
Or use PDO, that´s what I prefer:
kangar00 is offline  
Thanks
1 User
Old 02/05/2017, 18:47   #7
 
elite*gold: 0
Join Date: Apr 2015
Posts: 433
Received Thanks: 361
Quote:
Originally Posted by ?#`/ View Post
Or use PDO, that´s what I prefer:
Ja PDO ist ab den neuen Änderungen hinsichtlich fast jeder Datenbank sogar schneller und hat das beste Klassenmodell.

Kommt halt ganz auf die native prepared statements / emulated prepared statements an, aber generell ist auch PDO OOP OOD für Änfanger leichter als diese prodezuralen Lösungen. Ich wäre damals echt froh gewesen, hätte mir jemand den Tipp genannt, ... dann hätte damit angefangen statt mit mysql_*
#Metho is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[RELEASE] Rough Homepage Template. (No XML)
01/25/2017 - Rappelz Private Server - 0 Replies
Hey, i've been bored so i made a little template for anyone who wants to use it. It's not special and i've kept the design very simple so you can adjust it to your theme. I also tried to keep it modular, so if you add a new page you can use php to include the modules. e.g: <?php include "data.php" ?> currently available modules:
[RELEASE]Homepage Template (.psd)
09/29/2013 - Metin2 PServer Guides & Strategies - 66 Replies
Jaja der NyBu muss euch ma wieder seinen kappes andrehen :D Bin i wie nicht so überzeugt von dem Design, darum verkaufe ichs auch nicht... aber vll gefällts ja einigen von euch :) Screen (scheiß Quali): http://flying-men.de/img/vollansicht/dschungel.pn g Die psd ist leider etwas unordentlich... i wie hat mein pc dat alles
[RELEASE]Homepage Template.PSD
05/22/2013 - Metin2 PServer Guides & Strategies - 16 Replies
Hallöööchen Community, Ich hatte gerade bzw vor ner weile extreeeemste Langeweile und dachte mir so ... "Hmm was kannst du jetzt nur dagegen tun.." Ja und wie immer hab ich mich an Photoshop vergnügt und versucht. Ich finde mir ist es Diesmal richtig gut gelungen und zudem muss ich sagen ich finde das Template ohne Background 10.000 schöner als wie mit Background. Als Vorlage habe ich das Clientdesign von Sora benutzt das für DoofMT2 war oder sogar ist keine Ahnung. Mir hat es nur gut...
[Release]Homepage Template by me
08/05/2011 - Flyff PServer Guides & Releases - 6 Replies
Hallo elitepvpers so nun release ich mal nur die homepage und dan wer sagt die ist gestohlen... ich habe auch schon daniii benacrichtigt das er den thread löschen kann und oder die links also is es mir egal also hier die homepage viel spaß mit ihr... wenn ihr sie braucht MEGAUPLOAD - The leading online storage and file delivery service http://imageshack.us/photo/my-images...nddddannt. png/ ImageShack® - Online Photo and Video Hosting
[Release] Homepage-Template
04/16/2010 - Flyff PServer Guides & Releases - 2 Replies
Hallo liebe E*PvPer Das Projekt Furios Flyff geht zuende... Wir möchten uns gleichzeitig bei alle treuen User und Mithelfern bedanken. Nun wird es Zeit ein paar der Sachen die wir uns gemeinsam erarbeitet haben herauszugeben unter anderem das Homepage Template. Das Copyright lag bis ebend bei Mir bzw Furios Flyff (H4x0r3d und ich).



All times are GMT +2. The time now is 16:57.


Powered by vBulletin®
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

BTC: 33E6kMtxYa7dApCFzrS3Jb7U3NrVvo8nsK
ETH: 0xc6ec801B7563A4376751F33b0573308aDa611E05

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2021 elitepvpers All Rights Reserved.