Вход Регистрация
Файл: Source/pages/sendpm.php
Строк: 111
<?php
/*
 * Script name: Points4Prize
 * Author: Soft Projects
 * Date created: 15/07/2015
 */

require_once 'inc/header.php';
?>
<body class="no-slider">
    <!-- <body class="has-top-menu"> -->
    <!-- BEGIN #slider-imgs -->
    <div id="slider-imgs">
        <div class="featured-img-box">
            <div id="featured-img-1" class="featured-img"></div>
            <div id="featured-img-2" class="featured-img invisible"></div>
            <div id="featured-img-3" class="featured-img invisible"></div>
            <div id="featured-img-4" class="featured-img invisible"></div>
        </div>
        <!-- END #slider-imgs -->
    </div>

    <!-- BEGIN #top-layer -->
    <div id="top-layer">
        <div id="header-top">
            <?php
            
require_once 'inc/header_top.php';
            
?>
        </div>
        <section id="content">
            <header id="header">
                <div id="menu-bottom">

                    <?php
                    
require_once 'inc/menu_bottom.php';
                    
?>

                </div>

                <div class="wrapper">
                    <div class="header-breadcrumbs">
 <?php                    require_once 'inc/stats.php';                    ?>
                        <ul>
                            <li><a href="index.php">Home</a></li>
                            <li> Send a new message</li>
                        </ul>
                    </div>
                </div>

            </header>
            <div id="main-box" class="full-width">
                <div id="main">
                    <div class="signup-panel">
                        <div class="">
                            <h2><span> Send a new message </span></h2>
                            <div class="content-padding">

                            <div class="messages-control">
                                <a href="/pm" class="newdefbutton margin-right">
                                <i class="fa fa-comments"></i> View all message</a>
                            </div>
          <?php
            
if (!isset($_SESSION['logged_in'])) {
                
$_SESSION['location'] = "/sendpm";
                
header('Location: /login');
                exit();
            } else {
                if (isset(
$_SESSION['user'], $_SESSION['pass'])) {
                    
$user str_replace(" """$_SESSION['user']);
                    
$user sprintf("%s"mysql_real_escape_string($user));
                } else {
                    
$user str_replace(" """$_COOKIE['user']);
                    
$user sprintf("%s"mysql_real_escape_string($user));
                }

                if (isset(
$_POST["fromw"])) {
                
                    
sendpm();
                }
            }
            
?>
                        </div>
                        <div class="conversation-container">

                
                        
                            <form action="/sendpm" method="post">
                             <input type="hidden" name="fromw" value="<?php echo $user?>">
                            
                                <div class="conversation-start-new-block">
                                    <h3>To</h3>
                                    <div class="conv-recipent">
                                        
                                        <div class="select-replace">
                                            
                                            <input 
                                            class="select-main-input" placeholder="Username ..."
                                                name="forw" required="required" maxlength="20"  type="text"
                                            value="<?php if(!empty($_POST['forw'])){echo $_POST['forw'];} 
                        if(!empty(
$_POST['rforw'])){echo $_POST['rforw'];} ?>"
                                            >
                                            
                                        </div>
                                        
                                    </div>
                                
                                    <h3>Title</h3>
                                    <div class="conv-recipent">
                                        
                                        <div class="select-replace">
                                            
                                            <input 
                                            class="select-main-input" placeholder="Enter title ..."
                                            
type="text" name="title" required="required" maxlength="250" 
                        value="<?php if(!empty($_POST['title'])){echo $_POST['title'];} if(!empty($_POST['rtitle'])){echo $_POST['rtitle'];} ?>"
                                            >
                                            
                                        </div>
                                        
                                    </div>
                                    <h3>Content</h3> 
                                </div>

                                <div class="conv-submit start-new">
                                    <div class="conv-textarea" style="margin-bottom:0px;">
                                        
                                        
                                        <textarea name="message" class="auto-height" required="required"><?php if(!empty($_POST['message'])){echo $_POST['message'];} 
                        if(!empty(
$_POST['rmessage'])){echo $_POST['rmessage'];} ?></textarea>
                        
                        
                                        
                                    </div>
                                </div>
                                
                                
                                <div class="conversation-start-new-block" style="margin-top:0px;">
                                    <h3>Code:</h3>
                                    <div class="conv-recipent">
                                        
                                        <div class="select-replace">
                                                <input class="form-control" required="required" style="width:87%;" 
                                                type="text" style="width: 111px; height: 20px;" name="scode"></input>
<img style="" alt="Code" src="inc/verify.php"></img>
                                        </div>
                                        
                                    </div>
                                
                                </div> 
                                
                                <div class="conv-submit start-new">
                                    <div class="conv-textarea" style="border:0px">
                                        
                                        <div class="conv-bottom">
                                            <input value="Sent" class="send-conv-button" type="submit">
                                        </div>
                                    </div>
                                </div>
                                
                            </form>

                        <!-- END .conversation-container -->
                        </div>
                        </div>
                        <div class="clear-float"></div>
                    </div>
                </div>
                <div class="clear-float"></div>
            </div>
    </div>
</div>

<?php
require_once 'inc/footer.php';
?>
Онлайн: 4
Реклама