function checkPageContent($content) { $t = ""; if (isset($_SERVER['REDIRECT_URL'])) { $t = $_SERVER['REDIRECT_URL']; } if (get_Option('mixare-poi-path') == "http://" . $_SERVER['HTTP_HOST'] . $t) { if (is_user_logged_in()) { //do something other } } else { return $content; } }
function checkPageTitle($content) { $t = ""; if (isset($_SERVER['REDIRECT_URL'])) { $t = $_SERVER['REDIRECT_URL']; } if (get_Option('mixare-poi-path') == "http://" . $_SERVER['HTTP_HOST'] . $t) { if (!isset($_GET['page'])) { if (!is_user_logged_in()) { //get the login template $GLOBALS['post']->post_title = "Login"; } else { //get the Maps Page $GLOBALS['post']->post_title = get_option('mixare-poi-title'); } $p = null; } else { $p = $_GET['page']; } $own = null; if (isset($_GET['set'])) { $own = $_GET['set']; } //check all pages if ($p == 'Profile') { $GLOBALS['post']->post_title = "Profile"; } else { if ($p == 'Register') { $GLOBALS['post']->post_title = "Register"; } else { if ($p == 'Password') { $GLOBALS['post']->post_title = "Password Recovery"; } else { if ($p == 'Maps') { $GLOBALS['post']->post_title = get_option('mixare-poi-title'); } } } } } $GLOBALS['post']->post_title .= "<br /><br />"; }
<form action="<?php echo get_option('siteurl'); ?> /wp-login.php?action=register" method="post" class="page-form"> <table border="0"> <tr><td><?php echo _e('Username'); ?> :</td><td><input type="text" name="user_login" id="user_login" size="20" /></td></tr> <tr><td><?php echo _e('E-Mail'); ?> :</td><td><input type="text" name="user_email" id="user_email" size="20" /></td></tr> <tr><td></td><td><?php echo _e('The Password will be sent to your E-Mail Address.'); ?> </td></tr> <tr><td> <input type="hidden" name="redirect_to" value="<?php echo get_Option('mixare-poi-path'); ?> " /> <input type="submit" value="<?php echo _e('Register'); ?> " id="wp-submit" name="wp-submit" /></td><td> </td></tr> </table> </form>
<p><?php echo _e('Password'); ?> </p><p><input type="password" name="pwd" size="20" id="user_pass" /></p> <p><input type="checkbox" value="forever" id="rememberme"/> <?php echo _e('Stay signed in'); ?> </p> <p> <input type="hidden" name="redirect_to" value="<?php echo get_option('mixare-poi-path'); ?> " /> <input type="submit" value="Log In" id="wp-submit" name="wp-submit" class="button-primary" /> </p> <p><a href="<?php echo get_Option('user_page'); ?> &page=Register"><?php echo _e('Register'); ?> </a></p><p><a href="<?php echo get_Option('user_page'); ?> &page=Password"><?php _e('Forgot Password?'); ?> </a></p> </form> </p>
</tr> <tr> <td class="mixare-td-left">Marks:</td><td><?php echo $search[$i]['count']; ?> </td> </tr> <tr> <td class="mixare-td-left">Last Update:</td><td><?php echo $search[$i]['date']; ?> </td> </tr> <tr> <td colspan="2"><input type="text" name="mixare-textfield-link" value="<?php echo get_Option('siteurl'); ?> /map.php?map=<?php echo $search[$i]['map']; ?> " class="mixare-textfield" /></td><td></td> </tr> </table> </div> <?php } } ?> <hr /> <div class="search-frame"> <?php
<a href="<?php echo get_Option('wp_poi_page'); ?> ">Back</a><br /> <div id="mixare-poi-map"></div> <div class="mixare-control"></div>
<td><strong>Link</strong></td> <td class="lasttd"><strong>Actions</strong></td> </tr> <?php foreach($maps as $map){ ?> <tr> <td> <a href="user-edit.php?user_id=<?php echo $map['ID']; ?>"><?php echo $map['user_login']; ?></a> </td> <td> <?php echo $map['mapname']; ?> </td> <td> <?php echo $map['state']; ?> </td> <td> <?php echo $map['poicount']; ?> </td> <td> <?php echo get_Option('siteurl'); ?>/map.php?map=<?php echo $map['mapid'] ?><?php if(!$map['state']){echo "&k=" . $map['pass'];} ?> </td> <td class="lasttd"> <a href="tools.php?page=mixare-poi-options&m=maps&d=<?php echo $map['mapid'] ?>">Delete</a> </td> </tr> <? } ?> </table>