| space If you want to place multiple products/addons in one license key, you may use | and : like: Some Product:12345678|An addon:87654321|Another addon:aabbccddee To the buyer, this is displayed as: Some Product: 12345678 An addon: 87654321 Another addon: aabbccddee You may add as many products/addons as you like. The output must not contain html header or tags - just plain text, one key per line. The last line must be "OK" Make sure, you rename this file to a non guessable name. For permorfance reasons, create at least 10 keys per request. We recommend 50 keys per request. Do not create more than 1000 keys per request. Digistore24 will ignore duplicate keys, which have been uploaded or used before. LICENSE AGREEMENT / TERMS OF USAGE You may use, modify, use the modified version of this file for the purpose of using any webshop, billing system, web page, sales page or any other page with the purpose of selling digital or physical goods with the Digistore24 Inc.. THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS “AS IS” AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ function digistore_generate_key() { // EDIT HERE: // replace the body of this function by your code to create a single // license key. $pool = '23456789ABCDEFGHJKLMNPQRSTUVWXYZ'; // $poolc ontains no I,1, O 0 - they could be mistaken, // if a user enters the license key by hand! $block_size = 5; $block_count = 6; $seperator = '-'; $key = ''; for ($block = 1; $block <= $block_count; $block ++ ) { if ($key) { $key .= $seperator; } for ( $char = 0; $char < $block_size; $char++ ) { $random_char = substr( $pool, mt_rand( 0, strlen( $pool ) - 1 ), 1 ); $key .= $random_char; } } return $key; } $number_of_license_keys_to_create = 50; header( 'Content-Type: text/plain' ); header( 'X-Robots-Tag: noindex, nofollow, noarchive' ); while ($number_of_license_keys_to_create-- > 0) { $key = digistore_generate_key(); echo "$key\n"; } echo "OK";