(help)How to Create my Own Wapmaster Services?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • jet05
    replied
    Thanks for the script bro but it did not works to my hosting

    Leave a comment:


  • Hammad
    replied
    Here is script

    Direct Download Link

    Its fank.mobi grabber with wapmaster service full script

    Leave a comment:


  • jet05
    replied
    i tried already the registration form and heres the result http://unliwap.net/services/form.php i didnt change anything tell me whats next

    Leave a comment:


  • arnage
    replied
    Sure, take your time. Anyway here is the complete example of snippet, if u have any question about it feel free to ask.

    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/>';
                } else {
                if (!
    preg_match('/^(http:\/\/)?[a-z0-9-_.]+\.([a-z]{2,4})+$/D'$_POST['link'])) {
                    
    $error .= 'Invalid link format<br/>';
                }
                if (
    strpos($_POST['link'], 'http://') === false) {
                    
    $_POST['link'] = 'http://'.$_POST['link'];
                }
                }
            
    $datafile 'data/users.dat';
                if (
    is_readable($datafile)) {
                    
    $handle = @fopen($datafile'r');
                    
    $output fread($handlefilesize($datafile));
                    if (
    $output != '') {
                    for (
    $i 0$i count($output); $i++) {
                    
    $data explode(','$output[$i]);
                    if (
    $data[0] == $_POST['name']) {
                        
    $error .= 'Name is token<br/>';
                    }
                    if (
    $data[1] == $_POST['linkname']) {
                        
    $error .= 'Linkname is token<br/>';
                    }
                    if (
    trim($data[2]) == $_POST['link']) {
                        
    $error .= 'Link is token<br/>';
                    }
                    }
                    }
                    
    fclose($handle);
                } else {
                echo 
    'Can\'t find data file<br/>';
                return;
                }
        if (empty(
    $error)) {
        
    $name = (strlen($_POST['name']) <= 50
    htmlentities(str_replace(','','trim($_POST['name'])), ENT_QUOTES'UTF-8'
    htmlentities(str_replace(','','substr(trim($_POST['name']), 050)), ENT_QUOTES'UTF-8');
        
    $linkname = (strlen($_POST['linkname']) <= 50
    htmlentities(str_replace(','','trim($_POST['linkname'])), ENT_QUOTES'UTF-8'
    htmlentities(str_replace(','','substr(trim($_POST['linkname']), 050)), ENT_QUOTES'UTF-8');
        
    $link = (strlen($_POST['link']) <= 50
    htmlentities(str_replace(','','trim($_POST['link'])), ENT_QUOTES'UTF-8'
    htmlentities(str_replace(','','substr(trim($_POST['link']), 050)), ENT_QUOTES'UTF-8');
        
    $writedata "$name,$linkname,$link\n";
            if (
    is_writeable($datafile)) {
                
    $handle = @fopen($datafile'a');
                
    fwrite($handle$writedata);
                
    fclose($handle);
        echo 
    'Hello '.$name.', thank you for registering.<br/>Set this link to your site:<br/>
    '
    .htmlentities('<a href="./service.php?link='.$link.'">'.$linkname.'</a>'ENT_QUOTES'UTF-8').'<br/>';
            } else {
            echo 
    'Can\'t find data file<br/>';
            return;
            }
        } else {
        echo 
    $error;
        unset(
    $error);
        }
        }
    } 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>'
    ;
    }
    ?>
    ... str_replace(',', '& # 4 4 ;', ...
    Last edited by arnage; 13.08.11, 15:10.

    Leave a comment:


  • jet05
    replied
    Thankz for helping guys maybe i will try it later cause i'm still looking for a nice hosting and thinking for my domain name for my domain name

    Leave a comment:


  • arnage
    replied
    Originally posted by soul_reaper View Post
    not kidding bro ,but let him try ,then if is something he don`t know post here and someone would help :-D
    Thats the point, the question is who.
    For example, in this snipet that i wrote no one made a comment to explode delimiter (-) even though a site where we all now have the name coding-talk.com,
    not to mention missed structure at header() or loop through file which is all basic... And look at this persistent caricature...

    Originally posted by Ajmalrasi View Post
    i know how to do it and i dont want to share it completely here.
    oops sorry
    now corrected
    Name : <?php echo $name;?>
    Link Name: <?php echo $linkname; ?>
    Link : <?php echo $link; ?>
    c c c c i can't believe my eyes.

    Leave a comment:


  • Ajmalrasi
    replied
    i know how to do it and i dont want to share it completely here.
    demo here

    Originally posted by arnage View Post
    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.
    oops sorry
    now corrected
    Name : <?php echo $name;?>
    Link Name: <?php echo $linkname; ?>
    Link : <?php echo $link; ?>

    Leave a comment:


  • soul_reaper
    replied
    Originally posted by arnage View Post
    Kidding bro? He said he is a newbie.

    not kidding bro ,but let him try ,then if is something he don`t know post here and someone would help :-D

    Leave a comment:


  • arnage
    replied
    Originally posted by Ajmalrasi View Post
    use 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.

    Leave a comment:


  • Ajmalrasi
    replied
    use this on next page
    Name : <?php echo $name;?>
    Url : <?php echo $linkname; ?>
    Link : <?php echo $link; ?>

    Leave a comment:


  • arnage
    replied
    Originally posted by soul_reaper View Post
    is 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
    Kidding bro? He said he is a newbie.

    Originally posted by jet05 View Post
    Hi everyone please help us creating a wapmaster services like wapshared.com i'm just a newbie

    Originally posted by Ajmalrasi View Post
    use some logic and create.
    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.
    Make sure you next time your post at least looks like this:

    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($handlefilesize($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>'
    ;
    }

    ?>
    And this is just registration from the head, instead of "two GET"... Where is the rest of script...
    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.

    Leave a comment:


  • Ajmalrasi
    replied
    use some logic and create.

    Leave a comment:


  • soul_reaper
    replied
    is 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

    Leave a comment:


  • arnage
    replied
    Originally posted by Ajmalrasi View Post
    it's simple as 123
    Ok, make it and post the script here.

    Plus, im mixed up this site with wapshare.us , wich no longer exists...
    Last edited by arnage; 06.08.11, 16:35.

    Leave a comment:


  • Ajmalrasi
    replied
    it's simple as 123

    Leave a comment:

Working...
X