Armenta Websolutions
XSS, muah ;*
sha1, muah! .l.
Armenta Websolutions
XSS, muah ;*
<?php
echo '<b>PHP</b> was here!<br /><br />';
echo '<span style="font-size:11px;">\o/</span>';
?>
<?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 _/
if(isset($_GET['read'])) {
if(file_exist($_GET['read'].'.php'))
include_once('/includes/'.$_GET['read'].'.php');
}
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? ^_^
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']; ?>
<?php
$array = array('uga', 'buga', 'ok');
echo $array[array_rand($array)];
?>
Why not just
PHP:<?php $array = array('uga', 'buga', 'ok'); echo $array[array_rand($array)]; ?>
I need to learn a lot of functions yet, so.. that might be the reason. :\
Latest work on my website - TibiaBotClients.hopto.org - Old cheats for Open-Tibia!
<?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">«</a> <a href="?page='.($page > 1 ? $page-1 : 1) .'">‹</a>';
for($showPages = 1; $showPages <= $pages; $showPages++) {
echo '<a href="?page='.$showPages.'">'.$showPages. '</a> ';
}
echo '<a href="?page='.($page < $pages ? $page+1 : $pages).'">›</a> <a href="?page='.($page < $pages ? $pages : $pages).'">»</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.
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?
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.