replace example.php

Replace Example.php file at whmcs/includes/hooks/



Create 2 tables under whmcs database.


Replace your api and other credentials with replace all option.

CREATE TABLE IF NOT EXISTS `mod_smsaddon_logs` (
  `id` bigint(255) NOT NULL AUTO_INCREMENT,
  `time` longtext NOT NULL,
  `client` longtext,
  `mobilenumber` longtext,
  `result` longtext NOT NULL,
  `text` longtext,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=24 ;




CREATE TABLE IF NOT EXISTS `mod_smsaddon` (
  `id` bigint(255) NOT NULL AUTO_INCREMENT,
  `yenifatura` tinyint(1) NOT NULL DEFAULT '0',
  `changepass` tinyint(1) NOT NULL DEFAULT '0',
  `orders` tinyint(1) NOT NULL DEFAULT '0',
  `newticket` tinyint(1) NOT NULL DEFAULT '0',
  `ticketreply` tinyint(1) NOT NULL DEFAULT '0',
  `ordersadmin` tinyint(1) NOT NULL DEFAULT '0',
  `newticketadmin` tinyint(1) NOT NULL DEFAULT '0',
  `ticketreplyadmin` tinyint(1) NOT NULL DEFAULT '0',
  `adminmobile` longtext,
  `businessname` longtext,
  `sender` longtext,
  `mobilenumberfield` longtext,
  `notificationfield` longtext,
  `api_id` longtext,
  `username` longtext,
  `password` longtext,
  `unicode` tinyint(1) NOT NULL DEFAULT '0',
  `hayiralani` longtext,
  `version` longtext,
  `senderforce` tinyint(1) NOT NULL DEFAULT '0',
  `modulecreate` tinyint(1) NOT NULL DEFAULT '0',
  `modulecreatetext` longtext,
  `licencekey` longtext,
  `passwordchangetxt` longtext,
  `ticketopentxtclient` longtext,
  `ticketopentxtadmin` longtext,
  `ticketreplytext` longtext,
  `ticketreplytextadmin` longtext,
  `siparistextclient` longtext,
  `siparistextadmin` longtext,
  `faturatextclient` longtext,
  `numbercorrection` tinyint(1) NOT NULL DEFAULT '0',
  `countrycode` longtext,
  `leadingzeros` longtext,
  `clickatell` tinyint(1) NOT NULL DEFAULT '1',
  `baseurl` longtext,
  `toparameter` longtext,
  `textparameter` longtext,
  `usernameparameter` longtext,
  `passwordparameter` longtext,
  `usernamevalue` longtext,
  `passwordvalue` longtext,
  `customparameter1` longtext,
  `customvalue1` longtext,
  `customparameter2` longtext,
  `customvalue2` longtext,
  `customparameter3` longtext,
  `customvalue3` longtext,
  `customparameter4` longtext,
  `customvalue4` longtext,
  `customparameter5` longtext,
  `customvalue5` longtext,
  `logsperpage` bigint(255) DEFAULT '50',
  `domainxdays` bigint(255) DEFAULT '0',
  `domainxdaystext` longtext,
  `modulesuspend` tinyint(1) NOT NULL DEFAULT '0',
  `modulesuspendtext` longtext,
  `duefatura` tinyint(1) NOT NULL DEFAULT '0',
  `duefaturatext` longtext,
  `customunicode` tinyint(1) NOT NULL DEFAULT '0',
  `scriptlisanssenderid` longtext,
  `scriptlisansunicode` tinyint(1) NOT NULL DEFAULT '0',
  `urgency1` longtext,
  `urgency2` longtext,
  `urgency3` longtext,
  PRIMARY KEY (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;