EmPower Earth | Changing Lives With Solar

Add Staff

\n”.n “

Add Staff to Online Systems [Apollo, KT, Support Suite]

\n”.n “

\n”;nnif (isset($_POST[''create_staff''])) {n sanitize_post();n // assign variables using cleaned POST Datan $apollo_user_data[''password''] = $_POST[''password''];n $apollo_user_data[''level''] = $_POST[''userlevel''];n $apollo_user_data[''firstname''] = $_POST[''firstname''];n $apollo_user_data[''lastname''] = $_POST[''lastname''];n $apollo_user_data[''username''] = $_POST[''firstname''].substr(strtoupper($_POST[''lastname'']),0,1);n $apollo_user_data[''email''] = $_POST[''email''];nn $apollo_staff_data[''department_id''] = $_POST[''department''];n $apollo_staff_data[''hire_date''] = time();n // End apollo User Datann // Kayako Support Suite Datan $kayako_data[''group_id''] = $_POST[''support_team''];n $kayako_data[''username''] = $apollo_user_data[''username''];n $kayako_data[''fullname''] = $_POST[''firstname''].” “.$_POST[''lastname''];n $kayako_data[''password''] = $_POST[''password''];n $kayako_data[''email''] = $_POST[''email''];nn $kayako_departments = $_POST[''support_departments''];n // End Support suite datan n // Xcart user datan if($apollo_staff_data[''department_id'']==3 || $apollo_staff_data[''department_id'']==18){$staff_type = ”sales”;}nn // KT User Datan $kt_user_data[''username''] = $apollo_user_data[''username''];n $kt_user_data[''name''] = $kayako_data[''fullname''];n $kt_user_data[''password''] = $apollo_user_data[''password''];n $kt_user_data[''email''] = $_POST[''email''];nn // End all user data variable definitionsn n if ($_POST[''password''] != $_POST[''passconfirm'']) {n $errors[]= “Passwords do not match.”;n }n $apollo_user_id = create_apollo_user($apollo_user_data,$apollo_staff_data);n if(!$apollo_user_id) {n $errors[]=mysql_error();n }n n if($_POST[''create_support'']==1){n $kayako_user_id = create_support_suite_user($kayako_data,$kayako_departments);n if(!$kayako_user_id) {n $errors[]=mysql_error();n }n else{n mysql_query(“update employee_and_user_extended_data set support_suite_userid = ”$kayako_user_id” where userid = ”$apollo_user_id””);n }n }nn if($_POST[''create_kt'']==1){n $kt_user_id = create_knowledge_tree_user($kt_user_data);n if(!$kt_user_id) {n $errors[]=mysql_error();n }n else{n mysql_query(“update employee_and_user_extended_data set knowledge_tree_userid = ”$kt_user_id” where userid = ”$apollo_user_id””);n }n }n if($_POST[''create_xcart''] == 1) {n //Check to see if x-cart user already existsn $result = mysql_query(“SELECT login FROM customers WHERE login = ”$apollo_user_data[username]””);n if(mysql_num_rows($result) >0 ){n $errors[]= “Xcart User ($apollo_user_data[username]) already exists.”;n }n //Create x-cart sales rep usern //$xcartpass = xcart_encrypt($orig_password);n mysql_query(“INSERT INTO customersn (login,b_firstname,b_lastname,membershipid,b_country,s_country,staff_type)n VALUES(”$apollo_user_data[username]”’$_POST[firstname]”’$_POST[lastname]”’4”’US”’US”’$staff_type”)”);n n mysql_query(“update employee_and_user_extended_data set xcart_login = ”$apollo_user_data[username]” where userid = ”$apollo_user_id””);n }n if(empty($errors)){n echo $apollo_user_data[''username''].” Created Successfully. Redirecting to User data page…”;n echo ““;n }n}n?>nnn

n
n
n
n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n Namen n ”>n ”>n
n Passwordn n n
n Confirm Passwordn n n
n Emailn n n
n Departmentn n n
n X-Cartn n n Create?n
n Knowledge Treen n n Create?n
n Support Suiten n n Create?n
  n Support Suite Team
n
n Ticket Departments
n \n”.n “

Add Staff to Online Systems [Apollo, KT, Support Suite]

\n”.n “

\n”;nnif (isset($_POST[''create_staff''])) {n sanitize_post();n // assign variables using cleaned POST Datan $apollo_user_data[''password''] = $_POST[''password''];n $apollo_user_data[''level''] = $_POST[''userlevel''];n $apollo_user_data[''firstname''] = $_POST[''firstname''];n $apollo_user_data[''lastname''] = $_POST[''lastname''];n $apollo_user_data[''username''] = $_POST[''firstname''].substr(strtoupper($_POST[''lastname'']),0,1);n $apollo_user_data[''email''] = $_POST[''email''];nn $apollo_staff_data[''department_id''] = $_POST[''department''];n $apollo_staff_data[''hire_date''] = time();n // End apollo User Datann // Kayako Support Suite Datan $kayako_data[''group_id''] = $_POST[''support_team''];n $kayako_data[''username''] = $apollo_user_data[''username''];n $kayako_data[''fullname''] = $_POST[''firstname''].” “.$_POST[''lastname''];n $kayako_data[''password''] = $_POST[''password''];n $kayako_data[''email''] = $_POST[''email''];nn $kayako_departments = $_POST[''support_departments''];n // End Support suite datan n // Xcart user datan if($apollo_staff_data[''department_id'']==3 || $apollo_staff_data[''department_id'']==18){$staff_type = ”sales”;}nn // KT User Datan $kt_user_data[''username''] = $apollo_user_data[''username''];n $kt_user_data[''name''] = $kayako_data[''fullname''];n $kt_user_data[''password''] = $apollo_user_data[''password''];n $kt_user_data[''email''] = $_POST[''email''];nn // End all user data variable definitionsn n if ($_POST[''password''] != $_POST[''passconfirm'']) {n $errors[]= “Passwords do not match.”;n }n $apollo_user_id = create_apollo_user($apollo_user_data,$apollo_staff_data);n if(!$apollo_user_id) {n $errors[]=mysql_error();n }n n if($_POST[''create_support'']==1){n $kayako_user_id = create_support_suite_user($kayako_data,$kayako_departments);n if(!$kayako_user_id) {n $errors[]=mysql_error();n }n else{n mysql_query(“update employee_and_user_extended_data set support_suite_userid = ”$kayako_user_id” where userid = ”$apollo_user_id””);n }n }nn if($_POST[''create_kt'']==1){n $kt_user_id = create_knowledge_tree_user($kt_user_data);n if(!$kt_user_id) {n $errors[]=mysql_error();n }n else{n mysql_query(“update employee_and_user_extended_data set knowledge_tree_userid = ”$kt_user_id” where userid = ”$apollo_user_id””);n }n }n if($_POST[''create_xcart''] == 1) {n //Check to see if x-cart user already existsn $result = mysql_query(“SELECT login FROM customers WHERE login = ”$apollo_user_data[username]””);n if(mysql_num_rows($result) >0 ){n $errors[]= “Xcart User ($apollo_user_data[username]) already exists.”;n }n //Create x-cart sales rep usern //$xcartpass = xcart_encrypt($orig_password);n mysql_query(“INSERT INTO customersn (login,b_firstname,b_lastname,membershipid,b_country,s_country,staff_type)n VALUES(”$apollo_user_data[username]”’$_POST[firstname]”’$_POST[lastname]”’4”’US”’US”’$staff_type”)”);n n mysql_query(“update employee_and_user_extended_data set xcart_login = ”$apollo_user_data[username]” where userid = ”$apollo_user_id””);n }n if(empty($errors)){n echo $apollo_user_data[''username''].” Created Successfully. Redirecting to User data page…”;n echo ““;n }n}n?>nnn

n
n
n
n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n

n Namen n ”>n ”>n
n Passwordn n n
n Confirm Passwordn n n
n Emailn n n
n Departmentn n n
n X-Cartn n n Create?n
n Knowledge Treen n n Create?n
n Support Suiten n n Create?n
  n Support Suite Team
n
n Ticket Departments
n

Why Shop With Us

Why Shop With Silicon Solar

Silicon Solar is, and always will be, a family owned and operated solar company dedicated to providing the highest quality solar powered products which have completed our rigorous quality inspection. We also manufacture a full line of solar powered products right here in our production facility; enabling us offer faster delivery and priority technical support.

Search our online catalog for hundreds of solar lights, solar fountains and many other products, including solar cells and solar panels. We also manufacture custom solar kits upon request for professors and educational programs.

Call us today for your solar request, 1.800.786.0329