Hi everyone please help us creating a wapmaster services like wapshared.com i'm just a newbie
(help)How to Create my Own Wapmaster Services?
Collapse
X
-
Thats wery easy. . .
Use 2 get's on top your file. . . Like:
$name = $_GET["name"];
$url = $_GET["url"];
And on all your links add &name=$name&url=$url
End wapmaster service maked. . . :D
Do you understand. .
But first find scripts for making to service. . . Like gumslone chat. . . ;)
Comment
-
Than u should read this first: LINKOriginally posted by jet05 View PostHi everyone please help us creating a wapmaster services like wapshared.com i'm just a newbie
Nope, its not easy.Originally posted by cwikyz View PostThats wery easy. . .
Use 2 get's on top your file. . . Like:
$name = $_GET["name"];
$url = $_GET["url"];
And on all your links add &name=$name&url=$url
End wapmaster service maked. . . :D
Do you understand. .
But first find scripts for making to service. . . Like gumslone chat. . . ;)<!DOCTYPE html PUBLIC "-//WAPFORUM.RS
Comment
-
Kidding bro? He said he is a newbie.Originally posted by soul_reaper View Postis easy if you know what you doing... if you try different methods until you get wat you want is not easy...nobody was born learned ,try yourself ,no one will give you ready-made...only if you pay for his work
Originally posted by jet05 View PostHi everyone please help us creating a wapmaster services like wapshared.com i'm just a newbie
And if to you is all as a "123" and all so logical, so far you could help him and write snipet properly, instead of stupid interruptions and spamming topic.Originally posted by Ajmalrasi View Postuse some logic and create.
Make sure you next time your post at least looks like this:
And this is just registration from the head, instead of "two GET"... Where is the rest of script...PHP Code:<?php
if (isset($_POST['submit'])) {
if (isset($_POST['name']) && isset($_POST['linkname']) && isset($_POST['link'])) {
$error = false;
if ($_POST['name'] == '') {
$error .= 'Name is empty<br/>';
}
if ($_POST['linkname'] == '') {
$error .= 'Linkname is empty<br/>';
}
if ($_POST['link'] == '') {
$error .= 'Link is empty<br/>';
}
if (!preg_match('/^http:\/\//', $_POST['link'])) {
$_POST['link'] = 'http://'.$_POST['link'];
}
$datafile = 'data/users.dat';
if (is_readable($datafile)) {
$handle = @fopen($datafile, 'r');
$output = fread($handle, filesize($datafile));
$data = explode('-', $output);
if ($data[0] == $_POST['name']) {
$error .= 'Name is token<br/>';
}
if ($data[1] == $_POST['linkname']) {
$error .= 'Linkname is token<br/>';
}
if ($data[2] == $_POST['link']) {
$error .= 'Link is token<br/>';
}
fclose($handle);
}
if (empty($error)) {
$name = htmlentities($_POST['name'], ENT_QUOTES, 'UTF-8');
$linkname = htmlentities($_POST['linkname'], ENT_QUOTES, 'UTF-8');
$link = htmlentities($_POST['link'], ENT_QUOTES, 'UTF-8');
$writedata = "$name-$linkname-$link\n";
if (is_writeable($datafile)) {
$handle = @fopen($datafile, 'a');
fwrite($handle, $writedata);
}
fclose($handle);
} else {
echo $error;
}
unset($error);
}
header('Location: /');
exit;
} else {
echo '
Registration<br/>
<form method="post" action="./index.php" enctype="multipart/form-data">
<p>
Name: <br/>
<input type="text" name="name" maxlength="50" value=""/><br/>
Linkname: <br/>
<input type="text" name="linkname" maxlength="50" value=""/><br/>
Link: <br/>
<input type="text" name="link" maxlength="50" value=""/><br/>
<input type="submit" name="submit" value="Register"/>
</p>
</form>';
}
?>
Im finished discussion what is simply to who.
Jet05 if u have any question u can ask here.Last edited by arnage; 08.08.11, 17:35.<!DOCTYPE html PUBLIC "-//WAPFORUM.RS
Comment
-
Originally posted by Ajmalrasi View Postuse this on next page
Name : <?php echo $name;?>
Url : <?php echo $linkname; ?>
Link : <?php echo $link; ?>
Nope, some other data needs to be displayed at this point, that information is useless for displaying as the user is just entered his name and site.
And we come to a paradox situation where someone who says that its "easy as 123" actualy shows that he doesn't have a clue what is needed to do next even after he got part of code done.
Also, $linkname var is not field name "Url" as URL stands for "Uniform Resource Locator" aka LINK, wich is the field below.
Var $linkname is field Linkname and $link is... guess what.<!DOCTYPE html PUBLIC "-//WAPFORUM.RS
Comment
Comment