function removeFromWishList() { $id_user = $this->input->get('id_user', 0); $wishlistdata = $this->seekWishListRecord($owner_id = getAccountUserId(), $id_user); if ($wishlistdata) { $this->db->where('id_owner', getAccountUserId())->where('id_user', $id_user)->delete(TBL_WISHLIST); } echo "<a href=\"javascript:void(0);\" onclick=\"callFuncAddToWishListThisPet({$id_user});\">\r\n\t\t\t\t" . language_translate('wishlist_addto') . "\r\n\t\t\t</a>"; exit; }
function search() { if (isLogin()) { $search_title = language_translate('sys_search_title'); $action = site_url("user/search"); $keyword = $this->input->get('keyword'); $value = strlen($keyword) ? $keyword : $search_title; $html = "<div class=\"box-search\">\r\n\t\t\t\t\t<form method='get' action='{$action}'>\r\n\t\t\t\t\t\t<input type=\"text\" value=\"{$value}\" name=\"keyword\" id=\"search_keyword\" class=\"text\">\r\n\t\t\t\t\t\t<input type=\"submit\" value=\"\" class=\"submit\">\r\n\t\t\t\t\t</form>\r\n\t\t\t\t</div>"; $html .= "<script type='text/javascript'>\r\n\t\t\t\t\t\t\$(document).ready(function(){\r\n\t\t\t\t\t\t\t\$('#search_keyword').focusin(function(){\r\n\t\t\t\t\t\t\t\tvar name = '{$search_title}';\r\n\t\t\t\t\t\t\t\tif(\$(this).attr('value') == name){\r\n\t\t\t\t\t\t\t\t\t\$(this).attr('value','');\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t</script>"; return $html; } else { return ''; } }
function addUserToMyFvList() { $to_id_user = $this->input->post('id_user'); $from_id_user = getAccountUserId(); $rs = $this->db->where('from_id_user', $from_id_user)->where('to_id_user', $to_id_user)->get(TBL_CHAT_FAVOURITE)->result(); if (!$rs) { $data['to_id_user'] = $to_id_user; $data['from_id_user'] = $from_id_user; $data['datetime'] = mysqlDate(); $this->mod_io_m->insert_map($data, TBL_CHAT_FAVOURITE); } $userdata = getAccountUserDataObject(); $touserdata = $this->user_io_m->init('id_user', $to_id_user); $CMCHATMSG = str_replace(array('$u1', '$u2'), array($userdata->username, $touserdata->username), language_translate('hook_chat_add_chat_favourite')); echo json_encode(array('result' => 'ok', 'message' => 'Add to favorite successfully.', 'CMCHATMSG' => $CMCHATMSG)); exit; }
function submitBuyPeepedAccess() { $userdataobj = getAccountUserDataObject(true); $id_user = $this->input->post('id_user', 0); $sellerdataobj = $this->user_io_m->init('id_user', $id_user); $days = $this->input->post('days', 0); $amountfee = $days * $sellerdataobj->peep_access; $cash = $userdataobj->cash; if ($cash < $amountfee) { echo json_encode(array('result' => 'ERROR', 'message' => 'Your balance is not enough to access peeped.')); exit; } if ($days < 1) { echo json_encode(array('result' => 'ERROR', 'message' => 'Unknown error.')); exit; } $data['id_buyer'] = getAccountUserId(); $data['id_user'] = $id_user; $data['amount'] = $amountfee; $data['ip'] = $this->geo_lib->getIpAddress(); $data['access_days'] = $days; $data['buy_date'] = mysqlDate(); $data['exp_date'] = sysDateTimeFormat(mysql_to_unix($data['buy_date']) + 86400 * $days, 'Y-m-d H:i:s'); $id_history = $this->mod_io_m->insert_map($data, TBL_PEEPBOUGHT_HISTORY); $site_amt = $amountfee * ($GLOBALS['global']['PEEP_PRICE']['site'] / 100); $user_amt = $amountfee * ($GLOBALS['global']['PEEP_PRICE']['user'] / 100); $transaction_data = array(); $transaction_data['id_owner'] = getAccountUserId(); $transaction_data['id_user'] = $data['id_user']; $transaction_data['amount'] = $data['amount']; $transaction_data['trans_type'] = $GLOBALS['global']['TRANS_TYPE']['buy_peeped']; $transaction_data['site_amt'] = $site_amt; $transaction_data['user_amt'] = $user_amt; $transaction_data['trans_date'] = mysqlDate(); $transaction_data['ip'] = $this->geo_lib->getIpAddress(); $transaction_id = $this->mod_io_m->insert_map($transaction_data, TBL_TRANSACTION); if ($transaction_id) { $this->db->query("UPDATE " . TBL_USER . " SET cash= cash +'" . $site_amt . "' WHERE id_admin=1"); $this->db->query("UPDATE " . TBL_USER . " SET cash= cash -'" . $data['amount'] . "' WHERE id_user='******'"); $this->db->query("UPDATE " . TBL_USER . " SET cash= cash +'" . $user_amt . "' WHERE id_user='******'id_user'] . "'"); } $CMCHATMSG = str_replace(array('$u1', '$u2', '$p3'), array($userdataobj->username, $sellerdataobj->username, $amountfee), language_translate('hook_chat_buy_peep_access')); echo json_encode(array('result' => 'ok', 'message' => 'Buy peeped access successfully.', 'CMCHATMSG' => $CMCHATMSG)); $this->email_sender->juzonSendEmail_JUZ_WHO_BOUGHT_WHO_PEEPED_ME($transaction_data['id_owner'], $transaction_data['id_user'], $transaction_data['amount']); exit; }
if ($item->asked_by) { echo $this->user_m->getProfileDisplayName($item->asked_by); } else { echo "Anonymous"; } ?> </td> <td><?php echo juzTimeDisplay($item->ques_date); ?> </td> <td><a href="javascript:void(0);" onclick="callFuncAnswerQuestion(<?php echo $item->id_askmeq; ?> )"><?php echo language_translate('question_button_answer'); ?> </a></td> <td><a href="javascript:void(0);" onclick="callFuncDeleteQuestion(<?php echo $item->id_askmeq; ?> )"><?php echo language_translate('question_button_delete'); ?> </a></td> </tr> <?php } ?> </tbody> </table>
"> <img src="<?php echo $this->user_m->getProfileAvatar($item->id_user); ?> " /> </a> </div> <div class="user-profile-username"> <?php echo $this->user_m->getProfileDisplayName($item->id_user); ?> </div> <div class="user-profile-cash"> <strong><?php echo language_translate('left_menu_label_cash'); ?> </strong> <?php echo $this->user_m->getCash($item->id_user); ?> </div> </div> <?php if ($i % 2 == 0) { ?> <div class="clear"></div> <?php } ?>
function langTranslatePost($keys) { //set incoming POST values for languages if (!getOption('languages')) { return false; } global $_POST; //make sure do translations checkbox is checked if (!isset($_POST['translations_do'])) { return false; } //list of fields to translate $keys = array_separated($keys); //get list of languages to translate to $languages = db_array('SELECT code FROM languages WHERE id <> ' . $_SESSION['language_id']); foreach ($keys as $key) { foreach ($languages as $language) { $_POST[$key . langExt($language)] = language_translate($_POST[$key . langExt()], $_SESSION['language'], $language); } } }
echo language_translate('left_menu_label_to'); ?> </b> </label> <?php echo form_dropdown('gender', genderOptionData_ioc(), array($oppsex), 'id="gender"'); ?> <?php echo form_dropdown('type', sendRandomMessageOptionData_ioc(), array(), 'id="type"'); ?> <div class="clear sep"></div> <input type="submit" value="<?php echo language_translate('left_menu_label_send'); ?> " name="submit" onclick="callFuncSendRandomMessage();" /> <?php echo loader_image_s("id=\"sendRandomMessageContextLoader\" class='hidden'"); ?> <div class="clear"></div> </div> </div>
<?php defined('BASEPATH') or exit('No direct script access allowed'); ?> <div id="page-login"> <div class="input"> <?php echo language_translate('member_active_password_notify'); ?> </div> <div class="clear"></div> </div>
echo $this->user_m->calculatePetPrice($item->id_user); ?> J$ </a> </div> <div class="user-profile-button" id="wishlistInfoDivID_<?php echo $item->id_user; ?> "> <a href="javascript:void(0);" onclick="callFuncAddToWishListThisPet(<?php echo $item->id_user; ?> );"> <?php echo language_translate('wishlist_addto'); ?> </a> </div> <div class="user-profile-button"> <a href="javascript:void(0);" onclick="jqcc.cometchat.chatWith('<?php echo $item->id_user; ?> ');"> Chat </a> </div> <div class="clear"></div> </div>
function render_options_form() { log_debug("table", "Executing render_options_form()"); // if the user has not configured any default options, display the dropdown // link bar instead of the main options table. if (!isset($_SESSION["form"][$this->tablename]["custom_options_active"])) { if (isset($_SESSION["user"]["shrink_tableoptions"]) && $_SESSION["user"]["shrink_tableoptions"] == "on") { print "<div id=\"" . $this->tablename . "_link\">"; print "<table class=\"table_options_dropdown\">"; print "<tr>"; print "<td onclick=\"obj_show('" . $this->tablename . "_form'); obj_hide('" . $this->tablename . "_link');\">"; print "ADJUST TABLE OPTIONS >>"; print "</td>"; print "</tr>"; print "</table><br>"; print "</div>"; } } // border table / div object print "<div id=\"" . $this->tablename . "_form\">"; print "<table class=\"table_options\"><tr><td>"; // create tmp array to prevent excessive use of array_keys $columns_available = array_keys($this->structure); // get labels for all the columns $labels = language_translate($this->language, $columns_available); // start the form print "<form method=\"get\" class=\"form_standard\">"; $form = new form_input(); $form->formname = $this->tablename; $form->language = $this->language; // include page name $structure = NULL; $structure["fieldname"] = "page"; $structure["type"] = "hidden"; $structure["defaultvalue"] = $_GET["page"]; $form->add_input($structure); $form->render_field("page"); // include any other fixed options foreach (array_keys($this->option) as $fieldname) { $structure = NULL; $structure["fieldname"] = $fieldname; $structure["type"] = "hidden"; $structure["defaultvalue"] = $this->option[$fieldname]; $form->add_input($structure); $form->render_field($fieldname); } // flag this form as the table_display_options form $structure = NULL; $structure["fieldname"] = "table_display_options"; $structure["type"] = "hidden"; $structure["defaultvalue"] = $this->tablename; $form->add_input($structure); $form->render_field("table_display_options"); /* Check box options */ // configure all the checkboxes $num_cols = count($columns_available); $num_cols_half = sprintf("%d", $num_cols / 2); for ($i = 0; $i < $num_cols; $i++) { $column = $columns_available[$i]; // define the checkbox $structure = NULL; $structure["fieldname"] = $column; $structure["type"] = "checkbox"; if (isset($this->structure[$column]["custom"]["label"])) { $structure["options"]["label"] = lang_trans($this->structure[$column]["custom"]["label"]); } if (in_array($column, $this->columns)) { $structure["defaultvalue"] = "on"; } $form->add_input($structure); // split the column options boxes into two different columns if ($i < $num_cols_half) { $column_a1[] = $column; } else { $column_a2[] = $column; } } // structure table print "<table width=\"100%\"><tr>"; print "<td width=\"50%\" valign=\"top\" style=\"padding: 4px;\">"; print "<b>Fields to display:</b><br><br>"; print "<table width=\"100%\">"; print "<td width=\"50%\" valign=\"top\">"; // display the checkbox(s) foreach ($column_a1 as $column) { $form->render_field($column); print "<br>"; } print "</td>"; print "<td width=\"50%\" valign=\"top\">"; // display the checkbox(s) foreach ($column_a2 as $column) { $form->render_field($column); print "<br>"; } print "</td>"; print "</table>"; print "</td>"; /* Filter Options */ print "<td width=\"50%\" valign=\"top\" style=\"padding: 4px;\">"; print "<b>Filter/Search Options:</b><br><br>"; print "<table width=\"100%\">"; if ($this->filter) { foreach (array_keys($this->filter) as $fieldname) { if ($this->filter[$fieldname]["type"] == "dropdown") { $this->filter[$fieldname]["options"]["width"] = 300; } $form->add_input($this->filter[$fieldname]); $form->render_row($fieldname); } } print "</table>"; print "</td>"; // new row print "</tr>"; print "<tr>"; /* Order By Options */ if ($this->columns_order_options) { print "<td width=\"100%\" colspan=\"4\" valign=\"top\" style=\"padding: 4px;\">"; print "<br><b>Order By:</b><br>"; // limit the number of order boxes to 4 $num_cols = count($this->columns_order_options); if ($num_cols > 4) { $num_cols = 4; } for ($i = 0; $i < $num_cols; $i++) { // define dropdown $structure = NULL; $structure["fieldname"] = "order_{$i}"; $structure["type"] = "dropdown"; $structure["options"]["width"] = 150; if (isset($this->columns_order[$i])) { $structure["defaultvalue"] = $this->columns_order[$i]; } $structure["values"] = $this->columns_order_options; $form->add_input($structure); // display drop down $form->render_field($structure["fieldname"]); if ($i < $num_cols - 1) { print " then "; } } print "</td>"; } /* Submit Row */ print "<tr>"; print "<td colspan=\"4\" valign=\"top\" style=\"padding: 4px;\">"; print "<table>"; print "<tr><td>"; // submit button $structure = NULL; $structure["fieldname"] = "submit"; $structure["type"] = "submit"; $structure["defaultvalue"] = "Apply Options"; $form->add_input($structure); $form->render_field("submit"); print "</form>"; print "</td>"; print "<td>"; /* Include a reset button - this reset button is an independent form which passes any required fixed options and also a reset option back to the page. The load_options_form function then detects this reset value and erases the session data for the options belonging to this table, resetting the options form to the original defaults. */ // start the form print "<form method=\"get\" class=\"form_standard\">"; $form = new form_input(); $form->formname = "reset"; $form->language = $this->language; // include page name $structure = NULL; $structure["fieldname"] = "page"; $structure["type"] = "hidden"; $structure["defaultvalue"] = $_GET["page"]; $form->add_input($structure); $form->render_field("page"); // include any other fixed options foreach (array_keys($this->option) as $fieldname) { $structure = NULL; $structure["fieldname"] = $fieldname; $structure["type"] = "hidden"; $structure["defaultvalue"] = $this->option[$fieldname]; $form->add_input($structure); $form->render_field($fieldname); } // flag as the reset form $structure = NULL; $structure["fieldname"] = "reset"; $structure["type"] = "hidden"; $structure["defaultvalue"] = "yes"; $form->add_input($structure); $form->render_field("reset"); $structure = NULL; $structure["fieldname"] = "submit"; $structure["type"] = "submit"; $structure["defaultvalue"] = "Reset Options"; $form->add_input($structure); $form->render_field("submit"); print "</form></td>"; print "</tr></table>"; print "</td>"; print "</tr>"; // end of structure table print "</table>"; // end of border table print "</td></tr></table><br>"; print "</div>"; // auto-hide options at startup if (!isset($_SESSION["form"][$this->tablename]["custom_options_active"])) { if (isset($_SESSION["user"]["shrink_tableoptions"]) && $_SESSION["user"]["shrink_tableoptions"] == "on") { print "<script type=\"text/javascript\">"; print "obj_hide('" . $this->tablename . "_form');"; print "</script>"; } } }
if ($tmp = $this->rate_m->getRateScore($item->id_image)) { echo $tmp; } ?> </div> <?php if (!$this->collection_m->isMyCollectionPhoto($item->id_image)) { ?> <div class="user-profile-button"> <a href="javascript:void(0);" onclick="callFuncBuyThisBackstagePhoto(<?php echo $item->id_image; ?> )"> <?php echo language_translate('show_backstage_buyfor'); ?> <?php echo currencyDisplay($item->price) . JC; ?> </a> </div> <?php } ?> <div class="clear"></div> </div> <?php
function submitExtendAccessMapFlirts() { $userdataobj = getAccountUserDataObject(true); $id_user = $this->input->post('id_user', 0); $sellerdataobj = $this->user_io_m->init('id_user', $id_user); $days = $this->input->post('days', 0); $amountfee = $days * $sellerdataobj->map_access; $cash = $userdataobj->cash; if ($cash < $amountfee) { echo json_encode(array('result' => 'ERROR', 'message' => 'Your balance is not enough to access map flirts.')); exit; } if ($days < 1) { echo json_encode(array('result' => 'ERROR', 'message' => 'Unknown error.')); exit; } if ($this->mapflirt_m->checkUserBlockedOther($id_user, getAccountUserId())) { echo json_encode(array('result' => 'ERROR', 'message' => 'Error. This user was blocked you from access map location.')); exit; } $historydata = $this->mapflirt_m->getHistory($id_user); if ($historydata) { $data['id_buyer'] = getAccountUserId(); $data['id_seller'] = $id_user; $data['amount'] = $amountfee; $data['ip'] = $this->geo_lib->getIpAddress(); if (mysql_to_unix($historydata->exp_date) > mysql_to_unix(mysqlDate())) { // extend $data['buy_date'] = $historydata->buy_date; $data['exp_date'] = sysDateTimeFormat(mysql_to_unix($historydata->exp_date) + 86400 * $days, 'Y-m-d H:i:s'); $data['map_days'] = $days + (int) (mysql_to_unix($historydata->exp_date) / 86400); } else { //re-buy $data['buy_date'] = mysqlDate(); $data['exp_date'] = sysDateTimeFormat(mysql_to_unix($data['buy_date']) + 86400 * $days, 'Y-m-d H:i:s'); $data['map_days'] = $days; } $id_history = $this->mod_io_m->update_map($data, array('id_map_history' => $historydata->id_map_history), TBL_MAP_HISTORY); $site_amt = $amountfee * ($GLOBALS['global']['MAP_PRICE']['site'] / 100); $user_amt = $amountfee * ($GLOBALS['global']['MAP_PRICE']['user'] / 100); $transaction_data = array(); $transaction_data['id_owner'] = getAccountUserId(); $transaction_data['id_user'] = $data['id_seller']; $transaction_data['amount'] = $data['amount']; $transaction_data['trans_type'] = $GLOBALS['global']['TRANS_TYPE']['map']; $transaction_data['site_amt'] = $site_amt; $transaction_data['user_amt'] = $user_amt; $transaction_data['trans_date'] = mysqlDate(); $transaction_data['ip'] = $this->geo_lib->getIpAddress(); $transaction_id = $this->mod_io_m->insert_map($transaction_data, TBL_TRANSACTION); if ($transaction_id) { $this->db->query("UPDATE " . TBL_USER . " SET cash= cash +'" . $site_amt . "' WHERE id_admin=1"); $this->db->query("UPDATE " . TBL_USER . " SET cash= cash -'" . $data['amount'] . "' WHERE id_user='******'"); $this->db->query("UPDATE " . TBL_USER . " SET cash= cash +'" . $user_amt . "' WHERE id_user='******'id_seller'] . "'"); } debug("extend/buy map location transaction id={$transaction_id} "); $this->email_sender->juzonSendEmail_JUZ_WHO_BOUGHT_MY_MAPFLIRTS($transaction_data['id_owner'], $transaction_data['id_user'], $transaction_data['amount']); } else { $i = 0; if (!$this->mapflirt_m->wasIMapedUser($id_user)) { $sellerdataobj = $this->user_io_m->init('id_user', $id_user); $data[$i]['id_buyer'] = getAccountUserId(); $data[$i]['id_seller'] = $id_user; $data[$i]['amount'] = $sellerdataobj->map_access; $data[$i]['map_days'] = 1; $data[$i]['buy_date'] = mysqlDate(); $data[$i]['exp_date'] = sysDateTimeFormat(mysql_to_unix($data[$i]['buy_date']) + 86400, 'Y-m-d H:i:s'); $data[$i]['ip'] = $this->geo_lib->getIpAddress(); foreach ($data as $key => $value) { $id_history = $this->mod_io_m->insert_map($value, TBL_MAP_HISTORY); $site_amt = $value['amount'] * ($GLOBALS['global']['MAP_PRICE']['site'] / 100); $user_amt = $value['amount'] * ($GLOBALS['global']['MAP_PRICE']['user'] / 100); $transaction_data = array(); $transaction_data['id_owner'] = getAccountUserId(); $transaction_data['id_user'] = $value['id_seller']; $transaction_data['amount'] = $value['amount']; $transaction_data['trans_type'] = $GLOBALS['global']['TRANS_TYPE']['map']; $transaction_data['site_amt'] = $site_amt; $transaction_data['user_amt'] = $user_amt; $transaction_data['trans_date'] = mysqlDate(); $transaction_data['ip'] = $this->geo_lib->getIpAddress(); $transaction_id = $this->mod_io_m->insert_map($transaction_data, TBL_TRANSACTION); if ($transaction_id) { $this->db->query("UPDATE " . TBL_USER . " SET cash= cash +'" . $site_amt . "' WHERE id_admin=1"); $this->db->query("UPDATE " . TBL_USER . " SET cash= cash -'" . $value['amount'] . "' WHERE id_user='******'"); $this->db->query("UPDATE " . TBL_USER . " SET cash= cash +'" . $user_amt . "' WHERE id_user='******'id_seller'] . "'"); } debug("extend/buy map location transaction id={$transaction_id} "); $this->email_sender->juzonSendEmail_JUZ_WHO_BOUGHT_MY_MAPFLIRTS($transaction_data['id_owner'], $transaction_data['id_user'], $transaction_data['amount']); } } } $context = $this->input->post('context'); if ($context == 'CMCHAT') { $CMCHAT = str_replace(array('$u1', '$u2', '$p3'), array($userdataobj->username, $sellerdataobj->username, $amountfee), language_translate('hook_chat_buy_map')); } else { $CMCHAT = ''; } echo json_encode(array('result' => 'ok', 'message' => 'Buy successfully.', 'CMCHATMSG' => $CMCHAT)); exit; }
<?php $this->load->view("user/leftsite/friends_list"); ?> <div class="clear"></div> <div class="widget" style="position:relative;"> <div id="petlistBoxAsync"> <?php $this->load->view("user/leftsite/pets_list"); ?> </div> </div> <div class="clear"></div> <div class="widget"> <h4><?php echo language_translate('left_menu_label_wishlist'); ?> </h4> <div id="wishlistBoxAsync"> <?php $this->load->view("user/leftsite/wishlist_async"); ?> </div> </div> </aside>
<?php if (!$this->friend_m->isMyFriend($userdataobj->id_user) and notMe($userdataobj->id_user)) { ?> <div class="user-profile-button"> <a onclick="callFuncAddFriend(<?php echo $userdataobj->id_user; ?> )" href="javascript:void(0);" id="addFriendContext_<?php echo $userdataobj->id_user; ?> "> <?php if ($this->friend_m->isPendingAddFriend($userdataobj->id_user)) { ?> <?php echo language_translate('request_add_friend_success'); ?> <?php } else { ?> Add Friend <?php } ?> </a> </div> <div class="clear"></div> <?php } ?>
<?php include '../../include.php'; echo drawTop(); $f = new form('translate', false, $page['title']); $f->set_field(array('type' => 'textarea', 'name' => 'text_to_translate', 'class' => 'tinymce', 'label' => 'English text', 'value' => @$_POST['text_to_translate'])); $f->set_title_prefix($page['breadcrumbs']); echo $f->draw(); if ($posting) { echo draw_div_class('message', language_translate(@$_POST['text_to_translate'], 'en', 'es')); echo draw_div_class('message', language_translate(@$_POST['text_to_translate'], 'en', 'fr')); echo draw_div_class('message', language_translate(@$_POST['text_to_translate'], 'en', 'ru')); } echo drawBottom();
<div class="input"> <?php echo language_translate('member_forgot_password_guide'); ?> </div> <div class="input"> <label><?php echo language_translate('member_login_label_email'); ?> </label> <input type="text" value="" name="email" class="text" maxlength="45" /> </div> <div class="input"> <div class="input-padding"> <input type="submit" value="<?php echo language_translate('member_login_button_submit'); ?> " name="submit" class="share-2" /> </div> </div> <?php echo form_close(); ?> <div class="clear"></div> </div> <script type="text/javascript"> $(document).ready(function() { var options = {
?> );"><?php echo language_translate('sys_button_title_edit'); ?> </a> </div> <div class="user-profile-button"> <a href="javascript:void(0);" onclick="return sysConfirm('<?php echo language_translate('sys_button_delete_confirm'); ?> ','callFuncDeleteMyBackstagePhoto(<?php echo $item->id_image; ?> )');"><?php echo language_translate('sys_button_title_delete'); ?> </a> </div> </div> <?php if ($i % 4 == 0) { ?> <div class="clear"></div> <?php } ?> <?php $i++;
<script type="text/javascript"> $(document).ready(function(){ if($('#shareContext').val() == 'status'){ $('#shareTxtStatus').live('focusin',function(){ if($(this).val() == '<?php echo language_translate("wall_status_share_default"); ?> '){ $(this).val(""); } }); } $('#shareTxtPhoto').live('focusin',function(){ if($(this).val() == '<?php echo language_translate("wall_photo_share_default"); ?> '){ $(this).val(""); } }); }); $(document).ready(function(){ var options = { beforeSubmit: validateB4Submit, success: processAfterResponding }; $('#submit_upload_photo').ajaxForm(options);
if ($this->facebookmodel->isFacebookConnected()) { redirect("member/proceedFacebookUserConnected"); } else { redirect("member/fb_register"); } } ?> <div id="page-login" style="height:300px;"> <div class="input" style="width:600px;"> <?php if (isset($_SESSION['USER_INVITE']['id_user'])) { $userdataobj = $this->user_io_m->init('id_user', $_SESSION['USER_INVITE']['id_user']); echo str_replace(array('$firstname', '$lastname'), array($userdataobj->first_name, $userdataobj->last_name), language_translate('member_invitepage_title')); } else { echo str_replace('$firstname $lastname', '', language_translate('member_invitepage_title')); } ?> </div> <div style="text-align: center" class="input"> <a href="<?php echo $this->facebookmodel->getLoginLogoutUrl(); ?> "><img src="<?php echo site_url(); ?> media/images/facebook.png" alt="facebook" title="facebook"></a> <a href="<?php echo $this->twittermodel->getAuthorizeURL();
function submit_tt_register() { $dataarr = $this->twittermodel->getCurrentUserDetails(); extract($_POST); //check valid username $usernameStatus = json_decode($this->checkUsernameValid($username)); if ($usernameStatus->result == 'ERROR') { echo json_encode(array('result' => 'ERROR', 'message' => $usernameStatus->message)); exit; } //check valid password if (strlen($password) < 6 or strlen($password) > 30) { echo json_encode(array('result' => 'ERROR', 'message' => language_translate('member_fb_password_error'))); exit; } //check valid password if (!$this->phpvalidator->is_email($email)) { echo json_encode(array('result' => 'ERROR', 'message' => language_translate('member_email_error'))); exit; } //check valid email $res = $this->db->get(TBL_USER)->result(); foreach ($res as $item) { $restrict_email[] = $item->email; } if (in_array($email, $restrict_email)) { echo json_encode(array('result' => 'ERROR', 'message' => language_translate('member_fb_email_error'))); exit; } if ($this->twittermodel->getTotalFollowers() < $GLOBALS['global']['TWITTER']['MinFollowersRequired']) { echo json_encode(array('result' => 'ERROR', 'message' => str_replace('$s', $GLOBALS['global']['TWITTER']['MinFollowersRequired'], language_translate('member_tt_followers_request_error')))); exit; } if ($this->twittermodel->getTotalTweets() < $GLOBALS['global']['TWITTER']['MinTweetsRequired']) { echo json_encode(array('result' => 'ERROR', 'message' => str_replace('$s', $GLOBALS['global']['TWITTER']['MinTweetsRequired'], language_translate('member_tt_mintweet_request_error')))); exit; } if ($this->twittermodel->accountCreatedDaysBefore() < $GLOBALS['global']['TWITTER']['MinDaysOldAccountRequired']) { echo json_encode(array('result' => 'ERROR', 'message' => str_replace('$s', $GLOBALS['global']['TWITTER']['MinDaysOldAccountRequired'], language_translate('member_tt_mindays_request_error')))); exit; } $birthday = $day . '-' . $month . '-' . $year; if (!$birthday) { echo json_encode(array('result' => 'ERROR', 'message' => language_translate('member_birthday_error'))); exit; } $dob = $this->facebookmodel->convertToJuzDateFormat(isset($birthday) ? $birthday : "10/10/2000"); $user['dob'] = $dob; $user['age'] = floor((strtotime(date('Y-m-d')) - strtotime($user['dob'])) / 31557600); //check valid age if ($user['age'] < 18) { echo json_encode(array('result' => 'ERROR', 'message' => language_translate('member_fb_age_error'))); exit; } //if not user invited, user default from config if (!isset($_SESSION['USER_INVITE'])) { $email_invite_default = $GLOBALS['global']['HOME_PAGE']['defaultinviterforhomepage']; $owner_id = $this->user_io_m->getUserIdFromEmail($email_invite_default); } else { $owner_id = $_SESSION['USER_INVITE']['id_user']; } $user['owner'] = $owner_id; $user['username'] = strtolower($username); $user['timezone'] = $timezone; $user['email'] = $email; $user['about_me'] = $dataarr['description']; $geo_data = $this->geo_lib->getLocationInfoFromIP(); if ($geo_data) { $countryData = $this->geo_lib->getCountryDataInfoFromCountryName($geo_data["country"]); if ($countryData) { $user['id_country'] = $countryData->id_country; $user['country'] = $countryData->country_name; } else { $user['id_country'] = 150; $user['country'] = 'Malaysia'; } } else { $user['id_country'] = 150; $user['country'] = 'Malaysia'; } $user['gender'] = ucfirst($gender); $user['password'] = md5($password); $user['nickname'] = $user['username']; $user['random_num'] = 0; $user['map_access'] = $GLOBALS['global']['ADMIN_DEFAULT']['map']; $user['chat_access'] = $GLOBALS['global']['ADMIN_DEFAULT']['chat']; $user['peep_access'] = $GLOBALS['global']['ADMIN_DEFAULT']['peep']; $user['announce_flag'] = $user['age']; $user['first_name'] = $firstname; $user['last_name'] = $lastname; $user['add_date'] = mysqlDate(); $user['last_login'] = mysqlDate(); if ($latitude and $longitude) { $user['longitude'] = $longitude; $user['latitude'] = $latitude; } else { $geo = $this->geo_lib->getCoordinatesFromAddress($user['country']); $user['longitude'] = $geo['longitude']; $user['latitude'] = $geo['latitude']; } //insert user data into db $new_id_user = $this->user_io_m->insert_map($user); //update invited confirm if ($new_id_user) { $confirmID = $this->user_io_m->generateConfirmInviteId($owner_id, $user['email']); $invite['invite_confirm'] = '0'; $invite['invite_join_date'] = mysqlDate(); $this->mod_io_m->update_map($invite, array('invite_confirm' => $confirmID), TBL_INVITATION); //add user to friend if have invite // $rec = $this->db->where("invited_email",$user['email'])->where("invite_id_user",$user['owner'])->get(TBL_INVITATION)->result(); // if ($rec) { $friend['id_user'] = $new_id_user; $friend['friend'] = $user['owner']; $friend['request_type'] = $GLOBALS['global']['FRIEND_ACTION']['accept']; $friend['request_date'] = mysqlDate(); //$rec[0]->invite_date; $this->mod_io_m->insert_map($friend, TBL_FRIENDLIST); // } } //update value and cash to new user $cash['cash'] = $GLOBALS['global']['USER_CASH']['invited_cash']; $cash['cur_value'] = $GLOBALS['global']['USER_CASH']['pet_start_value']; $this->user_io_m->update_map($cash, $new_id_user); //update invite cash for owner user $this->db->query("UPDATE " . TBL_USER . " SET cash=cash+" . $GLOBALS['global']['USER_CASH']['invite_cash'] . " WHERE id_user="******"INSERT INTO " . TBL_PET . " (id_user,id_owner,add_date,ip) VALUES(" . $new_id_user . "," . $owner_id . ",NOW(),'" . $_SERVER['REMOTE_ADDR'] . "')"); //Transaction for invite user $this->db->query("INSERT INTO " . TBL_TRANSACTION . " (id_owner,id_user,amount,trans_type,user_amt,trans_date,ip) \r\n\t\t\t\t\t\t\tVALUES( 1,'" . $owner_id . "','" . $GLOBALS['global']['USER_CASH']['invite_cash'] . "','" . $GLOBALS['global']['TRANS_TYPE']['referred_cash'] . "','" . $GLOBALS['global']['USER_CASH']['invite_cash'] . "',NOW(),'" . $_SERVER['REMOTE_ADDR'] . "')"); //Transaction for invited user $this->db->query("INSERT INTO " . TBL_TRANSACTION . " (id_owner,id_user,amount,trans_type,user_amt,trans_date,ip) \r\n\t\t\t\t\t\tVALUES( 1,'" . $new_id_user . "','" . $GLOBALS['global']['USER_CASH']['invited_cash'] . "','" . $GLOBALS['global']['TRANS_TYPE']['new_user_cash'] . "','" . $GLOBALS['global']['USER_CASH']['invited_cash'] . "',NOW(),'" . $_SERVER['REMOTE_ADDR'] . "')"); $FirstStatusMessage = $GLOBALS['global']['TWITTER']['FirstStatusMessage']; //$FirstStatusDescription = $GLOBALS['global']['FACEBOOK']['FirstStatusDescription']; //$FirstStatusMessage,$FirstStatusDescription, $invite_url = $this->user_io_m->getInviteUrl($user['username']); $this->twittermodel->postInviteStatus($invite_url); $this->twittermodel->registerTwitterConnected($new_id_user); // $this->facebookmodel->transferPicturesFromFaceBookToJuzon($new_id_user); $this->twittermodel->changeProfileImage($new_id_user, $this->twittermodel->savePictureToJuz($new_id_user)); //$this->twittermodel->updateAboutMeCurrentCityJuz($new_id_user); /** $friend['id_user'] = $new_id_user; $friend['friend'] = $user['owner'] ; $friend['request_type'] = $GLOBALS['global']['FRIEND_ACTION']['accept']; $friend['request_date'] = date("Y-m-d H:i:s",time()); $this->mod_io->insert_map($friend,TBL_FRIENDLIST); **/ if (checkRealEmail($email)) { $welcomeemail_status['fake_email'] = 0; } else { $welcomeemail_status['fake_email'] = 1; } $this->user_io_m->update_map($welcomeemail_status, $new_id_user); echo json_encode(array('result' => 'ok', 'message' => language_translate('member_fb_register_success'))); exit; }
echo $item->id_user; ?> );"> <?php echo language_translate('askfriend_askme'); ?> </a> </div> <div class="user-profile-button"> <a href="javascript:void(0);" onclick="callFuncShowDialogViewLog(<?php echo $item->id_user; ?> );"> <?php echo language_translate('askfriend_viewlog'); ?> </a> </div> </div> <?php if ($i % 5 == 0) { ?> <div class="clear"></div> <?php } ?> <?php
} ?> <a href="<?php echo site_url("user/my_profile"); ?> "><?php echo language_translate('menu_nav_label_profile'); ?> </a> | <a href="<?php echo site_url("user/account"); ?> "><?php echo language_translate('menu_nav_label_account'); ?> </a> | <a href="<?php echo site_url("user/connect"); ?> "><?php echo language_translate('menu_nav_label_connect'); ?> </a> | <a href="<?php echo site_url("member/logout"); ?> "><?php echo language_translate('menu_nav_label_logout'); ?> </a> </nav>
echo form_dropdown($name = 'timezone', timezoneDataOption_ioc(), array(), $extra = " id='timezone' class='inputcls'"); ?> </div> <div class="input"> <input type="checkbox" name="agree" id="agree" checked="checked" /> <?php echo language_translate('member_fb_connect_agree_terms_conditions'); ?> </div> <div class="input"> <div class="input-padding"> <input type="submit" value="<?php echo language_translate('member_login_button_login'); ?> " name="submit" class="share-2" /> </div> </div> <input type="hidden" name="latitude" id="latitude" value="" /> <input type="hidden" name="longitude" id="longitude" value="" /> <?php echo form_close(); ?> <div class="clear"></div> <div id="termsAndConditions" class="hidden"> {{getpost:body_slug slug="term-and-conditions"}}
?> <input type="button" value="Share" name="submit" class="share-2" onclick="callFuncShareCommentPhoto(<?php echo $id_photo; ?> )" /> </div> </div> </div> <script type="text/javascript"> $(document).ready(function(){ $('.myCommentBox').live('focusin',function(){ $dfText = $(this).val(); if($dfText == '<?php echo language_translate("wall_comment_default"); ?> '){ $(this).val(''); } }); }); </script>
<?php extract(joshlib()); function joshlib() { //look for joshlib at joshlib/index.php, ../joshlib/index.php, all the way down global $_josh; $count = substr_count($_SERVER['DOCUMENT_ROOT'] . $_SERVER['SCRIPT_NAME'], '/'); for ($i = 0; $i < $count; $i++) { if (@(include str_repeat('../', $i) . 'joshlib/index.php')) { return $_josh; } } die('Could not find Joshlib.'); } echo url_header_utf8() . draw_meta_utf8(); //echo language_translate('hello world', 'en', 'ru'); debug(); echo language_translate('<p><span class="source">Computerworld -</span> Multi-core processors for tablets and smartphones <a href="http://www.computerworld.com/s/article/9223324/Quad_core_chips_boost_tablet_price_vs._performance_battle">are being touted</a> by chip maker Nvidia and others at the <a href="http://www.computerworld.com/s/article/9223141/CES_2012_What_you_need_to_know">CES</a> trade show, but some in the industry question their value.</p><p>Some of the latest mobile operating systems, such as <a href="http://www.computerworld.com/s/article/9220605/Hands_on_Windows_Phone_7_Mango_edition_adds_features_polish_">Windows Phone 7.5 (Mango)</a>, aren\'t designed to support dual-core processors, analysts noted. At the same time, they said, most <a href="http://www.computerworld.com/s/topic/75/Smartphones">smartphone</a> and <a href="http://www.computerworld.com/s/article/9221711/Latest_on_tablets">tablet</a> applications don\'t need and can\'t benefit from dual-core or quad-core processing power, except for some video and games.</p><p>Given that fact, <a href="http://www.computerworld.com/s/article/9137060/Microsoft_Update_Latest_news_features_reviews_opinions_and_more">Microsoft</a> and its partner Nokia practically dismissed dual-core smartphones that are running Android and are built by various makers, including Samsung and HTC.</p><p>To emphasize the point, Microsoft set up a challenge at CES where Windows Phone Evangelist Ben Randolph bet $100 that his Windows Phone, an HTC Titan, would operate faster than any other smartphone in running apps, searching the Web and other functions.</p>', 'en', 'fr');
var p = { url:myurl, desc:"<?php echo language_translate('weibo_network_desc'); ?> ", summary:"<?php echo language_translate('weibo_network_summany'); ?> ", title:"<?php echo language_translate('weibo_network_title2'); ?> ", site:'', pics:myurl+'templates/css_theme/img/favicon.ico' }; var s = []; for(var i in p){ s.push(i + '=' + encodeURIComponent(p[i]||'')); } $('#qqdiv').html(['<a href="http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?',s.join('&'),'"target="_blank" title="<?php echo language_translate('qq_network_title'); ?> "><img src="http://qzonestyle.gtimg.cn/ac/qzone_v5/app/app_share/qz_logo.png" alt="<?php echo language_translate('qq_network_alt'); ?> " ></a>'].join('')); }); </script>
<input class="account-profile" type="text" name="birthday" id="dob" value="<?php echo birthDay($userdataobj->dob); ?> " /> </div> <div class="clear"></div> <label> </label> <div class="inputcls"> <input type="submit" value="<?php echo language_translate('sys_button_title_save'); ?> " name="submit" class="share-2" /> <input type="button" value="<?php echo language_translate('sys_button_title_cancel'); ?> " class="share-2" onclick="callFuncLoadDefaultContactInfoContext();"/> <?php echo loader_image_s("id='loaderContextLoader' class='hidden'"); ?> </div> <div class="clear"></div> </div> <?php echo form_close(); ?> <script type="text/javascript">
<?php echo $this->user_m->calculatePetPrice($item->id_user) . JC; ?> </a> </div> <div class="clear"></div> <div class="user-profile-button" id="wishlistBoxDivID_<?php echo $item->id_user; ?> "> <a href="javascript:void(0);" onclick="callFuncRemoveFromWishList(<?php echo $item->id_user; ?> );"> <?php echo language_translate('wishlist_remove'); ?> </a> </div> </div> <div class="clear"></div> </div> <div class="clear"></div> <?php } ?> </div>
<?php defined('BASEPATH') or exit('No direct script access allowed'); //$ci= &get_instance(); //$ci->load->model("user/user_m"); $invite_url = "<a href='" . $this->user_io_m->getInviteUrl($userdataobj->username) . "'>" . $this->user_io_m->getInviteUrl($userdataobj->username) . "</a>"; $messagePrint = str_replace('{$invite_url}', $invite_url, $message); $messagePrint .= str_replace('{$invite_url}', $invite_url, language_translate('append_invite_friend')); ?> <!-- <div style="background-color: rgb(238, 238, 247);padding:20px"> <div> <a href="<?php //echo $invite_link; ?> "><img src="<?php //echo $ci->user_m->getProfileAvatar($userdataobj->id_user); ?> " border="0" /></a> <br/> <a href="<?php //echo $invite_link; ?> "><?php //echo $userdataobj->username; ?> </a> </div> <br/>