• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Post your latest work!

http://armentaa.com/CmS/

Working on something new. ;)

Example of home.php:
PHP:
<?php

echo '<b>PHP</b> was here!<br /><br />';
echo '<span style="font-size:11px;">\o/</span>';

?>

I do not need to include MYSQL settings in home.php as everything is included already.

Security? I don't really know yet, I am a newb there.

- templates system _/
- mysql _/
 
Last edited:
Randomization 'system'...

PHP:
<?php
	
	# # # # # # # # # # # # # # # # # # #
	# Randomization System v1.0			#
	# Produced by Armenta Websolutions	#
	# http://armentaa.com/				#
	# # # # # # # # # # # # # # # # # # #

	$var = array('Name1', 'Name2');
	srand((float)microtime() * 1000000);
	shuffle($var);
	
	echo $var['1'];
	
?>
 
http://armentaa.com/CmS/

Working on something new. ;)

Example of home.php:
PHP:
<?php

echo '<b>PHP</b> was here!<br /><br />';
echo '<span style="font-size:11px;">\o/</span>';

?>

I do not need to include MYSQL settings in home.php as everything is included already.

Security? I don't really know yet, I am a newb there.

- templates system _/
- mysql _/

You connect to mysql in index.php and have done like
PHP:
     if(isset($_GET['read'])) {
               if(file_exist($_GET['read'].'.php'))
                    include_once('/includes/'.$_GET['read'].'.php');
     }

right? ^_^
 
You connect to mysql in index.php and have done like
PHP:
     if(isset($_GET['read'])) {
               if(file_exist($_GET['read'].'.php'))
                    include_once('/includes/'.$_GET['read'].'.php');
     }

right? ^_^

Yah. :D
 
Randomization 'system'...

PHP:
<?php
	
	# # # # # # # # # # # # # # # # # # #
	# Randomization System v1.0			#
	# Produced by Armenta Websolutions	#
	# http://armentaa.com/				#
	# # # # # # # # # # # # # # # # # # #

	$var = array('Name1', 'Name2');
	srand((float)microtime() * 1000000);
	shuffle($var);
	
	echo $var['1'];
	
?>

Why not just
PHP:
<?php
$array = array('uga', 'buga', 'ok');
echo $array[array_rand($array)];
?>
 
I've almost forgot PHP xD, but this is bad coded.

Simple pagination script.

PHP:
<?PHP
echo '<title>Pagination - '.($_GET['page'] ? $_GET['page'] : "1").'</title>';
$mysqli = new mysqli("localhost", "root", "144771aa", "twitt");
$pageresults = $mysqli->query("SELECT * FROM users")->num_rows;

## How many rows should be shown whithin a page.
$pagerows = 10;
$page = $_GET['page'];

## How many pages there are total.
$pages = ceil($pageresults / $pagerows);

## Checks if "?page=" is set or if the "?page=" is numeric (if false, sets the currentpage to 1)
if(!isset($page) or !is_numeric($page))
	$page = 1;
	
## Checks if current page is > than total pages (if true, sets the currentpage to last page)
if($page > $pages)
	$page = $pages;
	
## Checks if current page is < than 1 (if true, sets currentpage to 1)	
if($page < 1)
	$page = 1;

$offset = ($page - 1) * $pagerows;

echo "Current page - ".$page."<br>";
echo "Pages:<br>";
echo '<a href="?page=1">&laquo;</a> &nbsp; <a href="?page='.($page > 1 ? $page-1 : 1) .'">&lsaquo;</a>';
for($showPages = 1; $showPages <= $pages; $showPages++) {
			echo '<a href="?page='.$showPages.'">'.$showPages. '</a> &nbsp; ';
}
echo '<a href="?page='.($page < $pages ? $page+1 : $pages).'">&rsaquo;</a> &nbsp; <a href="?page='.($page < $pages ? $pages : $pages).'">&raquo;</a>';

$data = $mysqli->query("SELECT * FROM users LIMIT $offset, $pagerows");
	echo '<table width="500px" border="1px" style="border: 1px solid #CCC; border-collapse: collapse;">';
	echo '
		<tr>
			<td>#</td>
			<td>Name</td>
			<td>Email</td>
		</tr>
	';
while($d = $data->fetch_array()) {
	echo '
		<tr>
			<td>'.$d['id'].'</td>
			<td>'.$d['username'].'</td>
			<td>'.$d['email'].'</td>
		</tr>
	';
}
	echo '</table>';
?>
 
and what will be sold there?

It'll be something like VAPus store.

You will be able to register for free and see the products that have been posted by other users. And as it should be, it'll be direct deal with the seller/buyer, not me.

What I am going to do is sell my products there such as the paypal, daopay and alertpay APIs; templates, support, etc.

The registration is free, but to be able to buy/sell, you need to pay a 1.00 EUR fee.
 
It'll be something like VAPus store.

You will be able to register for free and see the products that have been posted by other users. And as it should be, it'll be direct deal with the seller/buyer, not me.

What I am going to do is sell my products there such as the paypal, daopay and alertpay APIs; templates, support, etc.

The registration is free, but to be able to buy/sell, you need to pay a 1.00 EUR fee.

Why make VAPus Store with a fee?

Anyway here is a "in-progress" shot:
ZEvBN3sQEZ.png

TODO: Statestics and expected results. Search by phone number (Daopay/Zaypay) / email (Paypal/Alertpay). Add support for Paypal, Daopay and Zaypay.
 
Cuz' I will submit my best scripts and I can't leave the website running without getting at least a few bucks to pay the rent of the server.
 
Cuz' I will submit my best scripts and I can't leave the website running without getting at least a few bucks to pay the rent of the server.

Then why make it in the first place? :p

I highly dobt people will pay the 1EUR extra except when they want to buy your scripts. And instead you could always just rise your price with 1EUR instead.
 
Then why make it in the first place? :p

I highly dobt people will pay the 1EUR extra except when they want to buy your scripts. And instead you could always just rise your price with 1EUR instead.

I guess it's time to check for failures in the system. XD
 
Progress:


Thanks to PAXTON, he answered my stupid questions. :)

Note: the 1 EUR fee has been removed. :d
 
Back
Top