Changeset 2554
- Timestamp:
- 01/30/10 17:29:25 (2 years ago)
- File:
-
- 1 edited
-
branches/2152/gui/include/reseller-functions.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/2152/gui/include/reseller-functions.php
r2549 r2554 1727 1727 /** 1728 1728 * Get count from table by given domain_id's 1729 * 1729 1730 * @param $tablename string database table name 1730 1731 * @param $ua array domain_ids 1731 * @return int egercount1732 * @return int count 1732 1733 */ 1733 1734 function get_reseller_detail_count($tablename, $ua) { … … 1761 1762 /** 1762 1763 * Recalculate current_ properties of reseller 1763 * @param $reseller_id integer ID of the reseller 1764 * 1765 * @param int $reseller_id unique reseller identifiant 1764 1766 * @return array list of properties 1765 1767 */ 1766 1768 function recalc_reseller_c_props($reseller_id) { 1769 1767 1770 global $sql; 1768 1771 … … 1801 1804 1802 1805 $current_dmn_cnt = $res -> fields['crn_domains']; 1806 1803 1807 if ($current_dmn_cnt > 0) { 1804 1808 $current_sub_cnt = $res -> fields['current_sub_cnt']; … … 1821 1825 } 1822 1826 1823 return array($current_dmn_cnt, $current_sub_cnt, $current_als_cnt, $current_mail_cnt, 1824 $current_ftp_cnt, $current_sql_db_cnt, $current_sql_user_cnt, 1825 $current_disk_amnt, $current_traff_amnt); 1827 return array( 1828 $current_dmn_cnt, 1829 $current_sub_cnt, 1830 $current_als_cnt, 1831 $current_mail_cnt, 1832 $current_ftp_cnt, 1833 $current_sql_db_cnt, 1834 $current_sql_user_cnt, 1835 $current_disk_amnt, 1836 $current_traff_amnt 1837 ); 1826 1838 } 1827 1839 1828 1840 /** 1829 1841 * Recalculate current_ properties of reseller 1830 * @param $reseller_id integer ID of the reseller 1842 * 1843 * @param int $reseller_id unique reseller identifiant 1844 * @return void 1831 1845 */ 1832 1846 function update_reseller_c_props($reseller_id) { … … 1860 1874 * Get the reseller id of a domain 1861 1875 * moved from admin/domain_edit.php to reseller-functions.php 1862 * @param $domain_id integer ID of domain 1863 * @return integer ID of reseller or 0 in case of error 1876 * 1877 * @param int $domain_id unique domain identifiant 1878 * @return int unique reseller identifiant or 0 in on error 1864 1879 */ 1865 1880 function get_reseller_id($domain_id) { 1881 1866 1882 $sql = Database::getInstance(); 1867 1883 … … 1890 1906 * Checks if a reseller has the right to add domain aliases 1891 1907 * 1892 * @param int $reseller_id 1908 * @param int $reseller_id unique reseller identifiant 1893 1909 * @return boolean domain alias permissions 1894 1910 */ 1895 1911 function check_reseller_domainalias_permissions($reseller_id) { 1912 1896 1913 $sql = Database::getInstance(); 1897 1914
Note: See TracChangeset
for help on using the changeset viewer.
