download aliasadd.php
Language: PHP
LOC: 72
Project Info
Total ISP(total-isp)
Server: SourceForge
Type: cvs
...orge\t\total‑isp\total‑isp\
   abn.php
   addnew.php
   addnote.php
   addpay.php
   addsub.php
   addtime.php
   aliasadd.php
   answer.php
   approvelink.php
   ask.php
   autobill.php
   autobillpost.php
   backuplink.php
   batchtax.php
   Blocks-check.php
   Blocks-oldmail.php
   buildmenu.php
   business-check.php
   buytime.php
   cachemgr.php
   callanalysis.php
   calls.php
   callweekall.php
   ccemail.php
   changes.php
   checkmail.php
   cli.php
   clicheck.php
   config.php
   createwebdir.php
   credit.php
   creditpost.php
   cvimage.php
   dbspec.sql
   dealer.php
   dealeredit.php
   dealereditsave.php
   dealermenu.php
   dealerspecial-check.php
   dealerspecial.php
   dealersummary.php
   dig.php
   dnstest.php
   domainadd.php
   dschurn.php
   dsused.php
   edit.php
   editadd.php
   emailip.php
   expire.php
   extraadd.php
   faq.php
   firstpayments.php
   fixedip.dat
   fixedip.ph
   fixedip.php
   frames.php
   frconten.php
   frmain.php
   getcall.php
   gstinc.inc.php
   gsttest.php
   hms.inc.php
   index.php
   invoicepost.php
   invoices.php
   IPAD-check.php
   ipadmail.dat
   jump.php
   kick.php
   kickall.php
   killed.php
   lastaccess.php
   lastcall.php
   lastpasswords.php
   list.php
   listpay.php
   listpurchase-cash.php
   listpurchase-cheque.php
   listpurchase-code.php
   listpurchase-dupes.php
   listpurchase-exact.php
   listpurchase-group.php
   listpurchase-summary.php
   listpurchase-supplier.php
   ...purchase-unapproved.php
   listpurchase.php
   lm.inc.php
   loginfail.php
   mail.php
   mailadd.php
   mailusr.php
   monthpurch.php
   mysql.inc.php
   names.php
   newcustomer.php
   nextcall.php
   nosubs.php
   orphans.php
   password.php
   payimage.php
   payment.php
   payreport.php
   payview.php
   pdf-daily-sum.php
   pdfprint.inc.php
   permanent-check.php
   phpinfo.php
   phptest.php
   ping.php
   purchase-delete.php
   purchaseedit.php
   purchaseindex.php
   purchasing.php
   qchar.php
   radiususers.php
   radtest.php
   reallysure.php
   recall.php
   redir.php
   report.php
   reseller-check.php
   resellview.php
   sampledata.sql
   searchfaq.php
   searchfaqres.php
   sendmail.php
   staff.php
   subedit.php
   subeditadd.php
   submituser.php
   subnames.php
   taxpdf.php
   testbatch.php
   testpdf-day.php
   testpost.php
   testtaxpdf.php
   testuser.php
   testwho.php
   thundermail.php
   tigris.php
   time1.inc.php
   timetest.php
   top.php
   unanswered.php
   unlimited-3mth-check.php
   unlimited-check.php
   unlimited-stats.php
   unlimitedpartition.php
   uploadmailhdr.php
   user.php
   viewnotes.php
   visp.inc.php
   webadd.php
   weblinks.php
   WebSite-check.php
   weeknotes.php
   weekuser.php
   who.php
   whoip.php
   whoverify.php

<?
include "./auth.inc.php";

if (!$alias){
	print "Please give a name";
	exit;

}

if (!$VISP){
	print "VISP Error.";
	exit;
}

if (!$existacc && !$approved){
	print "Exist Error.";
	exit;
}

if (!$username || !$uvisp){

	$ex=split(":",$existacc);
	$username=$ex[0];
	$uvisp=$ex[1];
	if (!$username){
		print "username?";
		exit;
	}
}

include "./mysql.inc.php";
$tsql="SELECT VISP FROM SubAccounts WHERE Login='$alias'";
$res=mysql_query($tsql);
if ($res && !$approved){
  if ($vispt=mysql_fetch_row($res))
	{
	if ($vispt[0]==$VISP){
		print "Email Address already exists.";
		exit;
	}else{
		print "<B>Warning:</B> Username already in use on a different VISP.<BR>";
	}
  }
}
if (!$uvisp){
	print "Existing account has no VISP?";
	exit;
}
if (!$CustomerID){
	print "SELECT a user";
	exit;
}
if ($approved){

	$usql="INSERT INTO
	SubAccounts(CustomerID,Login,Password,AccountType,VISP,AliasID,nomail)
	VALUES('$CustomerID','$alias','$username','Alias','$VISP','$uvisp',1)";

	mysql_query($usql);

	if (mysql_error()){
		print $usql;
		print "<BR>";
		print mysql_error();
		exit;
	}
	.inc.php.php.php.php.php.phplude "./lm.inc";

	$message=urlencode("Alias Added Successfully");
	$purchase=urlencode("Email Alias");
	header("Location: addtime.php?purchase=$purchase&cost=0&message=$message");
	exit;
}
print ".";
?><FORM>
Add Alias <B><? echo $alias; ?></B> to Account: <? echo $username; ?>.
<input type=hidden name="VISP" value="<? echo $VISP ?>">
<input type=hidden name=uvisp value="<? echo $uvisp ?>">
<input type=hidden name=alias value="<? echo $alias ?>">
<input type=hidden name=username value="<? echo $username ?>">
<input type=hidden name=approved value="1">
<input type=submit value="Add Email Alias">
</FORM>

About Koders | Resources | Downloads | Support | Black Duck | Submit Project | Terms of Service | DMCA | Privacy Policy | Site Map| Contact Us