Re:
OK I did that, I get the error message:
Error - You forgot to provide the command parameter: &cmd=command exit ( @html_entity_decode( "" . $kErr_missingparam_cmd[$lang] . ": &cmd=command", $dec_quotes, $dec_charset ) ); } if ( $cmd == "confirm" ) { If ( isset( $_REQUEST['key'] ) && !empty( $_REQUEST['key'] ) ) { $key = $_REQUEST['key']; } else { // Error - The key argument is missing. exit ( @html_entity_decode( "" . $kErr_missingparam_key[$lang] . ": &key=reference", $dec_quotes, $dec_charset ) ); } } else if ( $cmd == "subscribe" || $cmd == "unsubscribe" || $cmd == "un" || $cmd == "update" ) { if ( $cmd == "subscribe" || $cmd == "unsubscribe" || $cmd == "update" ) { if ( isset( $_REQUEST['list'] ) && !empty( $_REQUEST['list'] ) ) { $list = $_REQUEST['list']; } else { if ( $cmd == "unsubscribe") { // Do nothing - No list = All lists } else { // Error - You forgot to provide the list name parameter: &list=listname exit ( @html_entity_decode( "" . $kErr_missingparam_lst[$lang] . ": &list=listname", $dec_quotes, $dec_charset ) ); } } if ( isset( $_REQUEST['email'] ) && !empty( $_REQUEST['email'] ) ) { $email = strtolower( $_REQUEST['email'] ); } else { // Error - You forgot to provide the email address parameter: &email=emailaddress exit ( @html_entity_decode( "" . $kErr_missingparam_adr[$lang] . ": &email=emailaddress", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['pwd'] ) && !empty( $_REQUEST['pwd'] ) ) { $pwd = $_REQUEST['pwd']; } if ( isset( $_REQUEST['firstname'] ) && !empty( $_REQUEST['firstname'] ) ) { $firstname = $_REQUEST['firstname']; } if ( isset( $_REQUEST['lastname'] ) && !empty( $_REQUEST['lastname'] ) ) { $lastname = $_REQUEST['lastname']; } if ( isset( $_REQUEST['company'] ) && !empty( $_REQUEST['company'] ) ) { $company = $_REQUEST['company']; } if ( isset( $_REQUEST['opt1'] ) && !empty( $_REQUEST['opt1'] ) ) { $opt1 = $_REQUEST['opt1']; } if ( isset( $_REQUEST['opt2'] ) && !empty( $_REQUEST['opt2'] ) ) { $opt2 = $_REQUEST['opt2']; } if ( isset( $_REQUEST['opt3'] ) && !empty( $_REQUEST['opt3'] ) ) { $opt3 = $_REQUEST['opt3']; } if ( isset( $_REQUEST['opt4'] ) && !empty( $_REQUEST['opt4'] ) ) { $opt4 = $_REQUEST['opt4']; } if ( isset( $_REQUEST['opt5'] ) && !empty( $_REQUEST['opt5'] ) ) { $opt5 = $_REQUEST['opt5']; } if ( isset( $_REQUEST['opt6'] ) && !empty( $_REQUEST['opt6'] ) ) { $opt6 = $_REQUEST['opt6']; } if ( isset( $_REQUEST['opt7'] ) && !empty( $_REQUEST['opt7'] ) ) { $opt7 = $_REQUEST['opt7']; } if ( isset( $_REQUEST['opt8'] ) && !empty( $_REQUEST['opt8'] ) ) { $opt8 = $_REQUEST['opt8']; } if ( isset( $_REQUEST['opt9'] ) && !empty( $_REQUEST['opt9'] ) ) { $opt9 = $_REQUEST['opt9']; } if ( isset( $_REQUEST['opt10'] ) && !empty( $_REQUEST['opt10'] ) ) { $opt10 = $_REQUEST['opt10']; } if ( isset( $_REQUEST['opt11'] ) && !empty( $_REQUEST['opt11'] ) ) { $opt11 = $_REQUEST['opt11']; } if ( isset( $_REQUEST['opt12'] ) && !empty( $_REQUEST['opt12'] ) ) { $opt12 = $_REQUEST['opt12']; } if ( isset( $_REQUEST['opt13'] ) && !empty( $_REQUEST['opt13'] ) ) { $opt13 = $_REQUEST['opt13']; } if ( isset( $_REQUEST['opt14'] ) && !empty( $_REQUEST['opt14'] ) ) { $opt14 = $_REQUEST['opt14']; } if ( isset( $_REQUEST['opt15'] ) && !empty( $_REQUEST['opt15'] ) ) { $opt15 = $_REQUEST['opt15']; } if ( isset( $_REQUEST['opt16'] ) && !empty( $_REQUEST['opt16'] ) ) { $opt16 = $_REQUEST['opt16']; } if ( isset( $_REQUEST['opt17'] ) && !empty( $_REQUEST['opt17'] ) ) { $opt17 = $_REQUEST['opt17']; } if ( isset( $_REQUEST['opt18'] ) && !empty( $_REQUEST['opt18'] ) ) { $opt18 = $_REQUEST['opt18']; } if ( isset( $_REQUEST['opt19'] ) && !empty( $_REQUEST['opt19'] ) ) { $opt19 = $_REQUEST['opt19']; } if ( isset( $_REQUEST['opt20'] ) && !empty( $_REQUEST['opt20'] ) ) { $opt20 = $_REQUEST['opt20']; } } else if ( $cmd == "un" ) { if ( $action == "unsubscribe" ) { $fwd = 'no'; $url = 'unsubscribe'; $alt = 'Unsubscribe'; } } if ( isset( $_REQUEST['return'] ) && !empty( $_REQUEST['return'] ) ) { $return = $_REQUEST['return']; } else { $return = "html"; } if ( isset( $_REQUEST['local'] ) && !empty( $_REQUEST['local'] ) ) { $local = $_REQUEST['local']; } else { $local = "no"; } } else if ( $cmd == "getlist" || $cmd == "createlist" || $cmd == "removelist" || $cmd == "renamelist" ) { if ( isset( $_REQUEST['list'] ) && !empty( $_REQUEST['list'] ) ) { //if ( isset( $_REQUEST['list'] ) ) { $list = $_REQUEST['list']; } else { // Error - You forgot to provide the list name parameter: &list=listname exit ( @html_entity_decode( "" . $kErr_missingparam_lst[$lang] . ": &list=listname", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['pwd'] ) && !empty( $_REQUEST['pwd'] ) ) { $pwd = $_REQUEST['pwd']; } else { // Error - You forgot to provide the password parameter: &pwd=password exit ( @html_entity_decode( "" . $kErr_missingparam_pwd[$lang] . ": &pwd=password", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['return'] ) && !empty( $_REQUEST['return'] ) ) { $return = $_REQUEST['return']; } else { $return = "html"; } if ( $cmd == "renamelist" ) { if ( isset( $_REQUEST['name'] ) && !empty( $_REQUEST['name'] ) ) { $name = $_REQUEST['name']; } else { // Error - You forgot to provide the new list name parameter: &name=newlistname exit ( @html_entity_decode( "" . $kErr_missingparam_nna[$lang] . ": &name=newlistname", $dec_quotes, $dec_charset ) ); } } if ( $cmd == "getlist" && isset( $_REQUEST['output'] ) && !empty( $_REQUEST['output'] ) ) { $output_type = strtolower( $_REQUEST['output'] ); } } else if ( $cmd == "getinfo" ) { if ( isset( $_REQUEST['pwd'] ) && !empty( $_REQUEST['pwd']) ) { $pwd = $_REQUEST['pwd']; } else { // Error - You forgot to provide the password parameter: &pwd=password exit ( @html_entity_decode( "" . $kErr_missingparam_pwd[$lang] . ": &pwd=password", $dec_quotes, $dec_charset ) ); } } else if ( $cmd == "lists" ) { if ( isset( $_REQUEST['email'] ) && !empty( $_REQUEST['email'] ) ) { $email = strtolower( $_REQUEST['email'] ); } if ( isset( $_REQUEST['pwd'] ) && !empty( $_REQUEST['pwd'] ) ) { $pwd = $_REQUEST['pwd']; } } else if ( $cmd == "init" || $cmd == "uninstall" ) { if ( isset( $_REQUEST['pwd'] ) && !empty( $_REQUEST['pwd'] ) ) { $pwd = $_REQUEST['pwd']; } else { // Error - You forgot to provide the password parameter: &pwd=password exit ( @html_entity_decode( "" . $kErr_missingparam_pwd[$lang] . ": &pwd=password", $dec_quotes, $dec_charset ) ); } } else if ( $cmd == "upload" ) { if ( isset( $_REQUEST['pwd'] ) && !empty( $_REQUEST['pwd'] ) ) { $pwd = $_REQUEST['pwd']; } else { // Error - You forgot to provide the password parameter: &pwd=password exit ( @html_entity_decode( "" . $kErr_missingparam_pwd[$lang] . ": &pwd=password", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['action'] ) && !empty( $_REQUEST['action'] ) ) { $action = $_REQUEST['action']; } else { // Error - You forgot to provide the action parameter: &action=action exit ( @html_entity_decode( "" . $kErr_missingparam_act[$lang] . ": &action=action", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['list'] ) && !empty( $_REQUEST['list'] ) ) { $list = $_REQUEST['list']; } else { // Error - You forgot to provide the list name parameter: &list=listname exit ( @html_entity_decode( "" . $kErr_missingparam_lst[$lang] . ": &list=listname", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['return'] ) && !empty( $_REQUEST['return'] ) ) { $return = $_REQUEST['return']; } else { $return = "html"; } if ( isset( $_REQUEST['dups'] ) && !empty( $_REQUEST['dups'] ) ) { $allowdups = $_REQUEST['dups']; } if ( isset( $_REQUEST['msg'] ) && !empty( $_REQUEST['msg'] ) ) { $msg = $_REQUEST['msg']; } if ( isset( $_REQUEST['sub'] ) && !empty( $_REQUEST['sub'] ) ) { $sub = $_REQUEST['sub']; } if ( isset( $_FILES['upload'] ) && !empty( $_FILES['upload']['name'] ) && $_FILES['upload']['size'] > 0 ) { @$upload_Name = $_FILES['upload']['name']; @$upload_Size = $_FILES['upload']['size']; @$upload_Temp = $_FILES['upload']['tmp_name']; @$upload_Mime_Type = $_FILES['upload']['type']; } else { // Error - You forgot to provide the data parameter: &upload=data exit ( @html_entity_decode( "" . $kErr_missingparam_dat[$lang] . ": &upload=data", $dec_quotes, $dec_charset ) ); } } else if ( $cmd == "import" ) { if ( isset( $_REQUEST['pwd'] ) && !empty( $_REQUEST['pwd'] ) ) { $pwd = $_REQUEST['pwd']; } else { // Error - You forgot to provide the password parameter: &pwd=password exit ( @html_entity_decode( "" . $kErr_missingparam_pwd[$lang] . ": &pwd=password", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['action'] ) && !empty( $_REQUEST['action'] ) ) { $action = $_REQUEST['action']; } else { // Error - You forgot to provide the action parameter: &action=action exit ( @html_entity_decode( "" . $kErr_missingparam_act[$lang] . ": &action=action", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['list'] ) && !empty( $_REQUEST['list'] ) ) { $list = $_REQUEST['list']; } else { // Error - You forgot to provide the list name parameter: &list=listname exit ( @html_entity_decode( "" . $kErr_missingparam_lst[$lang] . ": &list=listname", $dec_quotes, $dec_charset ) ); } } else if ( $cmd == "track" || $cmd == "tk" ) { if ( $cmd == "track" ) { if ( isset( $_REQUEST['delivery'] ) && !empty( $_REQUEST['delivery'] ) ) { $delivery = $_REQUEST['delivery']; } if ( isset( $_REQUEST['subject'] ) && !empty( $_REQUEST['subject'] ) ) { $subject = $_REQUEST['subject']; } else { $subject = $kTxt_clicktracker_und[$lang]; } if ( isset( $_REQUEST['firstname'] ) && !empty( $_REQUEST['firstname'] ) ) { $firstname = $_REQUEST['firstname']; } else { $firstname = ""; } if ( isset( $_REQUEST['lastname'] ) && !empty( $_REQUEST['lastname'] ) ) { $lastname = $_REQUEST['lastname']; } else { $lastname = ""; } if ( isset( $_REQUEST['company'] ) && !empty( $_REQUEST['company'] ) ) { $company = $_REQUEST['company']; } else { $company = ""; } if ( isset( $_REQUEST['email'] ) && !empty( $_REQUEST['email'] ) ) { $email = strtolower( $_REQUEST['email'] ); } else { $email = $kTxt_clicktracker_und[$lang]; } if ( isset( $_REQUEST['list'] ) && !empty( $_REQUEST['list'] ) ) { $list = $_REQUEST['list']; } else { $list = $kTxt_clicktracker_und[$lang]; } if ( isset( $_REQUEST['total'] ) && !empty( $_REQUEST['total'] ) ) { $total = $_REQUEST['total']; } if ( isset( $_REQUEST['action'] ) && !empty( $_REQUEST['action'] ) ) { $action = $_REQUEST['action']; } else { $action = "click"; } if ( isset( $_REQUEST['test'] ) && !empty( $_REQUEST['test'] ) ) { $test = $_REQUEST['test']; } else { $test = "no"; } } else { if ( $subject == "" ) { $subject = $kTxt_clicktracker_und[$lang]; } if ( $email == "" ) { $email = $kTxt_clicktracker_und[$lang]; } if ( $list == "" ) { $list = $kTxt_clicktracker_und[$lang]; } if ( $action == "" ) { $action = "click"; } } if ( $action == "click" ) { if ( $cmd == "track" ) { if ( isset( $_REQUEST['fwd'] ) && !empty( $_REQUEST['fwd'] ) ) { $fwd = $_REQUEST['fwd']; } else { $fwd = 'yes'; } if ( isset( $_REQUEST['url'] ) && !empty( $_REQUEST['url'] ) ) { $url = $_REQUEST['url']; } else { $url = $kTxt_clicktracker_und[$lang]; } if ( isset( $_REQUEST['alt'] ) && !empty( $_REQUEST['alt'] ) ) { $alt = $_REQUEST['alt']; } } else { if ( $fwd == "" ) { $fwd = 'yes'; } if ( $url == "" ) { $url = $kTxt_clicktracker_und[$lang]; } } } else if ( $action == "open" ) { $fwd = 'no'; $url = 'open'; $alt = 'Open'; } } else if ( $cmd == "getclicks" ) { if ( isset( $_REQUEST['pwd'] ) && !empty( $_REQUEST['pwd'] ) ) { $pwd = $_REQUEST['pwd']; } else { // Error - You forgot to provide the password parameter: &pwd=password exit ( @html_entity_decode( "" . $kErr_missingparam_pwd[$lang] . ": &pwd=password", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['email'] ) && !empty( $_REQUEST['email'] ) ) { $email = strtolower( $_REQUEST['email'] ); } else { if ( isset( $_REQUEST['delivery'] ) && !empty( $_REQUEST['delivery'] ) ) { $delivery = $_REQUEST['delivery']; } else { // Error - You forgot to provide the delivery number parameter: &delivery=delivery exit ( @html_entity_decode( "" . $kErr_missingparam_del[$lang] . ": &delivery=delivery", $dec_quotes, $dec_charset ) ); } } if ( isset( $_REQUEST['test'] ) && !empty( $_REQUEST['test'] ) ) { $test = $_REQUEST['test']; } else { $test = "no"; } if ( isset( $_REQUEST['output'] ) && !empty( $_REQUEST['output'] ) ) { $output_type = strtolower( $_REQUEST['output'] ); } if ( isset( $_REQUEST['start'] ) && !empty( $_REQUEST['start'] ) ) { $start = $_REQUEST['start']; } else { $start = 0; } if ( isset( $_REQUEST['return'] ) && !empty( $_REQUEST['return'] ) ) { $return = $_REQUEST['return']; } else { $return = "xml"; } } else if ( $cmd == "deliveries" ) { if ( isset( $_REQUEST['pwd'] ) && !empty( $_REQUEST['pwd'] ) ) { $pwd = $_REQUEST['pwd']; } else { // Error - You forgot to provide the password parameter: &pwd=password exit ( @html_entity_decode( "" . $kErr_missingparam_pwd[$lang] . ": &pwd=password", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['email'] ) && !empty( $_REQUEST['email'] ) ) { $email = strtolower( $_REQUEST['email'] ); } if ( isset( $_REQUEST['test'] ) && !empty( $_REQUEST['test'] ) ) { $test = $_REQUEST['test']; } else { $test = "no"; } } else if ( $cmd == "getofflist" || $cmd == "getlocactlist" ) { if ( isset( $_REQUEST['listid'] ) ) { $listid = $_REQUEST['listid']; } else { // Error - You forgot to provide the list name parameter: &listid=listID exit ( @html_entity_decode( "" . $kErr_missingparam_lst[$lang] . ": &listid=listID", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['pwd'] ) && !empty( $_REQUEST['pwd'] ) ) { $pwd = $_REQUEST['pwd']; } else { // Error - You forgot to provide the password parameter: &pwd=password exit ( @html_entity_decode( "" . $kErr_missingparam_pwd[$lang] . ": &pwd=password", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['list'] ) && !empty( $_REQUEST['list'] ) ) { $list = base64_decode( $_REQUEST['list'] ); } if ( isset( $_REQUEST['return'] ) && !empty( $_REQUEST['return'] ) ) { $return = $_REQUEST['return']; } else { $return = "xml"; } if ( isset( $_REQUEST['output'] ) && !empty( $_REQUEST['output'] ) ) { $output_type = strtolower( $_REQUEST['output'] ); } } else { // Error - Command '$cmd' not supported. exit ( @html_entity_decode( "" . str_replace( "[CMD]", "'" . $cmd . "'", $kErr_missingparam_cmn[$lang] ) . "", $dec_quotes, $dec_charset ) ); } if ( !isset( $_REQUEST['pwd'] ) ) { $pwd = ""; } //-- PRE-PROCESS --------------------------------------------------------------- $path_to_script = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; if ( isset( $_REQUEST['list'] ) && !empty( $_REQUEST['list'] ) ) { $listfordisplay = formatlistnames( $list ); } else { $listfordisplay = ""; } $ext_list = ".txt"; $ext_list_in = ".in"; $ext_list_out = ".out"; $ext_list_lock = ".lock"; $ext_click = ".txt"; $ext_click_lock = ".lock"; $ext_click_test = ".test"; $writebom = false; $utf8_bom = "\xEF\xBB\xBF"; $mysql_link = false; $mysql_err = ""; $mysql_charset = ""; // Folder path definitions moved to the settings file $page_header = LoadFileContentsAstext( $path_to_templates . "/pageheader.html" ); $page_footer = LoadFileContentsAstext( $path_to_templates . "/pagefooter.html" ); $msg_subscribe = LoadFileContentsAsText( $path_to_templates . "/" . $lang . "/msg_subscribe.txt" ); $msg_confirmation = LoadFileContentsAsText( $path_to_templates . "/" . $lang . "/msg_confirmation.txt" ); $msg_unsubscribe = LoadFileContentsAsText( $path_to_templates . "/" . $lang . "/msg_unsubscribe.txt" ); // Create all the directories if ( $use_mysql == 0 ) { CreateDirectory( $path_to_lists ); CreateDirectory( $path_to_traffic ); CreateDirectory( $path_by_delivery ); CreateDirectory( $path_by_recipient ); } CreateDirectory( $path_to_requests ); CreateDirectory( $path_to_mailqueue ); CreateDirectory( $path_to_sqlqueue ); CreateDirectory( $path_to_templates ); CreateDirectory( $path_to_uploads ); CreateDirectory( $path_to_imports ); $mlm_err = "Unhandled Error"; //-- COMMAND PROCESSOR --------------------------------------------------------- if ($cmd == "subscribe") { If ( count( explode( ";", $list ) ) == 1 && email_exists( $list, $email ) ) { If ( $pwd == $admin_password ) { // Error - The email address '$email' is already subscribed to '$list'. echo @html_entity_decode( "" . str_replace( "
stanbusk said:You have to do that with your web browser actually. Lots of commands can be run with a browser.
OK I did that, I get the error message:
Error - You forgot to provide the command parameter: &cmd=command exit ( @html_entity_decode( "" . $kErr_missingparam_cmd[$lang] . ": &cmd=command", $dec_quotes, $dec_charset ) ); } if ( $cmd == "confirm" ) { If ( isset( $_REQUEST['key'] ) && !empty( $_REQUEST['key'] ) ) { $key = $_REQUEST['key']; } else { // Error - The key argument is missing. exit ( @html_entity_decode( "" . $kErr_missingparam_key[$lang] . ": &key=reference", $dec_quotes, $dec_charset ) ); } } else if ( $cmd == "subscribe" || $cmd == "unsubscribe" || $cmd == "un" || $cmd == "update" ) { if ( $cmd == "subscribe" || $cmd == "unsubscribe" || $cmd == "update" ) { if ( isset( $_REQUEST['list'] ) && !empty( $_REQUEST['list'] ) ) { $list = $_REQUEST['list']; } else { if ( $cmd == "unsubscribe") { // Do nothing - No list = All lists } else { // Error - You forgot to provide the list name parameter: &list=listname exit ( @html_entity_decode( "" . $kErr_missingparam_lst[$lang] . ": &list=listname", $dec_quotes, $dec_charset ) ); } } if ( isset( $_REQUEST['email'] ) && !empty( $_REQUEST['email'] ) ) { $email = strtolower( $_REQUEST['email'] ); } else { // Error - You forgot to provide the email address parameter: &email=emailaddress exit ( @html_entity_decode( "" . $kErr_missingparam_adr[$lang] . ": &email=emailaddress", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['pwd'] ) && !empty( $_REQUEST['pwd'] ) ) { $pwd = $_REQUEST['pwd']; } if ( isset( $_REQUEST['firstname'] ) && !empty( $_REQUEST['firstname'] ) ) { $firstname = $_REQUEST['firstname']; } if ( isset( $_REQUEST['lastname'] ) && !empty( $_REQUEST['lastname'] ) ) { $lastname = $_REQUEST['lastname']; } if ( isset( $_REQUEST['company'] ) && !empty( $_REQUEST['company'] ) ) { $company = $_REQUEST['company']; } if ( isset( $_REQUEST['opt1'] ) && !empty( $_REQUEST['opt1'] ) ) { $opt1 = $_REQUEST['opt1']; } if ( isset( $_REQUEST['opt2'] ) && !empty( $_REQUEST['opt2'] ) ) { $opt2 = $_REQUEST['opt2']; } if ( isset( $_REQUEST['opt3'] ) && !empty( $_REQUEST['opt3'] ) ) { $opt3 = $_REQUEST['opt3']; } if ( isset( $_REQUEST['opt4'] ) && !empty( $_REQUEST['opt4'] ) ) { $opt4 = $_REQUEST['opt4']; } if ( isset( $_REQUEST['opt5'] ) && !empty( $_REQUEST['opt5'] ) ) { $opt5 = $_REQUEST['opt5']; } if ( isset( $_REQUEST['opt6'] ) && !empty( $_REQUEST['opt6'] ) ) { $opt6 = $_REQUEST['opt6']; } if ( isset( $_REQUEST['opt7'] ) && !empty( $_REQUEST['opt7'] ) ) { $opt7 = $_REQUEST['opt7']; } if ( isset( $_REQUEST['opt8'] ) && !empty( $_REQUEST['opt8'] ) ) { $opt8 = $_REQUEST['opt8']; } if ( isset( $_REQUEST['opt9'] ) && !empty( $_REQUEST['opt9'] ) ) { $opt9 = $_REQUEST['opt9']; } if ( isset( $_REQUEST['opt10'] ) && !empty( $_REQUEST['opt10'] ) ) { $opt10 = $_REQUEST['opt10']; } if ( isset( $_REQUEST['opt11'] ) && !empty( $_REQUEST['opt11'] ) ) { $opt11 = $_REQUEST['opt11']; } if ( isset( $_REQUEST['opt12'] ) && !empty( $_REQUEST['opt12'] ) ) { $opt12 = $_REQUEST['opt12']; } if ( isset( $_REQUEST['opt13'] ) && !empty( $_REQUEST['opt13'] ) ) { $opt13 = $_REQUEST['opt13']; } if ( isset( $_REQUEST['opt14'] ) && !empty( $_REQUEST['opt14'] ) ) { $opt14 = $_REQUEST['opt14']; } if ( isset( $_REQUEST['opt15'] ) && !empty( $_REQUEST['opt15'] ) ) { $opt15 = $_REQUEST['opt15']; } if ( isset( $_REQUEST['opt16'] ) && !empty( $_REQUEST['opt16'] ) ) { $opt16 = $_REQUEST['opt16']; } if ( isset( $_REQUEST['opt17'] ) && !empty( $_REQUEST['opt17'] ) ) { $opt17 = $_REQUEST['opt17']; } if ( isset( $_REQUEST['opt18'] ) && !empty( $_REQUEST['opt18'] ) ) { $opt18 = $_REQUEST['opt18']; } if ( isset( $_REQUEST['opt19'] ) && !empty( $_REQUEST['opt19'] ) ) { $opt19 = $_REQUEST['opt19']; } if ( isset( $_REQUEST['opt20'] ) && !empty( $_REQUEST['opt20'] ) ) { $opt20 = $_REQUEST['opt20']; } } else if ( $cmd == "un" ) { if ( $action == "unsubscribe" ) { $fwd = 'no'; $url = 'unsubscribe'; $alt = 'Unsubscribe'; } } if ( isset( $_REQUEST['return'] ) && !empty( $_REQUEST['return'] ) ) { $return = $_REQUEST['return']; } else { $return = "html"; } if ( isset( $_REQUEST['local'] ) && !empty( $_REQUEST['local'] ) ) { $local = $_REQUEST['local']; } else { $local = "no"; } } else if ( $cmd == "getlist" || $cmd == "createlist" || $cmd == "removelist" || $cmd == "renamelist" ) { if ( isset( $_REQUEST['list'] ) && !empty( $_REQUEST['list'] ) ) { //if ( isset( $_REQUEST['list'] ) ) { $list = $_REQUEST['list']; } else { // Error - You forgot to provide the list name parameter: &list=listname exit ( @html_entity_decode( "" . $kErr_missingparam_lst[$lang] . ": &list=listname", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['pwd'] ) && !empty( $_REQUEST['pwd'] ) ) { $pwd = $_REQUEST['pwd']; } else { // Error - You forgot to provide the password parameter: &pwd=password exit ( @html_entity_decode( "" . $kErr_missingparam_pwd[$lang] . ": &pwd=password", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['return'] ) && !empty( $_REQUEST['return'] ) ) { $return = $_REQUEST['return']; } else { $return = "html"; } if ( $cmd == "renamelist" ) { if ( isset( $_REQUEST['name'] ) && !empty( $_REQUEST['name'] ) ) { $name = $_REQUEST['name']; } else { // Error - You forgot to provide the new list name parameter: &name=newlistname exit ( @html_entity_decode( "" . $kErr_missingparam_nna[$lang] . ": &name=newlistname", $dec_quotes, $dec_charset ) ); } } if ( $cmd == "getlist" && isset( $_REQUEST['output'] ) && !empty( $_REQUEST['output'] ) ) { $output_type = strtolower( $_REQUEST['output'] ); } } else if ( $cmd == "getinfo" ) { if ( isset( $_REQUEST['pwd'] ) && !empty( $_REQUEST['pwd']) ) { $pwd = $_REQUEST['pwd']; } else { // Error - You forgot to provide the password parameter: &pwd=password exit ( @html_entity_decode( "" . $kErr_missingparam_pwd[$lang] . ": &pwd=password", $dec_quotes, $dec_charset ) ); } } else if ( $cmd == "lists" ) { if ( isset( $_REQUEST['email'] ) && !empty( $_REQUEST['email'] ) ) { $email = strtolower( $_REQUEST['email'] ); } if ( isset( $_REQUEST['pwd'] ) && !empty( $_REQUEST['pwd'] ) ) { $pwd = $_REQUEST['pwd']; } } else if ( $cmd == "init" || $cmd == "uninstall" ) { if ( isset( $_REQUEST['pwd'] ) && !empty( $_REQUEST['pwd'] ) ) { $pwd = $_REQUEST['pwd']; } else { // Error - You forgot to provide the password parameter: &pwd=password exit ( @html_entity_decode( "" . $kErr_missingparam_pwd[$lang] . ": &pwd=password", $dec_quotes, $dec_charset ) ); } } else if ( $cmd == "upload" ) { if ( isset( $_REQUEST['pwd'] ) && !empty( $_REQUEST['pwd'] ) ) { $pwd = $_REQUEST['pwd']; } else { // Error - You forgot to provide the password parameter: &pwd=password exit ( @html_entity_decode( "" . $kErr_missingparam_pwd[$lang] . ": &pwd=password", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['action'] ) && !empty( $_REQUEST['action'] ) ) { $action = $_REQUEST['action']; } else { // Error - You forgot to provide the action parameter: &action=action exit ( @html_entity_decode( "" . $kErr_missingparam_act[$lang] . ": &action=action", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['list'] ) && !empty( $_REQUEST['list'] ) ) { $list = $_REQUEST['list']; } else { // Error - You forgot to provide the list name parameter: &list=listname exit ( @html_entity_decode( "" . $kErr_missingparam_lst[$lang] . ": &list=listname", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['return'] ) && !empty( $_REQUEST['return'] ) ) { $return = $_REQUEST['return']; } else { $return = "html"; } if ( isset( $_REQUEST['dups'] ) && !empty( $_REQUEST['dups'] ) ) { $allowdups = $_REQUEST['dups']; } if ( isset( $_REQUEST['msg'] ) && !empty( $_REQUEST['msg'] ) ) { $msg = $_REQUEST['msg']; } if ( isset( $_REQUEST['sub'] ) && !empty( $_REQUEST['sub'] ) ) { $sub = $_REQUEST['sub']; } if ( isset( $_FILES['upload'] ) && !empty( $_FILES['upload']['name'] ) && $_FILES['upload']['size'] > 0 ) { @$upload_Name = $_FILES['upload']['name']; @$upload_Size = $_FILES['upload']['size']; @$upload_Temp = $_FILES['upload']['tmp_name']; @$upload_Mime_Type = $_FILES['upload']['type']; } else { // Error - You forgot to provide the data parameter: &upload=data exit ( @html_entity_decode( "" . $kErr_missingparam_dat[$lang] . ": &upload=data", $dec_quotes, $dec_charset ) ); } } else if ( $cmd == "import" ) { if ( isset( $_REQUEST['pwd'] ) && !empty( $_REQUEST['pwd'] ) ) { $pwd = $_REQUEST['pwd']; } else { // Error - You forgot to provide the password parameter: &pwd=password exit ( @html_entity_decode( "" . $kErr_missingparam_pwd[$lang] . ": &pwd=password", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['action'] ) && !empty( $_REQUEST['action'] ) ) { $action = $_REQUEST['action']; } else { // Error - You forgot to provide the action parameter: &action=action exit ( @html_entity_decode( "" . $kErr_missingparam_act[$lang] . ": &action=action", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['list'] ) && !empty( $_REQUEST['list'] ) ) { $list = $_REQUEST['list']; } else { // Error - You forgot to provide the list name parameter: &list=listname exit ( @html_entity_decode( "" . $kErr_missingparam_lst[$lang] . ": &list=listname", $dec_quotes, $dec_charset ) ); } } else if ( $cmd == "track" || $cmd == "tk" ) { if ( $cmd == "track" ) { if ( isset( $_REQUEST['delivery'] ) && !empty( $_REQUEST['delivery'] ) ) { $delivery = $_REQUEST['delivery']; } if ( isset( $_REQUEST['subject'] ) && !empty( $_REQUEST['subject'] ) ) { $subject = $_REQUEST['subject']; } else { $subject = $kTxt_clicktracker_und[$lang]; } if ( isset( $_REQUEST['firstname'] ) && !empty( $_REQUEST['firstname'] ) ) { $firstname = $_REQUEST['firstname']; } else { $firstname = ""; } if ( isset( $_REQUEST['lastname'] ) && !empty( $_REQUEST['lastname'] ) ) { $lastname = $_REQUEST['lastname']; } else { $lastname = ""; } if ( isset( $_REQUEST['company'] ) && !empty( $_REQUEST['company'] ) ) { $company = $_REQUEST['company']; } else { $company = ""; } if ( isset( $_REQUEST['email'] ) && !empty( $_REQUEST['email'] ) ) { $email = strtolower( $_REQUEST['email'] ); } else { $email = $kTxt_clicktracker_und[$lang]; } if ( isset( $_REQUEST['list'] ) && !empty( $_REQUEST['list'] ) ) { $list = $_REQUEST['list']; } else { $list = $kTxt_clicktracker_und[$lang]; } if ( isset( $_REQUEST['total'] ) && !empty( $_REQUEST['total'] ) ) { $total = $_REQUEST['total']; } if ( isset( $_REQUEST['action'] ) && !empty( $_REQUEST['action'] ) ) { $action = $_REQUEST['action']; } else { $action = "click"; } if ( isset( $_REQUEST['test'] ) && !empty( $_REQUEST['test'] ) ) { $test = $_REQUEST['test']; } else { $test = "no"; } } else { if ( $subject == "" ) { $subject = $kTxt_clicktracker_und[$lang]; } if ( $email == "" ) { $email = $kTxt_clicktracker_und[$lang]; } if ( $list == "" ) { $list = $kTxt_clicktracker_und[$lang]; } if ( $action == "" ) { $action = "click"; } } if ( $action == "click" ) { if ( $cmd == "track" ) { if ( isset( $_REQUEST['fwd'] ) && !empty( $_REQUEST['fwd'] ) ) { $fwd = $_REQUEST['fwd']; } else { $fwd = 'yes'; } if ( isset( $_REQUEST['url'] ) && !empty( $_REQUEST['url'] ) ) { $url = $_REQUEST['url']; } else { $url = $kTxt_clicktracker_und[$lang]; } if ( isset( $_REQUEST['alt'] ) && !empty( $_REQUEST['alt'] ) ) { $alt = $_REQUEST['alt']; } } else { if ( $fwd == "" ) { $fwd = 'yes'; } if ( $url == "" ) { $url = $kTxt_clicktracker_und[$lang]; } } } else if ( $action == "open" ) { $fwd = 'no'; $url = 'open'; $alt = 'Open'; } } else if ( $cmd == "getclicks" ) { if ( isset( $_REQUEST['pwd'] ) && !empty( $_REQUEST['pwd'] ) ) { $pwd = $_REQUEST['pwd']; } else { // Error - You forgot to provide the password parameter: &pwd=password exit ( @html_entity_decode( "" . $kErr_missingparam_pwd[$lang] . ": &pwd=password", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['email'] ) && !empty( $_REQUEST['email'] ) ) { $email = strtolower( $_REQUEST['email'] ); } else { if ( isset( $_REQUEST['delivery'] ) && !empty( $_REQUEST['delivery'] ) ) { $delivery = $_REQUEST['delivery']; } else { // Error - You forgot to provide the delivery number parameter: &delivery=delivery exit ( @html_entity_decode( "" . $kErr_missingparam_del[$lang] . ": &delivery=delivery", $dec_quotes, $dec_charset ) ); } } if ( isset( $_REQUEST['test'] ) && !empty( $_REQUEST['test'] ) ) { $test = $_REQUEST['test']; } else { $test = "no"; } if ( isset( $_REQUEST['output'] ) && !empty( $_REQUEST['output'] ) ) { $output_type = strtolower( $_REQUEST['output'] ); } if ( isset( $_REQUEST['start'] ) && !empty( $_REQUEST['start'] ) ) { $start = $_REQUEST['start']; } else { $start = 0; } if ( isset( $_REQUEST['return'] ) && !empty( $_REQUEST['return'] ) ) { $return = $_REQUEST['return']; } else { $return = "xml"; } } else if ( $cmd == "deliveries" ) { if ( isset( $_REQUEST['pwd'] ) && !empty( $_REQUEST['pwd'] ) ) { $pwd = $_REQUEST['pwd']; } else { // Error - You forgot to provide the password parameter: &pwd=password exit ( @html_entity_decode( "" . $kErr_missingparam_pwd[$lang] . ": &pwd=password", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['email'] ) && !empty( $_REQUEST['email'] ) ) { $email = strtolower( $_REQUEST['email'] ); } if ( isset( $_REQUEST['test'] ) && !empty( $_REQUEST['test'] ) ) { $test = $_REQUEST['test']; } else { $test = "no"; } } else if ( $cmd == "getofflist" || $cmd == "getlocactlist" ) { if ( isset( $_REQUEST['listid'] ) ) { $listid = $_REQUEST['listid']; } else { // Error - You forgot to provide the list name parameter: &listid=listID exit ( @html_entity_decode( "" . $kErr_missingparam_lst[$lang] . ": &listid=listID", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['pwd'] ) && !empty( $_REQUEST['pwd'] ) ) { $pwd = $_REQUEST['pwd']; } else { // Error - You forgot to provide the password parameter: &pwd=password exit ( @html_entity_decode( "" . $kErr_missingparam_pwd[$lang] . ": &pwd=password", $dec_quotes, $dec_charset ) ); } if ( isset( $_REQUEST['list'] ) && !empty( $_REQUEST['list'] ) ) { $list = base64_decode( $_REQUEST['list'] ); } if ( isset( $_REQUEST['return'] ) && !empty( $_REQUEST['return'] ) ) { $return = $_REQUEST['return']; } else { $return = "xml"; } if ( isset( $_REQUEST['output'] ) && !empty( $_REQUEST['output'] ) ) { $output_type = strtolower( $_REQUEST['output'] ); } } else { // Error - Command '$cmd' not supported. exit ( @html_entity_decode( "" . str_replace( "[CMD]", "'" . $cmd . "'", $kErr_missingparam_cmn[$lang] ) . "", $dec_quotes, $dec_charset ) ); } if ( !isset( $_REQUEST['pwd'] ) ) { $pwd = ""; } //-- PRE-PROCESS --------------------------------------------------------------- $path_to_script = "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']; if ( isset( $_REQUEST['list'] ) && !empty( $_REQUEST['list'] ) ) { $listfordisplay = formatlistnames( $list ); } else { $listfordisplay = ""; } $ext_list = ".txt"; $ext_list_in = ".in"; $ext_list_out = ".out"; $ext_list_lock = ".lock"; $ext_click = ".txt"; $ext_click_lock = ".lock"; $ext_click_test = ".test"; $writebom = false; $utf8_bom = "\xEF\xBB\xBF"; $mysql_link = false; $mysql_err = ""; $mysql_charset = ""; // Folder path definitions moved to the settings file $page_header = LoadFileContentsAstext( $path_to_templates . "/pageheader.html" ); $page_footer = LoadFileContentsAstext( $path_to_templates . "/pagefooter.html" ); $msg_subscribe = LoadFileContentsAsText( $path_to_templates . "/" . $lang . "/msg_subscribe.txt" ); $msg_confirmation = LoadFileContentsAsText( $path_to_templates . "/" . $lang . "/msg_confirmation.txt" ); $msg_unsubscribe = LoadFileContentsAsText( $path_to_templates . "/" . $lang . "/msg_unsubscribe.txt" ); // Create all the directories if ( $use_mysql == 0 ) { CreateDirectory( $path_to_lists ); CreateDirectory( $path_to_traffic ); CreateDirectory( $path_by_delivery ); CreateDirectory( $path_by_recipient ); } CreateDirectory( $path_to_requests ); CreateDirectory( $path_to_mailqueue ); CreateDirectory( $path_to_sqlqueue ); CreateDirectory( $path_to_templates ); CreateDirectory( $path_to_uploads ); CreateDirectory( $path_to_imports ); $mlm_err = "Unhandled Error"; //-- COMMAND PROCESSOR --------------------------------------------------------- if ($cmd == "subscribe") { If ( count( explode( ";", $list ) ) == 1 && email_exists( $list, $email ) ) { If ( $pwd == $admin_password ) { // Error - The email address '$email' is already subscribed to '$list'. echo @html_entity_decode( "" . str_replace( "