Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 5 ,039
» Latest member: james liam
» Forum threads: 3 ,791
» Forum posts: 23 ,020
Full Statistics
|
Online Users |
There are currently 327 online users. » 0 Member(s) | 327 Guest(s)
|
Latest Threads |
Absolute path to images
Forum: General Discussions (Non-Support Related)
Last Post: kevwebbie
11-20-2024, 11:19 PM
» Replies: 2
» Views: 2 ,740
|
2 hosted domains on sento...
Forum: General Discussions (Non-Support Related)
Last Post: TGates
11-16-2024, 12:52 PM
» Replies: 6
» Views: 217
|
Can anyone suggest best S...
Forum: General Discussions (Non-Support Related)
Last Post: billmorgan
11-15-2024, 05:39 PM
» Replies: 3
» Views: 1 ,485
|
Update redirect to Sentor...
Forum: Sentora Development
Last Post: TGates
11-14-2024, 11:49 AM
» Replies: 3
» Views: 3 ,748
|
Increase disk space by ad...
Forum: General Support Forum v1.0.x
Last Post: TGates
11-06-2024, 07:27 AM
» Replies: 10
» Views: 686
|
Size of DB table x_logs t...
Forum: General Support Forum v1.0.x
Last Post: TGates
10-24-2024, 06:26 AM
» Replies: 5
» Views: 515
|
SMTPTLS port 587 Close af...
Forum: General Support Forum v2.x.x
Last Post: Ekwadorin23
10-23-2024, 09:33 PM
» Replies: 6
» Views: 1 ,995
|
Problem ssl subdomain acc...
Forum: General Support Forum v2.x.x
Last Post: ccr1969
10-22-2024, 04:11 AM
» Replies: 9
» Views: 3 ,162
|
Sentora v2.1.0 sitrep
Forum: Sentora Announcements
Last Post: TGates
10-21-2024, 05:08 PM
» Replies: 3
» Views: 1 ,433
|
php timeout
Forum: General Support Forum v2.x.x
Last Post: TGates
10-04-2024, 12:38 PM
» Replies: 3
» Views: 2 ,307
|
|
|
Creating a module |
Posted by: rafaht - 04-05-2015, 02:12 PM - Forum: General Discussions (Non-Support Related)
- Replies (7)
|
|
Hey guys!
I'm trying to create a module, but some piece of code doesn't working and I don't know why, because doesn't have error.
See:
module.zpm
Code: <h3><: Alerts list :></h3>
<% if AlertsList %>
<table class="table table-striped">
<tr>
<th><: ID :></th>
<th><: Title :></th>
<th><: Message :></th>
</tr>
<% loop AlertsList %>
<tr>
<td><~ alert_id ~></td>
<td><~ alert_title ~></td>
<td><~ alert_message ~></td>
</tr>
<% endloop %>
</table>
<@ CSFR_Tag @>
<% else %>
<p><: There are currently no alerts to display! :></p>
<% endif %>
I tried replace <~ and ~> for <& and &>, but doesn't worked too.
The module displays until this piece: <h3><: Alerts list :></h3>.
The controller.ext.php corresponding code:
Code: /*
* The 'worker' methods.
*/
static function ListAlerts() {
global $zdbh;
$sql = "SELECT * FROM sentora_alerts";
$numrows = $zdbh->prepare($sql);
$numrows->execute();
if ($numrows->fetchColumn() <> 0) {
$sql = $zdbh->prepare($sql);
$res = array();
$sql->execute();
while ($rowalerts = $sql->fetch()) {
array_push($res, array('alert_id' => $rowalerts['alert_id'], 'alert_title' => runtime_xss::xssClean($rowalerts['alert_title']), 'alert_message' =>runtime_xss::xssClean($rowalerts['alert_message'])));
}
return $res;
} else {
return false;
}
}
/*
* End 'worker' methods.
*/
static function getAlertsList() {
global $zdbh;
return self::ListAlerts();
}
The database exists, the table and column names is correct. I verified.
Any ideas? :/
Thanks,
|
|
|
Laravel 5 Permissions |
Posted by: fitzuk - 04-03-2015, 06:56 PM - Forum: General Discussions (Non-Support Related)
- Replies (4)
|
|
Hey Guys,
I am using Centos 7 on AWS on an EC2 to work on development for laravel 5. I managed to get composer installed and working and laravel working.
Everything works fine, however any time I run a composer update or any type of command from terminal the files then become owned by root instead instead of apache and my FTP access will then refuse to update files as it no longer has permisson.
In order to make the files writable again through FTP I need to use the following command:
chown -R apache:apache directoryofinstallation
Whilst this is not a major drama it just gets tedius! Is there anyway I can resolve this? Either by running the terminal commands as apache or by allowing apache to edit files created by root.
Any advice would be great.
Mark
|
|
|
Free and Paid Server For Sentora |
Posted by: rajeevrrs - 03-29-2015, 05:37 AM - Forum: General Discussions (Non-Support Related)
- Replies (5)
|
|
Hello,
Today i like to introduce [link removed] it provide free and cheep web hosting and domain name.
I am using [name removed] services and it really cool and best compare to other like godaddy, hostgator or bluehost.
What they provide
20 GB Free Web Hosting : [link removed]
New Domain name : [link removed]
Unlimited Linux Shared Hosting @ Just $4.82/mon : [link removed]
Unlimited Windows Shared Hosting @ Just $6.65/mon : [link removed]
VPS Server @ just $18.23/mo : [link removed]
Dedicated Server @ just $98.94/mo : [link removed]
Managed Servers @ just $176.47/mo : [link removed]
SSL Certificate [HTTPS] @ Just $24.11/yr : [link removed]
Site Lock @ Just $13.50/yr : [link removed]
CodeGuard @ Just $1.06/mo : [link removed]
Business Email @ Just $1.93/mo : [link removed]
Grab it now, you never seen like this before.
They provide cool and super fast customer support through Live chat, Ticket and mails.
For more information you can mail them at [link removed] or you can contact at : [link removed]
Good Luck !!
[edit 5050: links removed -> our forum is not intended to become a farm of links.]
|
|
|
Feedback about CloudFlare |
Posted by: apinto - 03-19-2015, 03:42 AM - Forum: General Discussions (Non-Support Related)
- Replies (6)
|
|
This is not really a support request, I just want your opinions.
I'm using CF as my DNS (free account for now).
As they do not have a SLA (not even on pro), do you had any critical issues with CloudFlare?
It's all ok and working for now. I just read some random stuff around the internet and wanted to check with someone whose opinion would be more valid.
Than you!
|
|
|
Sentora API??? |
Posted by: hjon96 - 03-11-2015, 03:30 PM - Forum: General Discussions (Non-Support Related)
- Replies (7)
|
|
Hey, how can I access Sentora's API? I went through the Developer's Guide, and I found this link: http://developer.zpanelcp.com/api/
However it is dead. I'm wondering what the functions are. I'm hoping to automate a user creation based on a certain package and offer free web-hosting using Sentora as a control panel!
If you could provide me with the API documentation, or even the function/example on how to do this, that'd be great, thanks!
|
|
|
|