<div class="span6 offset1" style="padding-top:40px;padding-left:40px;"> <h4>Sign in using 3mik account</h4> <div class="p10"> <?php FormMessage::render(); ?> </div> <div class="lb1"> <form id="web-form1" name="web-form1" action="/user/form/login.php" method="POST"> <div class="error"> </div> <table class="form-table"> <tr> <td class="field">Email<span class="red-label">*</span></td> <td> <input type="text" name="email" maxlength="64" class="required" title="Email is required" value="<?php echo $sticky->get('email'); ?> "/> </td> </tr> <tr> <td class="field"> Password<span class="red-label">*</span></td> <td> <input type="password" name="password" maxlength="32" class="required" title="Password is required" value=""/> </td> </tr> </table>
<div class="clear"> </div> </div> </div> <!-- row:photo --> <form id="web-form1" name="web-form1" action="/user/account/form/edit.php" enctype="multipart/form-data" method="POST"> <div class="error"> </div> <table class="form-table"> <tr> <td class="field">First Name<span class="red-label">*</span></td> <td> <input type="text" name="first_name" maxlength="32" class="required" title=" First Name is required" value="<?php echo $sticky->get('first_name', $userDBRow['first_name']); ?> "/> </td> </tr> <tr> <td class="field">Last Name<span class="red-label">*</span></td> <td> <input type="text" name="last_name" maxlength="32" class="required" title=" Last Name is required" value="<?php echo $sticky->get('last_name', $userDBRow['last_name']); ?> "/> </td> </tr> <tr> <td class="field">Nick Name</td>
<div class="page-header"> <h2> Contact Us </h2> </div> <?php FormMessage::render(); ?> <form id="web-form1" name="web-form1" action="/site/form/contact.php" enctype="multipart/form-data" method="POST"> <table class="form-table"> <tr> <td> <label>Name*</label> <input type="text" name="name" class="required" maxlength="64" value="<?php echo $sticky->get('name'); ?> " /> </td> </tr> <tr> <td> <label>Email* </label> <input type="text" name="email" class="required" maxlength="64" value="<?php echo $sticky->get('email'); ?> " /> </td> </tr> <tr> <td> <label>phone</label> <input type="text" name="phone" maxlength="32" value="<?php
include APP_WEB_DIR . '/inc/role/user.inc'; use com\indigloo\Util; use com\indigloo\Url; use com\indigloo\Configuration as Config; use com\indigloo\Constants; use com\indigloo\ui\form\Message as FormMessage; use com\indigloo\ui\form\Sticky; use com\indigloo\sc\auth\Login; $gSessionLogin = \com\indigloo\sc\auth\Login::getLoginInSession(); $loginId = $gSessionLogin->id; $loginName = $gSessionLogin->name; if (is_null($loginId)) { trigger_error("Error : NULL login_id on user dashboard", E_USER_ERROR); } $sticky = new Sticky($gWeb->find(Constants::STICKY_MAP, true)); $panelId = $sticky->get("panel_id"); $listDao = new \com\indigloo\sc\dao\Lists(); $analyticDao = new \com\indigloo\sc\dao\Analytic(); $counters = $analyticDao->getUserCounters($loginId); $list_counter = $counters["list_count"]; $qparams = Url::getRequestQueryParams(); $pageSize = Config::getInstance()->get_value("user.page.items"); $paginator = new \com\indigloo\ui\Pagination($qparams, $pageSize); $listDBRows = $listDao->getPagedOnLoginId($paginator, $loginId); $baseURI = "/user/dashboard/list/index.php"; $fUrl = Url::current(); ?> <!DOCTYPE html> <html>
<div class="row"> <div class="span12"> <?php FormMessage::render(); ?> </div> <div class="span6"> <form id="web-form1" name="web-form1" action="/user/action/invite.php" enctype="multipart/form-data" method="POST"> <table class="form-table"> <tr> <td> <label>Emails (separate using comma)</label> <input type="text" name="email" class="required wp100" value="<?php echo $sticky->get('email'); ?> " /> </td> </tr> <tr> <td> <label>Message* (max 512 chars)</label> <textarea id="message" maxlength="512" name="message" class="required h130 wp100" cols="50" rows="4" ><?php echo $sticky->get('message', $defaultMessage); ?> </textarea> <br> <span id="message_counter"></span>
// qUrl is where control will go after success // it is part of current URL params and base64 encoded // fUrl is current form URL where redirect happens on error // encode qUrl param is part of fURL $qUrl = Url::tryBase64QueryParam("q", "/"); $fUrl = Url::current(); $itemId = Url::getQueryParam("id"); $postId = PseudoId::decode($itemId); $postDao = new \com\indigloo\sc\dao\Post(); $postDBRow = $postDao->getOnId($postId); if (!(Login::isOwner($postDBRow['login_id']) || Login::isAdmin())) { header("Location: /site/error/403.html"); exit(1); } $loginId = Login::getLoginIdInSession(); $strImagesJson = $sticky->get('images_json', $postDBRow['images_json']); $strLinksJson = $sticky->get('links_json', $postDBRow['links_json']); //@imp: we are enclosing the JSON string in single quotes //so the single quotes in string from DB should be escaped $strImagesJson = Util::formSafeJson($strImagesJson); $strLinksJson = Util::formSafeJson($strLinksJson); $groupDao = new \com\indigloo\sc\dao\Group(); $group_names = $groupDao->tokenizeSlug($postDBRow['group_slug'], ",", true); ?> <!DOCTYPE html> <html> <head> <title> 3mik.com - Share your find, need and knowledge</title>
//sc/share/new.php include 'sc-app.inc'; include APP_WEB_DIR . '/inc/header.inc'; include APP_WEB_DIR . '/inc/role/user.inc'; use com\indigloo\Util; use com\indigloo\Url; use com\indigloo\ui\form\Sticky; use com\indigloo\Constants; use com\indigloo\ui\form\Message as FormMessage; use com\indigloo\sc\auth\Login; $gWeb = \com\indigloo\core\Web::getInstance(); $sticky = new Sticky($gWeb->find(Constants::STICKY_MAP, true)); $qUrl = Url::tryBase64QueryParam("q", "/"); $fUrl = Url::current(); $strImagesJson = $sticky->get('images_json'); $strLinksJson = $sticky->get('links_json'); $strImagesJson = empty($strImagesJson) ? '[]' : $strImagesJson; $strLinksJson = empty($strLinksJson) ? '[]' : $strLinksJson; $loginId = Login::tryLoginIdInSession(); //add security token to form $formToken = Util::getBase36GUID(); $gWeb->store("form.token", $formToken); ?> <!DOCTYPE html> <html> <head> <title> 3mik.com - Share your find, need and knowledge</title> <?php
<?php //sc/monitor/feed.php include 'sc-app.inc'; include APP_WEB_DIR . '/inc/header.inc'; include APP_WEB_DIR . '/inc/role/admin.inc'; use com\indigloo\Util; use com\indigloo\Url; use com\indigloo\Configuration as Config; use com\indigloo\sc\html\feed; use com\indigloo\Constants; use com\indigloo\sc\Constants as AppConstants; use com\indigloo\ui\form\Message as FormMessage; use com\indigloo\ui\form\Sticky; $sticky = new Sticky($gWeb->find(Constants::STICKY_MAP, true)); $panelId = $sticky->get("panel_id"); $feedDao = new \com\indigloo\sc\dao\Activity(); $feedDataObj = $feedDao->getGlobalFeeds(100); $fUrl = Url::current(); ?> <!DOCTYPE html> <html> <head> <title> 3mik.com - Activity feeds </title> <?php include APP_WEB_DIR . '/inc/meta.inc'; ?> <?php
//sc/user/dashboard/list/detail.php include 'sc-app.inc'; include APP_WEB_DIR . '/inc/header.inc'; include APP_WEB_DIR . '/inc/role/user.inc'; use com\indigloo\Util; use com\indigloo\Url; use com\indigloo\Configuration as Config; use com\indigloo\Constants; use com\indigloo\sc\auth\Login; use com\indigloo\ui\form\Message as FormMessage; use com\indigloo\ui\form\Sticky; use com\indigloo\ui\Filter; use com\indigloo\sc\util\PseudoId; $sticky = new Sticky($gWeb->find(Constants::STICKY_MAP, true)); $panelId = $sticky->get("panel_id"); $qparams = Url::getRequestQueryParams(); $gSessionLogin = \com\indigloo\sc\auth\Login::getLoginInSession(); $loginId = $gSessionLogin->id; $loginName = $gSessionLogin->name; if (is_null($loginId)) { trigger_error("Error : NULL or invalid login_id", E_USER_ERROR); } $plistId = Url::getQueryParam("list_id"); $listId = PseudoId::decode($plistId); settype($listId, "int"); $listDao = new \com\indigloo\sc\dao\Lists(); $listDBRow = $listDao->getOnId($listId); $listName = $listDBRow["name"]; //list owner check if (!Login::isOwner($listDBRow["login_id"])) {
<h2>Edit Comment </h2> </div> <?php FormMessage::render(); ?> <div id="form-wrapper"> <form id="web-form1" name="web-form1" action="/qa/comment/form/edit.php" enctype="multipart/form-data" method="POST"> <div class="error"> </div> <table class="form-table"> <tr> <td> <textarea name="comment" class="w580 h130 required" cols="60" rows="10" ><?php echo $sticky->get('comment', $commentDBRow['description']); ?> </textarea> </td> </tr> </table> <div class="form-actions"> <button class="btn btn-primary" type="submit" name="save" value="Save"><span>Submit</span></button> <a href="<?php echo base64_decode($qUrl); ?> "> <button class="btn" type="button" name="cancel"><span>Cancel</span></button> </a> </div>
<?php FormMessage::render(); ?> <form id="web-form1" name="web-form1" action="/user/form/register.php" enctype="multipart/form-data" method="POST"> <div class="error"> </div> <table class="form-table"> <tr> <td class="field">First Name<span class="red-label">*</span></td> <td> <input type="text" name="first_name" maxlength="32" class="required" title=" First Name is required" value="<?php echo $sticky->get('first_name'); ?> "/> </td> </tr> <tr> <td class="field">Last Name<span class="red-label">*</span></td> <td> <input type="text" name="last_name" maxlength="32" class="required" title=" Last Name is required" value="<?php echo $sticky->get('last_name'); ?> "/> </td> </tr> <tr>