This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>Create an account</h1> | |
<fieldset> | |
<legend>Personal Information</legend> | |
<?php | |
echo form_open('login/create_member'); | |
echo form_input('first_name', set_value('first_name',''),"placeholder='First Name'"); | |
echo form_input('last_name', set_value('last_name', ''),"placeholder='Last Name'"); | |
echo form_input('email_address', set_value('email_address', ''),"placeholder='Email Address'"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this->load->library('form_validation'); | |
$this->form_validation->set_rules('first_name', 'User Name', 'trim|required|min_length[4]|max_length[15]|xss_clean'); | |
$this->form_validation->set_rules('last_name', 'Last Name', 'trim|required|xss_clean'); | |
$this->form_validation->set_rules('email_address', 'Email Address', 'trim|required|valid_email|xss_clean'); | |
$this->form_validation->set_rules('username', 'User Name', 'trim|required|min_length[4]|xss_clean'); | |
$this->form_validation->set_rules('password', 'Password', 'trim|required|min_length[6]|max_length[32]|xss_clean'); | |
$this->form_validation->set_rules('password2', 'Password Confirmation', 'trim|required|matches[password]'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string connectionString = "Data Source=ARBAAZLPT\\SQLEXPRESS;Initial Catalog=bi;User ID=sa; Password=123456;"; | |
SqlConnection sqlConnection=new SqlConnection(connectionString); | |
string insertStatement = "INSERT INTO comment(dashboard,userid,tab,comment,date,timestamp,chartdesc) VALUES ('" + DashboardList.SelectedValue + "','" + userid_text.Text + "','" + chartList.SelectedValue + "','" + coment_txt.Text + "','" + dt+ "', GETDATE(),'"+ chart_desc.Text + "')"; | |
// string insertStatement = "INSERT INTO comment(dashboard,userid,tab,comment,date,chartdesc)VALUES ('mydashboard','myuserid','mytab','mycomment','02-20-1990','mychartdesc')"; | |
SqlCommand sqlCommand=new SqlCommand(insertStatement,sqlConnection); | |
try | |
{ | |
sqlConnection.Open(); | |
sqlCommand.ExecuteNonQuery(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ "keys": ["j","j"], "command": "exit_insert_mode", | |
"context":[ | |
{ "key": "setting.command_mode", "operand": false }, | |
{ "key": "setting.is_widget", "operand": false }] | |
}, | |
{ "keys": ["f2"], "command": "side_bar_rename" }, | |
{ "keys": ["f3"], "command": "side_bar_move" }, | |
{ "keys": ["f4"], "command": "side_bar_delete" }, | |
{"keys":["alt+;"],"command": "run_macro_file", "args": {"file": "Packages/User/eol-colon.sublime-macro"}}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--[if lt IE 8]> | |
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p> | |
<![endif]--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function index() | |
{ | |
$config = Array( | |
'protocol' => 'smtp', | |
'smtp_host' => 'smtp3.netcore.co.in', | |
'smtp_port' => 25, | |
'smtp_user' => '[email protected]', | |
'smtp_pass' => 'Supp0rt', | |
'mailtype' => 'html', | |
'charset' => 'utf-8', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ENVELOPE> | |
<HEADER> | |
<VERSION></VERSION> | |
<TALLYREQUEST></TALLYREQUEST> | |
<TYPE></TYPE> | |
<SUBTYPE></SUBTYPE> | |
<ID></ID> | |
</HEADER> | |
<BODY> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getUrlParams() { | |
var paramMap = {}; | |
if (location.search.length == 0) { | |
return paramMap; | |
} | |
var parts = location.search.substring(1).split("&"); | |
for (var i = 0; i < parts.length; i ++) { | |
var component = parts[i].split("="); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if (function_exists('date_default_timezone_set')) | |
{ | |
date_default_timezone_set('Asia/Kolkata'); | |
} echo date("h:i:s"); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class Mail extends CI_Controller { | |
function __construct() | |
{ | |
parent::__construct(); | |
//Do your magic here | |
$this->load->model('membership_model'); | |
$config = Array( |