User Tools

Site Tools


subscription

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
subscription [2021/01/10 17:19] adminsubscription [2026/03/21 10:12] (current) – external edit 127.0.0.1
Line 1: Line 1:
-====== Subscriptions ======+====== Subscription ======
  
  
-There are 3 options to use the script: Subscription, Paid and Free+SmartCJ is available in three versions: Subscription, Paidand Free. They have identical features—the only difference is the payment model.
  
-There's no limitations in script's functionality, just a way to pay+**Subscription**
  
-**Subscription** +How it works:
  
-How to use+1. http://smartcj.com/forum/portal.php?action=domains add domains, as many as you want
  
-1. http://smartcj.com/forum/portal.php?action=domains - add domains , as many as you want+2. http://smartcj.com/forum/portal.php?action=add_funds add funds
  
-2. http://smartcj.com/forum/portal.php?action=add_funds add money+3In http://smartcj.com/forum/portal.php?action=domains opposite each domain there are 2 links - buy a license or subscription.
  
-3В  http://smartcj.com/forum/portal.php?action=domains There are 2 links right next to domain's name+When you click on the subscription - $5.99 per month is deducted from the account.
  
-When you click at Subscription your account will be charged $4.99 and a new license is being generated. It takes some time so please, be patient. When the process is done new license will be sent to your email and also available for download at http://smartcj.com/forum/portal.php?action=domains. Also once a day the script checks if there'a new key for your domain, so even if you don't upload paid license , the script will download it automatically.+When you click on the subscription button the subscription amount is deducted from the account and a task is created to generate a new license.
  
-Subscription licenses are limited by date. Let's say today is 5 of Nov, so subscription expires at 5 Dec. If you don't cancel it will 5th of Dec , we will charge you 4.99 and generate a new licenseIn fact real lifetime of a license is 2 days longer (till 7 Dec in our example)so if you copy can cot connect to server for some reason - it will try 2 more times and if it fails it will start to work as a regular free version.+After the license is generated it is immediately sent to you by email and you can also download it at http://smartcj.com/forum/portal.php?action=domainsWhen you upload the license to the scj folderthe "Free version" text will disappear on Home, the script will stop taking 1%.
  
 +However, to make it easier, the script checks once a day to see if there is a new license for it and, if there is, downloads it. That is, with a subscription you can do nothing at all manually, the script will do everything itself, but it will not be instant.
  
-**Subscriptions for version 1.х**+The subscription license is limited by date, let's say today is November 5, the license expires December 5. If by the 5th you don't cancel the subscription, then on the 5th the script will check if there is $4.99 in your account and if there is, it will generate a new license for another month.
  
-You can also use subscription mechanism for version 1.X and that'the only reason to release new update 52 (version 1.52) so it can automatically download new licenses.+In fact, the license is generated with 2-day margin (i.e. until December 7 in our example). This is done so that if something happens on the 1st and the script can't pull the license, it still has 2 more attempts to do so. If it can't pull it - it will automatically rename scj2.free.lic to scj2.lic and this domain will start working as a regular free version.
  
-You can use the same license file with version 1.51 but you have to upload license files manually. +**Subscription for version 1.x**
  
-**The license key should be in scj folder** +For version it is available the same as for version 2.x 
 +After you clicked on subscription you will receive immediately 2 keys - for version 1 and 2 respectively.
  
 +For version 1, update 1.52 was added.
 +The only change in it is changing cron.php so that it could check for licenses automatically.
  
 +You can use the subscription in version 1.51 as well - the difference will only be that you will need to upload licenses manually.
  
-====== Subscription ======+**Free** - takes 1% from all clicks and sells them on trafficholder.com
  
 +**Paid** - paid version, prices at http://smartcj.com/buysmartcj.shtml. Takes nothing, free updates within one branch
  
-Скрипт существует в 3х вариантах:  Subscription, Paid and Free+**License Transfer** - the license is transferred only if the domain expires and you can register it again.
  
-Они никак не отличаются функционаломразница только в оплате.+**Subscription Transfer** - it's simple here if you don't need a subscription on domain A you cancel it thereand enable it for domain B.
  
-**Subscription** +**Where to upload the key** - the key is stored in the scj folder, if you upload it manually then that's where you should put it. 
 + For version 1 this is scj_pro.lic, for version 2 - scj2.lic 
 +====== FAQ ======
  
-Как это работает: 
  
-1. http://smartcj.com/forum/portal.php?action=domains добавляем домены, сколько угодно+===== Still free version =====
  
-2. http://smartcj.com/forum/portal.php?action=add_funds добавляем деньги +"I waited half an hour and the script still says this is a free copy"the script checks once a day at a random time so the load is evenIf you need it "right now" you can upload the key manually.
  
-3. В  http://smartcj.com/forum/portal.php?action=domains напротив каждого домена 2 ссылки - купить лицензию или подписку. 
  
-По клику на подписку - с аккаунта снимается 4.99 в месяц.+"I uploaded the key manually and it still says free": you need to check 3 times that the key was uploaded thereThe most common mistake is "oops, I uploaded it to the wrong place". The next one is I uploaded it to server 1 and forgot that the domain is already on server 2.
  
-Когда вы нажимаете на кнопочку подписки - с аккаунта снимается сумма подписки и создается задание на генерацию новой лицензии. 
  
-После генерации лицензии она сразу высылается вам на емыл и ее можно скачать в http://smartcj.com/forum/portal.php?action=domainsКогда вы зальете лицензию в каталог scjто на Home пропадет надпись Free versionскрипт перестанет брать 1%.+"I uploaded the key, everything was OK, and then suddenly it became free on its own" - look at logs/error.log. The most common example is another domain pointing to the same script. For example, domain1.com is at /home/user/domain1.com/, you upload the paid key there, the admin adds domain2.combut writes the path /home/user/domain1.com/then when domain2.com is opened, it loads files from domain1.com.
  
-Однако, что бы было проще, скрипт раз в сутки проверяет нет ли для него новой лицензии и, если есть, то скачивает себеТе при подписке можно вообще ничего руками не делать, скрипт сделает все сам, но это будет не мгновенно. +The key processing is done by IonCube and it runs BEFORE SmartCJIonCube sees that the key is uploaded for domain1.combut the request is to domain2.comin this situation there are options: either give an erroror switch to a free license and continueIn our case the second option is chosen.
- +
-Лицензия по подписке ограничена датойусловно сегодня 5 ноября, лицензия истекает 5 декабряЕсли до 5го числа вы не отменили подпискуто 5го числа будет скрипт проверит есть ли на вашем счету 4.99 и если есть, то сгенерит новую лицензию еще на месяц. +
- +
-На самом деле лицензия генерится с зазором в дня (те до 7го декабря в нашем примере). Это сделано для тогочто бы если вдруг 1го числа что-то случилось и скрипт не смог вытянуть лицензию, то у него было еще 2 попытки это сделать. Если же вытянуть не получится - то он автоматически переименует scj2.free.lic в scj2.lic и на этом домене начнет работать обычная фришная копия. +
- +
-**Подписка для версии 1.х** +
- +
-Для версии доступна так же как и для версии 2.х  +
-После того как вы нажали на подписку вам придет сразу 2 ключа - для версии 1 и 2 соответственно. +
- +
-Для версии 1 добавлен апдейт 1.52.  +
-Единственное в нем изменение - это изменение cron.php что бы он мог проверять наличие лицензии автоматически. +
- +
-Мы можете пользоваться подпиской и в версии 1.51 - разница будет только в том, что вам надо будет загружать лицензии руками. +
- +
-**Free** - берет 1% со всех кликов и продает их на trafficholder.com  +
- +
-**Paid**  - платная версия версия, цены http://smartcj.com/buysmartcj.shtml. Ничего не отбирает, бесплатные апдейты в пределах одной ветки +
- +
- +
-**Перенос лицензий** - лицензия переносится только если домен проэкспарился и его можно зарегистрировать.  +
- +
-**Перенос подписки** - тут все просто если на домене А  вам не нужна подписка вы ее там отменяете, и включаете для домена Б. +
- +
-**Куда заливать ключ** - ключ храниться в папке scj , если вы заливаете его руками то именно туда и надо класть его. +
- +
-====== FAQ ======+
  
 +This can also happen if in cron there is HTTP_HOST=domain2.com for domain1.com. In short, when the script runs on domain1.com, but in the server variable HTTP_HOST = domain2.com
  
  
 ===== Subscription turns into free version ===== ===== Subscription turns into free version =====
  
-99% percent errors in server setup (domain routing)+99% of cases hosting is configured incorrectly.
  
 +Licenses are handled by IonCube (PHP module), so the script runs like this: first IonCube runs, checks the license, if everything is OK - runs the script itself.
  
-IonCube (php mod) takes care of licenses, so workflow looks like server(apache,nginx)->php->ioncube(check license)->script. So if ioncube thinks that the license is not valid - it wont run the scriptб but in this case IonCube  runs scj/ioncube_fallback.php that dumps all the information of the current situation.+If for some reason the license doesn't pass and the script won't run, IonCube runs the file scj/ioncube_fallback.phpthe source code is on your host, you don't have to be a programmer to figure out what's happening there. Specifically, it changes the license to a free one so that Smart can work.
  
-99% - you run the script with a wrong HTTP_HOST variable, ie the license was issued for domain1.combut you run it with HTTP_HOST = domain2.com, you can see that in scj/logs/error.log+99% of problems this is running the script with HTTP_HOST different from the one for which the license was issued, which the script writes about in scj/logs/error.log. This problem arises from incorrectly configured hosting, which can be seen from the entry in error.log when on the host domain.com there are entries with http_host = domain2.com (or there's no HTTP_HOST at all, or for example [HTTP_HOST] => localhost)
  
-To make sure that script can work even in this situation we copy a free license.+**The only correct option is 1 - push the admin and configure the hosting so this doesn't happen.**
  
 +But there are 2 options to solve the issue yourself if for some reason the admin is unavailable
  
-You have  3 option  +  - set permissions on the license file (scj2.lic) so that the script can'write there 
- +  - remove from ioncube_fallback.php the lines that copy the free license, namely
-  - Ask admin to take care about this situation. +
-  - set permission at the license file (scj2.lic) so the script won'be able to change it +
-  - exit ioncube_fallback.php and remove those line that copy the free license file+
  
  
Line 116: Line 94:
  
  
-Options 2 and 3 will solve the issue right away, but the script won't be able to handle such situations on its ownso you'll have to take care of it. +Options 2 and 3 will solve the issue right away, but they are dangerous because when the license expires - the script won't be able to update it and your domain will go down because IonCube, whichI remind you, runs BEFORE the script, will start saying that the license is not valid, and Smart won't be able to change it. In this case you will have to monitor the license yourself.
  
subscription.1610299170.txt.gz · Last modified: by admin