Discussion on [RELEASE] Rough Homepage Template. (No XML) within the Metin2 PServer Designs, Websites & Scripts forum part of the Metin2 Private Server category.
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.
$results = mssql_query("SELECT * FROM dbo.Accounts WHERE '$usr' LIKE login_name"); $res = mssql_num_rows($results);
if (strlen($usr) > 4 && 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 悪地城
Some people will need it.
thx for the rls.
Wieso schreibst du unter allem und jenem einen sinnlosen Beitrag?
$results = mssql_query("SELECT * FROM dbo.Accounts WHERE '$usr' LIKE login_name");
$res = mssql_num_rows($results);
if (strlen($usr) > 4 && 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:
Wieso schreibst du unter allem und jenem einen sinnlosen Beitrag?
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
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_*
[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).